Privemsg and sending email notification

Status: 
Open
Question: 

Hi all,

I hope everyone had a great holiday! I got stuck setting up email notifications for the privatemsg module. I can send messages to other users on the website but I get an error:

"Unable to send e-mail. Please contact the site administrator if the problem persists"

for sending to their own email address. I enabled the privatemsg api for the messaging module. How is the best way to set up email notifications for privatemsg. Do you just rely on the drupal phpmail system or do you need to setup an external SMTP account to handle the notifications. Cheers!

Responses

1. Hi, No you don't need smtp.

Hi,

No you don't need smtp. It should work out of the box with phpmail.

Are you able to email with the contact form?

2. Yup, the site-wide contact

Yup, the site-wide contact form works great. I have Messaging and Messaging Privatemsg 6.x-2.2 enabled. Simple mail and simple message is also enabled. The messaging phpmailer 6.x-2.2 is disabled (As I understand it, messaging phpmailer overrides drupal's internal phpmailer). Privatemsg and privatemsg email notification 6.x-1.1 are enabled. Haven't changed the defaults on the messaging and notification admin settings.

3. Got it working!

So, if your on a shared hosting server, you may have a firewall blocking email sending access to the server. In my case, I had to use the SMTP module to set up the smtp out going server as localhost (127.0.0.1). Also, the "from" address had to be the same as my domain, i.e. if my site was www.example.com, the email had to be from hi@example.com.