Hello,
I'm trying to set up the form with SMTP with GoDaddy host but kept getting these errors
"Warning: [ err 2/line 132/class.smtp.php] fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to mail.mydomain.com:25 (Connection refused)"
"SMTP Error: Could not connect to SMTP host."
Please advice. Thanks in advance. Here's my code:
/*********************** Send Mail Configuration ****************************/
// What service is available for sending mail? Possible values are:
// - localhost [default] Server where the shop is installed, must be a Linux or Unix machine with sendmail
// - smtp A mail server of your choice that supports the standard SMTP protocol
$user_config['mailer']['service'] = 'smtp';
//$user_config['mailer']['service'] = 'smtp';
// Does the remote SMTP server need authentication?
$user_config['mailer']['smtp']['auth'] = true;
//$user_config['mailer']['smtp']['auth'] = false;
// Use this if the server needs authentication:
$user_config['mailer']['smtp']['user'] = 'postmaster@mydomain.com';
$user_config['mailer']['smtp']['password'] = 'xxxxxMyPasswordxxxxxxxx';
// The address of the server
$user_config['mailer']['smtp']['host'] = 'mail.domain.com';
//$user_config['mailer']['smtp']['host'] = 'smtp.gmail.com';
// Connection parameters for a plain SMTP server
$user_config['mailer']['smtp']['port'] = '25';
$user_config['mailer']['smtp']['secure'] = '';
// Connection parameters for a SMTP server that supports secure connections, such as smtp.gmail.com
//$user_config['mailer']['smtp']['port'] = '465';
//$user_config['mailer']['smtp']['secure'] = 'ssl';
SMTP Set Up Question - Post ID 220543
Your server you said to use "mail.domain.com" but that is invalid. It should be relay-hosting.secureserver.net. Check out http://www.coffeecup.com/help/articles/ … m-builder/ for more information on how to configure this for Godaddy.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
Thanks for your prompt respond, Scott.
I tried that and received this error "SMTP Error: Could not authenticate."
Should I try port 1025 instead? Thanks
Ryan
I tried that and received this error "SMTP Error: Could not authenticate."
Should I try port 1025 instead? Thanks
Ryan
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.