Jump to content

Mail Function Problem


nworst

Recommended Posts

I've made a mailform, but sending the mail doesn't yet work out as it should. This is the error code I get when sending the email:

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:\xampp\htdocs\Testweb\startpagina.php on line 106

What port should I be using if 25 (default) doesn't work?

Link to comment
Share on other sites

Whatever port the mail server is listening on. It sounds like you probably don't have a mail server installed. Most home ISPs block outgoing mail ports, if you want to test mail it's best to upload your pages to a live server that already has a mail server set up.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...