* Chris Miller cjm@tryx.org [131211 14:40]:
This is very bad for my business site. Any ideas, Please?
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.
:) Good debugging practice..
<?php $to = "demo@tryx.org"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "demo1@tryx.org"; $headers = "From:" . $from; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?>
Made several attempts - all show failures. Below is last code used: [code] <?php $to = "tim@akwebsoft.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message from test_email.php."; $from = "tim@akwebsoft.com"; $headers = "From:" . $from; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?> [/code] [begin log] Dec 11 15:00:30 linus postfix/qmgr[5223]: 0C257422852A: from=_www@tj49.com, size=388, nrcpt=1 (queue active) Dec 11 15:00:31 linus postfix/smtp[5225]: 0C257422852A: to=tim@akwebsoft.com, relay=akwebsoft.com[74.220.215.66]:25, delay=337, delays=337/0.02/0.6/0.15, dsn=5.0.0, status=bounced (host akwebsoft.com[74.220.215.66] said: 550-Verification failed for _www@tj49.com 550-No Such User Here" 550 Sender verify failed (in reply to RCPT TO command)) Dec 11 15:00:31 linus postfix/cleanup[5229]: 7CEA74228698: message-id=20131212000031.7CEA74228698@tj49.com Dec 11 15:00:31 linus postfix/bounce[5228]: 0C257422852A: sender non-delivery notification: 7CEA74228698 Dec 11 15:00:31 linus postfix/qmgr[5223]: 7CEA74228698: from=<>, size=2279, nrcpt=1 (queue active) Dec 11 15:00:31 linus postfix/qmgr[5223]: 0C257422852A: removed Dec 11 15:00:32 linus postfix/smtp[5225]: 7CEA74228698: to=_www@tj49.com, relay=mail.tj49.com[74.220.215.66]:25, delay=0.59, delays=0.01/0/0.45/0.13, dsn=5.0.0, status=bounced (host mail.tj49.com[74.220.215.66] said: 550 No Such User Here" (in reply to RCPT TO command)) [end log] [NOTE] to=_www@tj49.com Now, from my rebol command line (obscure language with built-in TCP/IP, I do send tim@akwebsoft.com "testing rebol" [begin log] Dec 11 15:03:18 linus postfix/qmgr[5239]: C53134228725: from=tim@akwebsoft.com, size=407, nrcpt=1 (queue active) Dec 11 15:03:19 linus postfix/smtp[5245]: C53134228725: to=tim@akwebsoft.com, relay=akwebsoft.com[74.220.215.66]:25, delay=0.8, delays=0.01/0.01/0.53/0.25, dsn=2.0.0, status=sent (250 OK id=1VqtkN-00081S-C5) [end log]
The last was a successful send and subseqent delivery, looks like PHP delivery
FYI: I'm new to drupal and a PHP noob, long-timer coder in other stuff. FYI: Sure appreciate the quick response. This is all very edifying.
thanks