PHPMailer Works on WAMP but not on Production Server

Question!

Hello I'm trying to use PHPMailer to send emails via SMTP. So, on my development server (WAMP on my computer), it works fine. The mail server I use is mail.jackbusch.net which is on the same shared host that I am going to upload the site to for production.

But when I DO upload the website, PHP mailer stops working and returns SMTP: Error: Could Not Authenticate (when I try to use localhost as the server) and SMTP Error: Could Not Connect (when I type in the full smtp server name--i.e. mail.jackbusch.net).

This seems odd to me since I have several Wordpress installations that send email notifications just fine--and WP uses Phpmailer, correct?

I don't even know where to begin on fixing this?

EDIT: Thanks for your suggestions--I ended up just using the PEAR Mail package and it works perfectly fine.

I used the second example shown here: http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm

I think one key difference is that before I was using Port 26, and the second time I was using the SSL port for my web host (a small orange). For whatever reason, it all worked out this time.



Answers

Used PEAR Mail package instead with the SSL example shown here: http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm



This video can help you solving your question :)
By: admin

PHPMailer SMTP Error 550

My server and php mail() function sends email to the spam folder

How to use PHPmailer? Help me with its API

PHPMailer Lite & GMAIL SMTP: emails not sent to Yahoo Mail, how to debug?

PHP, PHPMailer: Can't get example code for PHPMailer to work

PHPMailer Works on WAMP but not on Production Server

sending email using gmail server [duplicate]

fsockopen returns 'bool(false)' from browser but 'resource(4) of type (stream)' from command line

PHP on GoDaddy Linux Shared trying to send through GMAIL SMTP

PHPMailer or SwiftMailer? [duplicate]

Problem with SMTP emails sent via PhpMailer: Helo Not Accepted