ammu412 Posted November 11, 2008 Share Posted November 11, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/132253-mail-is-not-going-from-my-localhost/ Share on other sites More sharing options...
blueman378 Posted November 11, 2008 Share Posted November 11, 2008 you need to have an smtp server installed if you want to use localhost Quote Link to comment https://forums.phpfreaks.com/topic/132253-mail-is-not-going-from-my-localhost/#findComment-687523 Share on other sites More sharing options...
ammu412 Posted November 11, 2008 Author Share Posted November 11, 2008 Hi friend, I'm working in Linux system....... So no need to use SMTP server. It'll use sendmail only know....... Quote Link to comment https://forums.phpfreaks.com/topic/132253-mail-is-not-going-from-my-localhost/#findComment-687539 Share on other sites More sharing options...
blueman378 Posted November 11, 2008 Share Posted November 11, 2008 what i dont get is why you have localhost and 25 twice? try making it only once Quote Link to comment https://forums.phpfreaks.com/topic/132253-mail-is-not-going-from-my-localhost/#findComment-687622 Share on other sites More sharing options...
trq Posted November 11, 2008 Share Posted November 11, 2008 So no need to use SMTP server. It'll use sendmail only know....... What do you think sendmail is? An mail MTA supporting smtp. Have you tried looking at your sendmail logs? Quote Link to comment https://forums.phpfreaks.com/topic/132253-mail-is-not-going-from-my-localhost/#findComment-687637 Share on other sites More sharing options...
DarkWater Posted November 11, 2008 Share Posted November 11, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/132253-mail-is-not-going-from-my-localhost/#findComment-687865 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.