Re: how to send mail from localhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




 Asslam-o-Alaikum,

  Dear best way is to connect with google smtp server. here is sample code 
http://stackoverflow.com/questions/712392/send-email-using-gmail-smtp-server-from-php-page



Kind Regards.
-------------------------------------------------------------------------------MUHAMMAD
 SALMAN ASLAM
Software Developer.
Intelliscence - Pakistan.



Tel.        :  +92 - 423  - 7360415
Mobile  :  +92 - 333 - 8861898
Email     :  sulmanpucit@xxxxxxxxx
---------------------------------------------------------------------------------






________________________________
From: sahil khan <smarrt_ghosting@xxxxxxxxx>
To: php-objects@xxxxxxxxxxxxxxx; phpexperts@xxxxxxxxxxxxxxx
Sent: Sun, April 17, 2011 5:02:30 PM
Subject:  how to send mail from localhost

  
Hi

can any buddy know, how to send any mail from local host
i have set my smpt varibale to localhost or port to 25 by ini_set()
but i got these error

Warning:  mail() [function.mail]:
Failed to connect to mailserver at "localhost" port 25, verify your 
"SMTP" and "smtp_port" setting in php.ini or use ini_set()

Do u know, what should i do  to send mail from local host

Regards 

Sahil

[Non-text portions of this message have been removed]


 

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux