Hello,
I'm trying to send emails using the PHP mail() function. Although I'm getting the success message at the end of running the script below, I am not receiving the emails.
I'm currently using: Parallels Plesk Panel v11.0.9_build110120608.16 os_Ubuntu 10.04
I figured the sendmail program has already been configured when I installed plesk, but I added some additional configuration directives (Power User View -> Websites & Domains -> Website Scripting and Security -> PHP Settings):
http://i.imgur.com/kKa77Yx.png
Basically I'm trying to send the email using my smtp at mail.myserver.com from the email address [email protected]. Can anyone shed some light on how I can go about fixing this?
Thanks!
I'm trying to send emails using the PHP mail() function. Although I'm getting the success message at the end of running the script below, I am not receiving the emails.
Code:
<?php
$to = '[email protected]';
$subject = 'Test Email';
$message = 'Message';
$mail_sent = mail($to, $subject, $message);
if ($mail_sent) {
echo 'success!';
}
?>
I'm currently using: Parallels Plesk Panel v11.0.9_build110120608.16 os_Ubuntu 10.04
I figured the sendmail program has already been configured when I installed plesk, but I added some additional configuration directives (Power User View -> Websites & Domains -> Website Scripting and Security -> PHP Settings):
http://i.imgur.com/kKa77Yx.png
Code:
[mail function]
SMTP = mail.myserver.com
sendmail_from = [email protected]
Basically I'm trying to send the email using my smtp at mail.myserver.com from the email address [email protected]. Can anyone shed some light on how I can go about fixing this?
Thanks!