php - SMTP error with PHPMailer -


i getting "smtp error: not connect smtp host." error while trying send mails using gmail smtp , phpmailer..

the code working in local environment getting error in live (bluehost) server.. please help

bluehost wont allow gmail smtp connections.

quoting article:

according bluehost, cannot send emails through smtp connections web applications hosted on bluehost. allow sending through own smtp servers.

the work around setup email account in bluehost same email use in google apps. modified code in magento send out using bluehost’s smtp servers:

for example:

outgoing mail server: (ssl) boxnumber.bluehost.com (server requires authentication) supported incoming mail protocols:

* pop3: port 110 * pop3s (ssl/tls): port 995 * imap: port 143 * imaps (ssl/tls): port 993 

supported outgoing mail protocols:

* smtp: port 26 * smtps (ssl/tls): port 465 

and works, sends email out customers right email address sent bluehost’s local smtp servers, when customers reply email address arrive in google apps mail box.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -