garydt Posted October 16, 2007 Share Posted October 16, 2007 What is the php configuration for email? It works on the server but sending email on my testing server doesn't work. Here's what in my php.ini file- [mail function] ; For Win32 only. SMTP [email protected] smtp_port = 25 ; For Win32 only. sendmail_from = [email protected] Link to comment https://forums.phpfreaks.com/topic/73521-php-configuration-for-email/ Share on other sites More sharing options...
MadTechie Posted October 16, 2007 Share Posted October 16, 2007 your server probably requires authentication ; if your smtp server requires authentication, modify the following two lines auth_username= auth_password= ; if your smtp server uses pop3 before smtp authentication, modify the ; following three lines pop3_server=mail.yourdomain.com [email protected] pop3_password=mysecretpassword Link to comment https://forums.phpfreaks.com/topic/73521-php-configuration-for-email/#findComment-370972 Share on other sites More sharing options...
garydt Posted October 16, 2007 Author Share Posted October 16, 2007 Thanks, I did that and i still get- 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() in C:\Program Files\xampp\htdocs\epeople\emailsend.php on line 31 Link to comment https://forums.phpfreaks.com/topic/73521-php-configuration-for-email/#findComment-370995 Share on other sites More sharing options...
MadTechie Posted October 16, 2007 Share Posted October 16, 2007 Erm.. unless you own tiscali, i don't think SMTP should be localhost, it should be the SMTP settings supplies from tiscali.. Link to comment https://forums.phpfreaks.com/topic/73521-php-configuration-for-email/#findComment-371064 Share on other sites More sharing options...
garydt Posted October 16, 2007 Author Share Posted October 16, 2007 This is in the php.ini file- [mail function] ; For Win32 only. SMTP [email protected] smtp_port = 25 auth_username= [email protected] auth_password= mypassword ; For Win32 only. sendmail_from = [email protected] Still isn't working. Link to comment https://forums.phpfreaks.com/topic/73521-php-configuration-for-email/#findComment-371095 Share on other sites More sharing options...
MadTechie Posted October 16, 2007 Share Posted October 16, 2007 please enter a valid SMTP domain! Link to comment https://forums.phpfreaks.com/topic/73521-php-configuration-for-email/#findComment-371101 Share on other sites More sharing options...
MadTechie Posted October 16, 2007 Share Posted October 16, 2007 try [mail function] ; For Win32 only. SMTP = smtp.tiscali.co.uk smtp_port = 25 auth_username= [email protected] auth_password= mypassword ; For Win32 only. sendmail_from = [email protected] *googled the tiscali SMPT domain Link to comment https://forums.phpfreaks.com/topic/73521-php-configuration-for-email/#findComment-371104 Share on other sites More sharing options...
garydt Posted October 17, 2007 Author Share Posted October 17, 2007 I did that - [mail function] ; For Win32 only. SMTP = smtp.tiscali.co.uk smtp_port = 25 auth_username= [email protected] auth_password= garytanner ; For Win32 only. sendmail_from = [email protected] Still no joy! Link to comment https://forums.phpfreaks.com/topic/73521-php-configuration-for-email/#findComment-371447 Share on other sites More sharing options...
garydt Posted October 17, 2007 Author Share Posted October 17, 2007 i'm still struggling. Link to comment https://forums.phpfreaks.com/topic/73521-php-configuration-for-email/#findComment-371517 Share on other sites More sharing options...
MadTechie Posted October 17, 2007 Share Posted October 17, 2007 to be trueful one of these should work, SMTP = smtp.tiscali.co.uk sendmail_from = [email protected] smtp_port = 25 ;auth_username= [email protected] ;auth_password= ***** SMTP = smtp.tiscali.co.uk sendmail_from = [email protected] smtp_port = 25 auth_username= [email protected] auth_password= ***** maybe get the php.ini off of the server and compare, or create a phpinfo(); and check the setting on the server Link to comment https://forums.phpfreaks.com/topic/73521-php-configuration-for-email/#findComment-371565 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.