Jump to content

Mail is not going from my localhost......


ammu412

Recommended Posts

program is

<?php

        if(mail("[email protected]","Subject","Message")){

                echo "mail send";

        }

        else{

                echo "no";

        }

?>

  after excuting this file i'm getting "mail send". But mail not yet go. Also i checked the php.ini

it's also fine.

 

php.ini settings:

 

sendmail_from no value no value

sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i

SMTP localhost localhost

smtp_port 25 25

Link to comment
https://forums.phpfreaks.com/topic/132253-mail-is-not-going-from-my-localhost/
Share on other sites

what i dont get is why you have localhost and 25 twice?

 

try making it only once

 

He copied and pasted the values from phpinfo(), where it displays both the local and master values. =P  Also, is this a personal computer?  So ISPs don't allow outgoing mail directly from your computer; you need to go through their e-mail restrictions and stuff.  Contact them if you have to and find out.

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.