I created a module that would notify the node author of follow-up comments in his post. The notification will come as email.
My problem is my mail is not sending/delivered.

I already have checked thoroughly the parameters with drupal_set_message and I think those were valid ones.

Please tell me more possible reason why I cannot send my email..I greatly appreciate your immediate response.

Thanks drupal buddies!!

Comments

bwv’s picture

The subscription module will do this without a hitch. Was there some particular reason you opted seemingly to reinvent the wheel?
----------------------------------------------------------------------
http://www.bwv810.com/

I am a writer and researcher. In my spare time I build websites with Drupal.
Je peux communiquer en français. / Я могу общаться на русском языке.

krishnarp’s picture

There is one module comment_notify .
Check it out

criznach’s picture

Can you send mail with other PHP scripts? Can you send mail to others, or just not to yourself? This may tell you if you have a server problem or a code problem. And have you hard-coded the parameters rather than using the ones your module provides? Strip your mail function down to the most basic, single line statement that doesn't work.

JoshuaKissoon’s picture

Hey, there are a few modules that would do this for you, as some of the guys suggested above, i also recommend checking out the rules module. However, if you prefer to do this in your module, here is the link to a tutorial i did on sending mail using drupal_mail and hook_mail, it also includes how to send HTML and Plain text mails: Sending HTML and Plain text Mail with Drupal 6. Hope this helps