karthikeyan_coder Posted July 2, 2006 Share Posted July 2, 2006 i've tried to send emails from localhost. but its showing some error like... [quote]Warning: mail() [function.mail]: Failed to connect to mailserver at "192.168.110.30" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\wamp\www\mailsender.php on line 55[/quote]actually in my php.ini file contains...[mail function]; For Win32 only.SMTP = 192.168.110.30smtp_port = 25; For Win32 only.sendmail_from = [email protected]whats the problem???im running apache under windowzxp box... Thank you,Karthi Keyan. Link to comment https://forums.phpfreaks.com/topic/13418-how-to-send-emails-from-localhost-with-mail/ Share on other sites More sharing options...
hackerkts Posted July 2, 2006 Share Posted July 2, 2006 You have to make sure you had a working mail server (SMTP). Link to comment https://forums.phpfreaks.com/topic/13418-how-to-send-emails-from-localhost-with-mail/#findComment-51807 Share on other sites More sharing options...
karthikeyan_coder Posted July 2, 2006 Author Share Posted July 2, 2006 [quote author=hackerkts link=topic=99143.msg390290#msg390290 date=1151800132]You have to make sure you had a working mail server (SMTP).[/quote]LOL i know its a SMTP mailserver prob... its not working.... i asked how to solve this.... i hope you never read this [quote]Warning: mail() [function.mail]: Failed to connect to mailserver at "192.168.110.30" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\wamp\www\mailsender.php on line 55[/quote][quote]Hackers must have a skill to solve probs... LOL[/quote]Any one know? how to slove? Please help me... Link to comment https://forums.phpfreaks.com/topic/13418-how-to-send-emails-from-localhost-with-mail/#findComment-51933 Share on other sites More sharing options...
wildteen88 Posted July 2, 2006 Share Posted July 2, 2006 Does the SMTP server require authentication in order to send emails. if it does mail doesnt support this. Link to comment https://forums.phpfreaks.com/topic/13418-how-to-send-emails-from-localhost-with-mail/#findComment-51937 Share on other sites More sharing options...
karthikeyan_coder Posted July 2, 2006 Author Share Posted July 2, 2006 [quote author=wildteen88 link=topic=99143.msg390429#msg390429 date=1151834976]Does the SMTP server require authentication in order to send emails. if it does mail doesnt support this.[/quote]it isn't asking for any authentications... :( So my ISP must support SMTP... am i right? Link to comment https://forums.phpfreaks.com/topic/13418-how-to-send-emails-from-localhost-with-mail/#findComment-51938 Share on other sites More sharing options...
hackerkts Posted July 2, 2006 Share Posted July 2, 2006 I saw the warning..The problem is with the mail server that's why I suggest you to make sure you had it working. :DHmm..Try changingSMTP = 192.168.110.30ToSMTP = localhostBtw.. Which mail server you using ?P.S : hacker is just a nick lolz ;D Link to comment https://forums.phpfreaks.com/topic/13418-how-to-send-emails-from-localhost-with-mail/#findComment-51939 Share on other sites More sharing options...
karthikeyan_coder Posted July 2, 2006 Author Share Posted July 2, 2006 [quote author=hackerkts link=topic=99143.msg390431#msg390431 date=1151835428]I saw the warning..The problem is with the mail server that's why I suggest you to make sure you had it working. :DHmm..Try changingSMTP = 192.168.110.30ToSMTP = localhostBtw.. Which mail server you using ?P.S : hacker is just a nick lolz ;D[/quote][mail function]; For Win32 only.SMTP = localhostsmtp_port = 25; For Win32 only.sendmail_from = [email protected]still having problem..... Link to comment https://forums.phpfreaks.com/topic/13418-how-to-send-emails-from-localhost-with-mail/#findComment-51942 Share on other sites More sharing options...
redarrow Posted July 2, 2006 Share Posted July 2, 2006 what port is your router set to?what mail server useing?router must redirect smtp to mail server ip.smtp=router ip to the mail server.smtp_port= router smtp port for the mail server.send_mail_from=mail server for admin like [email protected]. Link to comment https://forums.phpfreaks.com/topic/13418-how-to-send-emails-from-localhost-with-mail/#findComment-51947 Share on other sites More sharing options...
karthikeyan_coder Posted July 2, 2006 Author Share Posted July 2, 2006 [quote author=redarrow link=topic=99143.msg390439#msg390439 date=1151836696]what port is your router set to?what mail server useing?router must redirect smtp to mail server ip.smtp=router ip to the mail server.smtp_port= router smtp port for the mail server.send_mail_from=mail server for admin like [email protected].[/quote]let me collect those informations... Link to comment https://forums.phpfreaks.com/topic/13418-how-to-send-emails-from-localhost-with-mail/#findComment-51952 Share on other sites More sharing options...
redarrow Posted July 2, 2006 Share Posted July 2, 2006 i know its all confusing but i do sisco routing from home to business users daily so i no i can help okpm the information to me if your worried ok. Link to comment https://forums.phpfreaks.com/topic/13418-how-to-send-emails-from-localhost-with-mail/#findComment-51954 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.