[support] Unable to send e-mail. Contact the site administrator if the problem persists

Tim Johnson tim at akwebsoft.com
Thu Dec 12 00:18:29 UTC 2013


* Chris Miller <cjm at tryx.org> [131211 14:40]:
> Hi Tim, 
 
> Let's split the problem. Let's test your PHP mail capability
> first, before we conclude it is Drupal. Ddjust the $to and $from
> accordingly, copy this to <drupal root>/sites/mail.php and ask for
> http://<www...>/sites/mail.php . If you see "Mail Sent", then that
> begins to exonerate your PHP mail configuration. 
 
> <?php 
> $to = "demo at tryx.org"; 
> $subject = "Test mail"; 
> $message = "Hello! This is a simple email message."; 
> $from = "demo1 at tryx.org"; 
> $headers = "From:" . $from; 
> mail($to,$subject,$message,$headers); 
> echo "Mail Sent."; 
> ?> 
  And applying the same test to my website at akwebsoft.com, I do
  get a successful send and receive.

  Am looking at php.ini (according to http://localhost/phpinfo.php,
  the correct configuration file should be /private/etc/php.ini on
  this OS), but thus far am not sure what settings I should set.

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com


More information about the support mailing list