SZero Posted September 12, 2007 Share Posted September 12, 2007 hi every1.. i'm trying to send an email using regular mail function, well it doesn't work and i get this 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() in E:\MYDOMAIN\www\index.php on line 19 first: i don't have the SMTP info, should i get it from the provider or i can find out what is it second: even if i have it, how to tell php to use it as i don't have a php.ini file so can any1 tell me how to use ini_set() ty.. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted September 12, 2007 Share Posted September 12, 2007 edit you php.ini file - find SMTP = localhost change local host to the mail server your ISP's smtp server address... Quote Link to comment Share on other sites More sharing options...
SZero Posted September 12, 2007 Author Share Posted September 12, 2007 edit you php.ini file - find SMTP = localhost change local host to the mail server your ISP's smtp server address... i don't have php.ini in my server, i need to know how to do this using ini_set() Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 12, 2007 Share Posted September 12, 2007 http://php.net/ini_set Quote Link to comment Share on other sites More sharing options...
SZero Posted September 12, 2007 Author Share Posted September 12, 2007 i read it but still doesn't say how to use the new SMTP server and port using code any help plz Quote Link to comment Share on other sites More sharing options...
SZero Posted September 12, 2007 Author Share Posted September 12, 2007 solved ty all Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted September 13, 2007 Share Posted September 13, 2007 how did you solve it??? you shoudl post the solution so others can reference it later. Quote Link to comment Share on other sites More sharing options...
mhaey Posted October 2, 2007 Share Posted October 2, 2007 how did you solved it? ??? ??? Quote Link to comment 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.