Mail not being sent.

marcel_ramagnano - February 1, 2007 - 18:03
Project:Mail
Version:4.7.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hey there,

I recently installed the Mail module, and it installed fine. I configured it and everything. I created a test user to see if the emails will be sent and they aren't. I'm using the SMTP module for the site, and it seems to be working fine. All the other emails from the page work. I've checked the "Email out a copy of this post" and I have my test user enabled to receive emails, yet it still isn't working. Any ideas on how I can fix this problem?

- Marcel

#1

Darrell - February 3, 2007 - 17:43

I am having this problem also. Drupal sends E mail to users when asking for a new password so I know that E mail is working from drupal.
I am running 4.7.4 and just updated mail to the latest 4.7 version.
No error message in the server logs or in watchdog.

#2

slimandslam - February 4, 2007 - 06:56

Same thing here.....Drupal 4.7.4, PHP 5.1.4

#3

nedjo - February 4, 2007 - 07:18

I'll have a look. Likely this is caused by some change in 4.7 core between point releases.

#4

Darrell - February 7, 2007 - 07:03

This has to be server related. I have another site on a different server and that one sends mail. I have upgraded both sites to ver 7.4.5. The site that sends mail adds:

<p>This email was sent to users with the following roles: Registered User</p>

to the beginning of the E mail. The site that does not send mail adds nothing to the beginning of the E mail.

Other than the content both sites are set up pretty much the same using the same modules.
I would think that both sites would add the same thing to the E mail even if it didn't send it.

#5

Darrell - February 7, 2007 - 07:46

PHPInfo from the site that does not send E mail

sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25

PHPInfo from the site that does send E mail

sendmail_from me@localhost.com me@localhost.com
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25

Does this help?

#6

Darrell - February 7, 2007 - 17:15

I think I found it.
Go to admin/settings/content-types/mail and make sure to check Published and Allow pages of this content type to be mailed: Enabled.
I had Allow pages of this content type to be mailed: Enabled but Published was not checked. Once I checked Published the E mail was sent.

#7

marcel_ramagnano - February 8, 2007 - 15:32

Hey Darrell, thanks for your replies. I tried that last method you posted, and all of the settings were enabled and the mail was still not being sent :/ I'm thinking this is a problem with the module itself.

#8

Darrell - February 8, 2007 - 22:13

Just to be sure, when you created your mail there are two check boxes
Email out a copy of this post
and
Send to users who haven't opted in

The second one has to be checked unless the user has checked

Accept email
in the users account

#9

Darrell - February 8, 2007 - 22:20

Just re read your initial post.
Just for drill, disable the drupal SMTP module and see if you can send E mail.

#10

marcel_ramagnano - February 13, 2007 - 18:07

Hey Darrell, I tried that out....still no luck :/

#11

Darrell - February 14, 2007 - 18:55

Put the attached PHPInfo.php on your web site and run it to see what your PHP settings are.

AttachmentSize
PHPInfo.php_.txt 499 bytes

#12

Darrell - February 14, 2007 - 18:59

Not sure why the "_.txt" got added to the end of PHPInfo.php. Just edit the name of the file to remove it. I am attaching it again to see if I can get it right this time.

AttachmentSize
PHPInfo.php__0.txt 499 bytes

#13

follydrupal - June 22, 2007 - 13:37

OK, this isn't probably the answer to the problem most people on this thread are having but this is a note to anyone as daft as me who finds themselves here. When I was creating a mail node, for some reason (I know, I know..) I interpreted the check box 'Email out a copy of this post' as meaning 'send a copy of this post to the originator', in a 'sent mail' kind of way. I was assuming that since it was a mail type node it would be sent to the selected roles anyway. But no, you actually have to check the 'email out a copy' checkbox every time (even though it's a mail node). I'm probably the only one who made this mistake and wondered why it wasn't working, but just in case...

 
 

Drupal is a registered trademark of Dries Buytaert.