Jump to content

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


ammu412

Recommended Posts

program is

<?php

        if(mail("mailid@xxx.com","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
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.

Link to comment
Share on other sites

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.