newwithphp Posted July 5, 2006 Share Posted July 5, 2006 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 88Should 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 helpThanks Quote Link to comment https://forums.phpfreaks.com/topic/13774-php-error-message/ Share on other sites More sharing options...
ober Posted July 5, 2006 Share Posted July 5, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/13774-php-error-message/#findComment-53522 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.