Home > Smtp Error > Smtp Error Could Not Authenticate Phpmailer Gmail

Smtp Error Could Not Authenticate Phpmailer Gmail


I need our users to be able to send us emails and have the return path be correct. Thanks I get this error - SMTP -> ERROR: Failed to connect to server: Connection timed out (110) The following From address failed: [emailprotected] : Called Mail() without being connected Olaf Olaf Lederer Hi Devon, do you use a Gmail or Google apps account? Can u plz help me… it has been three days since am stuck in this… thanks Olaf Hi Hunain, I think your problem is related to "Windows", SSL is not installed http://phabletkeyboards.com/smtp-error/smtp-error-could-not-authenticate-phpmailer.php

But it works fine with Ubuntu. Of course you can extend the code to handle HTML messages and attachments etc. in phpmailer1PHPMailer, SMTP Error: Could not authenticate Hot Network Questions How to apply a constant function to a vector of values? The error you're seeing says your local mail server won't authenticate with your ID and password, so check your credentials and/or fix your mail server. http://stackoverflow.com/questions/3949824/smtp-error-could-not-authenticate-in-phpmailer

Smtp Error Could Not Authenticate Wordpress

Then they told me to swap the name for the IP ( Configuration From Email Address : [[email protected]] From Name : [your domain name] SMTP Host : smtp.gmail.com Type of Encryption : SSL SMTP Port : 465 SMTP Authentication : YES Username : Please notify me if question is not clear. What is way to eat rice with hands in front of westerners such that it doesn't appear to be yucky?

The chance is big that your websites IP address is on a blacklist if your site is on hosted by a shared web hosting provider. First create login/server variables for the second SMTP server: 123 define('SMTPUSER', [emailprotected]'); // sec. You seem to have CSS turned off. Language String Failed To Load: Tls It's been very helpful.

Do they offer custom DKIM keys for the free account? Use the debugging option to see where it breaks. Gunaseelan Thanks for the info Olaf Lederer Olaf Lederer You're welcome Gunaseelan, Instead of using attachments you can send out a HTML email with images (previews) which link to the PDF https://sourceforge.net/p/phpmailer/discussion/130418/thread/3fe31b72/ When you say "it's working perfectly", do you mean that the script runs and you receive the sent message?

Edit your php.ini file and remove comma in front of openssl. Phpmailer Gmail Smtp Connect() Failed Am I missing something? Never user the mail class from them because I like phpmailer a lot. neelam yes its working from local host but not from webserver Olaf Lederer On a production server is port 2525 not open by default, try port 25.

Smtp Error: Password Command Failed

Olaf Hi, I guess you're trying run that script on a windows machine right? https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Great tutorial. Smtp Error Could Not Authenticate Wordpress So it appears that there is a separate quota for gmail accounts if you have your own business account using your domain or if you use the basic @gmail.com address… and Smtp Error: Could Not Authenticate. Drupal What is a EH-Numberâ„¢ Does Wi-Fi traffic from one client to another travel via the access point?

OpenSSL is a standard on Linux but not for windows, check google for "openssl for windows" Jim Great information. http://phabletkeyboards.com/smtp-error/smtp-error-could-not-connect-to-smtp-host-phpmailer-yahoo.php Why using GMail for sending mail messages? We set this variable at // the top of this page with: // $email = $_REQUEST['email'] ; $mail->From = $email; // below we want to set the email address we will I was first told to create a Relay service for Gmail and limit the access to the relay to the IP where the drupal website was hosted (the sender), using the Email Sending Failed Smtp Error Could Not Authenticate

Check your DNS is working by using the dig tool (from the dnsutils package on Debian/Ubuntu): dig +short smtp.gmail.com You will get something like this if your DNS is working: gmail-smtp-msa.l.google.com. peifa Hi, I also get this error. The external SMTP server is used instead of a local mail server. http://phabletkeyboards.com/smtp-error/smtp-error-could-not-authenticate-gmail.php The username and password have to be right as sometimes it works fine.

i am Confucius.i am not getting message in [email protected] and [email protected] Message Could Not Be Sent.mailer Error: Smtp Connect() Failed. so i download another one from online which had openssl. Please see the site[Click Here](http://www.cbsecsnip.in) on home page I have menu Computer Science … SMTP Error: Could not authenticate. (x10hosting) 1 reply I created a javascript registration form and when the

Please refer to our Privacy Policy or Contact Us for more details You seem to have CSS turned off.

What to do when majority of the students do not bother to do peer grading assignment? PHPMailer returned a few errors with authentication etc when I tried the first time. –Gavin Jan 11 '13 at 11:54 right.. praveen when i process this a error occur saying "Fatal error: Class ‘PHPMailer' not found in C:\wamp\www\praveen pro\sms.php on line 9" means they not found this class in php Olaf You Smtp Error Could Not Authenticate. Godaddy Sure most website owners can use their own SMTP server for sending email messages from their website, but it makes sense even than to use GMail for sending mail.

Olaf Hi Jim, okay I see, in that case you have a small budget right? PS: BlueHost doesn't support smtp.gmail.com, they want you to use their smtp server. Olaf I know that there are several options, one of them is a feature to use their SMTP service for your gmail account 😀 Try them… departedmind Which phpmailer did you http://phabletkeyboards.com/smtp-error/smtp-error-could-not-authenticate-wordpress-gmail.php How do you get a friend's Super Secret Base?

If you can't change that, or it doesn't exist, contact your hosting provider. I was unable to find JPHPMailer, although I suspect that isn't the cause of your issue but the fact that you were putting ssl://smtp.gmail.com as the host. The limits for that are outlined here: https://www.google.com/support/a/bin/answer.py?hl=en&answer=166852 You'll notice on the bottom this line of text: If you have a local mail server, connect to Google Apps mail servers using I understand that I can withdraw my consent at any time.

with rest of the code untouched, i get "Could not instantiate mail function" Synchro closed this Sep 2, 2015 PHPMailer member Synchro commented Sep 30, 2015 How about you read the Jeff Sorry Olaf and lloyd27 my php isn't fluent. How do I respond to the inevitable curiosity and protect my workplace reputation? Strange that no one has reported this bug during the last 2 or 3 years Michal today gmail works : tls at port 465 devon I tried using this and had

i dont what is causing and i chcanged the mailer host to smtp.gmail.com and added SMPTSecure to ssl but i didnt change any other thing –Eliethesaiyan Jan 11 '13 at 11:50 Jim Actually it's a feature of a website service I have for some teachers. check this information from the Google help: http://www.google.com/support/a/bin/answer.py?hl=en&answer=33786 lloyd27 I suggest the function could return true in case of succcess, and the error message in case the email is not sent, ini_set('display_errors', 1); error_reporting(E_ALL); include('class.phpmailer.php'); $mailer = new PHPMailer(true); $mailer->IsSMTP(); $mailer->SMTPSecure = 'ssl'; $mailer->Host = 'smtp.gmail.com'; $mailer->Port = 465; $mailer->SMTPAuth = true; $mailer->Username = '[email protected]'; $mailer->Password = 'password'; $mailer->SetFrom('[email protected]', 'Name'); $mailer->AddAddress('[email protected]'); $mailer->Subject

Do you know why this happen and how to figure it out. this is a great tutorial however i get this error message under Windows: SMTP Error: Could not connect to SMTP host. hit continue twice. –enko Apr 14 '14 at 22:10 add a comment| up vote 6 down vote I received the same error and in mycase it was the password.