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 smtp@tiscali.co.uk smtp_port = 25 ; For Win32 only. sendmail_from = gary@garyt.co.uk Quote 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 pop3_username=you@yourdomain.com pop3_password=mysecretpassword Quote 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 Quote 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.. Quote 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 smtp@tiscali.co.uk smtp_port = 25 auth_username= garydt88@tiscali.co.uk auth_password= mypassword ; For Win32 only. sendmail_from = garydt88@tiscali.co.uk Still isn't working. Quote 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! Quote 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= garydt88@tiscali.co.uk auth_password= mypassword ; For Win32 only. sendmail_from = garydt88@tiscali.co.uk *googled the tiscali SMPT domain Quote 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= garydt88@tiscali.co.uk auth_password= garytanner ; For Win32 only. sendmail_from = garydt88@tiscali.co.uk Still no joy! Quote 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. Quote 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 = garydt88@tiscali.co.uk smtp_port = 25 ;auth_username= garydt88@tiscali.co.uk ;auth_password= ***** SMTP = smtp.tiscali.co.uk sendmail_from = garydt88@tiscali.co.uk smtp_port = 25 auth_username= garydt88@tiscali.co.uk auth_password= ***** maybe get the php.ini off of the server and compare, or create a phpinfo(); and check the setting on the server Quote Link to comment https://forums.phpfreaks.com/topic/73521-php-configuration-for-email/#findComment-371565 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.