Jump to content

PHP error Message


newwithphp

Recommended Posts

I am creating a contest form for various email addresses to use as a contest. this is the error message I get after the "Thank You" page comes up:

Warning: mail(): Failed to connect to mailserver at "popmail.ensembletravel.ca" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in W:\Webs\ensembletravel.ca\eads\selectvacations\en\mailer.php on line 88

Should I add this code in the mailer.php?
ini_set("SMTP","localhost");
ini_set("smtp_port","25");

if so where do i put it and is that all i need to add?
Please help
Thanks
Link to comment
https://forums.phpfreaks.com/topic/13774-php-error-message/
Share on other sites

Please do not post polls in this board.  This thread has no reason for having a poll and even if it did, we have a whole seperate board for polls.  I have locked voting on the poll.

As far as the question, unless you are administering the webserver and you know for a fact that you have a SMTP server running correctly, I suggest you contact your host about the mail issues.

Also, this is a border-line 3rd party question... this board is only for scripts you have written yourself.  I'll leave it for now, but just be careful in the future.
Link to comment
https://forums.phpfreaks.com/topic/13774-php-error-message/#findComment-53522
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.