I am trying to get a php to send mail for more than a month, I am moving from 000webhost, Where it worked fine, for my friend's server
PHP code that sends mail:
$ theme = $ U "Your Information"; $ Message = "Your Password Is" $ P; $ = "Me@gmail.com"; $ Headers = "to:" from $; If (mail ($ E, $ theme, $ message, $ headers)) ['message'] = "message sent" at $ _SESSI; Other $ _SESSION ['message'] = "error";
sendmail path in php.ini "/ usr / sbin / sendmail -t -i"
etc / host:
$ 000,000,000,000 Inspiration-1000 Inspiration-1000 :: 1 IP 6-LocalHost IP6-Loopback FAGX :: 0 IP6 -Nonnet FFFX :: 0 IP6-MCCPfix FF02 :: 1 IP 6- Oles FF 02 :: 2 IP 6-all-router
and mail.log:
June 9 22:05:07 Inspiration-1000 message Send [24552]: r5A357t5024552: from = www-data, size = 144, class = 0, nrcpts = 1, = 201206150305.r5A357t5024552@inspiron-1000.> ;, relay = www-data @ localhost June 9 22:05: 07 Inspiration -1000 SM-A Matte [24553]: R5A 357A 8024553: = & lt; @ Induction-1000 from www-data, size = 367, class = 0, nrcts = 1, = lt; 201306100305.r5A357t5024552@inspiron-1000.>, proto = ESMTP, daemon = MTA-V4, relay = IP6-localhost [127.0 .0.1] June 9 22:05:08 Sends-1000 Sendmail [24552]: r5A357t5024552: To =user@gmail.com, ctladdr = www-data (33/33), delays = 00: 00: 01, xdelay = 00: 00: 01, mailer = relay, PRI = 30144, relay = [127.0.0.1] [127.0.0.1], DSN = 2.0.0, State = Sent (R5A 357 A 8024553 message has been accepted for delivery)
This is mailq: MSP Queue status ...
/ var / spool / mqueue-client is empty Total Requests: 0 mta queue position ... / var / spool / mqueue (5 requests) ----- Q-ID ----- - Ax R ------- Q Time ----- ---- -------- Sender / Recipient ----------- r5M3LmZV023863 * 19 Venus Jun 21 22:21 & Lt; Www-data @ inspiron-1000 & gt; & Lt; User@gmail.com> R5M3HicX023780 * 19 Fri Jun 21 22:17 & lt; Www-data @ inspiron-1000 & gt; & Lt; User@gmail.com> R5M3BSDF023465 19 Fri Jun 21 22:11 & lt; Www-data @ inspiron-1000 & gt; (Deford: The connection timed out alt4.gmail-smtp-in.l.goo) & lt; User@gmail.com> R5M36Tjx023175 19 Fri Jun 21 22:06 & lt; Www-data @ inspiron-1000 & gt; (Deford: The connection timed out alt4.gmail-smtp-in.l.goo) & lt; User@gmail.com> R5M33YQf023137 * 19 Venus 21 June 22:03 & lt; Www-data @ inspiron-1000 & gt; (Deford: The connection timed out alt4.gmail-smtp-in.l.goo) & lt; User@gmail.com> Total requests: 5
This mail address does not contain all the information. You are seeing that the local server has accepted your email, but it does not mention to try to send that email to Gmail. You mailed from the command line to the delivery with the $ mailq The probability is that there are some more rows in that log file, though with more information.
No comments:
Post a Comment