Member Avatar for iamthwee

This is going to sound really stupid, but I'm using 'plesk' and I've written the very simplest form of php mail function. However, it doesn't arrive in my email account. I've tried different email accounts and looked in my spam bin. I've waited days to be sure.

I've checked everywhere in 'plesk' but I just can't see what I'm missing. Oddly, wordpress's mail function seems to be working. I'm not sure if this uses php mail's function.

Any help or clues would be greatly appreciated.

Recommended Answers

All 6 Replies

Paste your code here and let the community look whats wrong with that.
keep that in mind that "you cannot send emails from you local server unless and untill you have configured mercury"

Member Avatar for iamthwee

The mail script is fine. It's the bare bone essentials, additionally the same script works on another server.

I am not on a local server this is a plesk panel on a dedicated server in the cloud.

The issue is my mail doesn't get sent. At the moment I'm using gmail's SMPT to circumvent this, but I'd much rather use the mail() function.

I can post a screenshot of my mail settings under plesk?

Member Avatar for iamthwee

I still looking for an answer my php ini file has the values:

[mail function]
mail.add_x_header = On
sendmail_path = /usr/sbin/sendmail -t -i
smtp_port = 25
smtp = localhost

Member Avatar for iamthwee

Guys a got a little closer to finding the solution:

http://forum.parallels.com/showthread.php?62570-php-mail()-function-not-working

Using the email form listed in the above thread I was able to receive an email to my hotmail address. But when I tried sending an email to my gmail account it didn't come through. Could it be that the domain on my gmail account is the same as the server I'm trying to send it from?

But we still need to look into your code. May be there are some server settings isseu or some thing else

Member Avatar for iamthwee

Code is listed second post down in the link I posted. Don't know if that helps

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.