Jump to content

php and the mail function


lvillalba

Recommended Posts

hello to you all!.. i have a question about the mail function , i just make a contac form and  i try to send it to my gmail account for testing..

it seems that i have no error in the code , when i check the /log/maillog file i show this message:

i dont see any error message so i dont know where is tha problem, i hope someone help me !

 

 

Aug  8 08:37:11 localhost sendmail[1230]: starting daemon (8.14.7): SMTP+queueing@01:00:00
Aug  8 08:37:11 localhost sendmail[1231]: r780c7Pb008212: r78CbBte001231: sender notify: Warning: could not send message for past 4 hours
Aug  8 08:37:11 localhost sm-msp-queue[1304]: starting daemon (8.14.7): queueing@01:00:00
Aug  8 08:37:12 localhost sendmail[1231]: r78CbBte001231: to=root, delay=00:00:01, xdelay=00:00:01, mailer=local, pri=31801, dsn=2.0.0, stat=Sent

 

Link to comment
https://forums.phpfreaks.com/topic/280957-php-and-the-mail-function/
Share on other sites

fedora 18

 

You are from my team ;)

 

Open up a terminal and run these.

 

Check the status of sendmail first:

su -c '/etc/init.d/sendmail status'


If the status is Ok (running), try to send email by console:

echo -e `date` | sendmail -v [email protected]

PS: If the status of sendmail is down, try to restart or start the program:

su -c '/etc/init.d/sendmail start'

my status its running ok!

 

-->echo -e `date` | sendmail -v your_email@gmail.com

this was the answer but still no mail receive

 

[email protected]... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.14.7/8.14.7; Thu, 8 Aug 2013 10:39:56 -0400
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> MAIL From:<[email protected]> SIZE=28 [email protected]
250 2.1.0 <[email protected]>... Sender ok
>>> RCPT To:<[email protected]>
>>> DATA
250 2.1.5 <[email protected]>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 r78Edu8a004287 Message accepted for delivery
[email protected]... Sent (r78Edu8a004287 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 localhost.localdomain closing connection

Yep, now is fixed!

I've got two emails from your local server:

 

 

from:  Laura <[email protected]> to:  [email protected] date:  Thu, Aug 8, 2013 at 11:58 AM subject:  Título del mensaje cleardot.gif:  Important mainly because of the people in the conversation.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.