Jump to content

Archived

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

newwithphp

PHP error Message


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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

×

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.