Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.