Jump to content

php and the mail function


Go to solution Solved by 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 your_email@gmail.com

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

su -c '/etc/init.d/sendmail start'
Edited by jazzman1

my status its running ok!

 

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

this was the answer but still no mail receive

 

lauchri14@gmail.com... 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:<laura@localhost.localdomain> SIZE=28 AUTH=laura@localhost.localdomain
250 2.1.0 <laura@localhost.localdomain>... Sender ok
>>> RCPT To:<lauchri14@gmail.com>
>>> DATA
250 2.1.5 <lauchri14@gmail.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 r78Edu8a004287 Message accepted for delivery
lauchri14@gmail.com... 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 <laura@localhost.localdomain> to:  tuparov86@gmail.com 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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.