Home > Smtp Error > Phpmailer Smtp Server Error Authentication Required

Phpmailer Smtp Server Error Authentication Required


Please notify me if question is not clear. This might cause issues if the server is advertising TLS with an invalid certificate, but you can turn it off with $mail->SMTPAutoTLS = false;. in fact, it's encouraged here) –Jeremy W Jun 2 '12 at 14:44 add a comment| up vote 0 down vote I am not sure if the problem was the server or Do you know why this happen and how to figure it out. his comment is here

If they won't fix it, you need to replace your ISP. Use the login for your Google Apps mail account if you have one. 12 define('GUSER', [emailprotected]'); // GMail usernamedefine('GPWD', 'password'); // GMail password Use the following function to send the e-mail 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 Why do jet engines smoke?

Smtp Error Could Not Authenticate Wordpress

didnt add it ..let me add it and see..thx –Eliethesaiyan Jan 11 '13 at 11:55 1 i did it and it gave me this error SMTP Error: Could not connect That the image show some thumbnail is the behavior of your e-mail client and not an "e-mail feature". Using the getsebool command we can check if the httpd daemon is allowed to make a connection over the network and send an email: getsebool httpd_can_sendmail getsebool httpd_can_network_connect This command will How to heal religious units?

Check this by looking at the output of phpinfo() or php -i (look for an 'openssl' section), or openssl listed in the output of php -m, or run this line of more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Reportedly, changing this setting may take an hour or more to take effect, so don't expect an immediate fix. Smtp Error: Could Not Connect To Smtp Host. You previously marked this answer as accepted.

Not the answer you're looking for? Try this: $mail->SMTPSecure = 'tls'; $mail->Host = 'smtp.gmail.com'; just Before the line: $send = $mail->Send(); or in other sense, before calling the Send() Function. A question can only have one accepted answer. http://stackoverflow.com/questions/21937586/phpmailer-smtp-error-password-command-failed-when-send-mail-from-my-server Something like: $mail->SMTPDebug = 2; pset7 cs50-finance phpmailer share|improve this question edited Aug 8 '15 at 15:30 asked Aug 8 '15 at 2:56 Stalris 455 Are you using two

PS: BlueHost doesn't support smtp.gmail.com, they want you to use their smtp server. Language String Failed To Load: Tls Log In to Comment Leave a Comment Add comments here to get more clarity or context around a question. Is it that I have to configure my local SMTP before using the above code or the PHPmailer takes care of it? 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

Please help Andy Olaf Hello Andy, first you can try to get some more debugging information while setting this property: $mail->SMTPDebug = 1 Andy Barratt Problem solved. In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers see an example newsletter By subscribing, you agree to the privacy policy and terms Smtp Error Could Not Authenticate Wordpress more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Smtp Error: Could Not Authenticate. Drupal 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

How to prove that a paper published with a particular English transliteration of my Russian name is mine? this content Could you help me step wise(as I am new). The issue tracker here is intended for actual bugs in PHPMailer, not problems with your server. There are two main solutions to this in PHPMailer: Enabling "Allow less secure apps" will usually solve the problem for PHPMailer, and it does not really make your app significantly less Email Sending Failed Smtp Error Could Not Authenticate

I decided to take a look at the documentation again, see what I was missing. asked 6 years ago viewed 97374 times active 4 months ago Visit Chat Linked -2 How to use PHP mailer -3 PHPmailer dont send the email 0 SMTP : Could not Log In to Comment 5 Answers 0 nishant.dp August 22, 2014 Try changing port number to 587. $mail->Port = 587; Reply Log In to Comment 0 vanminh2501 August 22, 2014 Thank http://iipseconline.com/smtp-error/phpmailer-smtp-server-error.html Should I tell potential employers I'm job searching because I'm engaged?

If any of the above checks fail, PHPMailer will not work either, and usually there's nothing that PHPMailer can do about it. Smtp -> Error: Password Not Accepted From Server there is already smtp mailer but my form not working Olaf You can replace the WP mail functions using SMTP only, search for the SMTP mail plugin and use your gmail Check also with your hosting provider that these ports are open.

smtp server Next we need to create an if/else statement using the variables for the second server (replace). 12345678910111213141516171819202122232425262728 function smtpmailer($to, $from, $from_name, $subject, $body, $is_gmail = true) { global $error;

Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the this is the erro i get 1 get after using phpmailer pls help Olaf Do you tried the smtp settings with a regular mail client first? After a quick look at the documentation I discovered that there was no such variable as SMTPSecure… I didn't check something really obvious, as you say in step 2: "Download a Phpmailer Gmail Smtp Connect() Failed Olaf Lederer Hi Devon, do you use a Gmail or Google apps account?

Note that on Ubuntu/Debian you may have multiple .ini files in /etc/php5/mods-available and possibly other locations. Like other people told before, a Gmail account doesn't work anymore for SMTP mail on your website. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed check over here Story about crystal flowers that stop time?

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Olaf Check the information from above: Download a recent version of PHPMailer (I used the version 5.02) ZTH Thanks, It can run on localhost ? This will be a mismatch from the function signature, as your smtpmailer function accepts only five arguments. this is a great tutorial however i get this error message under Windows: SMTP Error: Could not connect to SMTP host.

I know the topic is a bit old, but let me add my few cents - for all those, who have trouble with SMTP errors, remember to uncomment the line extension=php_openssl.dll Do you tried the debugging function from phpmailer? My Question is, When we receive the email, Image is shown as a thumbnail in the attachments. In my example script this port is only used for that server.

i dont install any mail server or anything other than wamp server 2.1 and internet. Using encryption There's no doubt that you should use encryption at every opportunity, otherwise you're inviting all kinds of unpleasant possibilities for phishing, identity theft etc. If you run into problems with the sending limit of Gmail, don't try to fix it and use Sendgrid or some other SMTP provider. Olaf Just noticed that I forgot to use the Cc option inside the function.

SMTP server error: 5.7.1 Username and Password not accepted. Thanks for posting these links! –andrewl85 Feb 4 '15 at 3:24 Thank you @Sanya Snex God bless you . –Ahmet U─čur Jun 20 '15 at 12:08 add a comment| All the functions that accept an email address, like addAddress will return a boolean true if the address was accepted. PHPMailer0PHPMailer saying could not connect to SMTP host0SMTP Error: Could not authenticate.

They have very nice api and a lot of functionality. I remember me that there are WP contact form plugins available providing SMTP features too. Requirements You need for this PHPMailer code example a PHP5 enabled web host (I did tests only on Linux), the port 465 need to be open and of course you need Loading classes Using composer Composer saves a huge amount of work - handling package dependencies, updates and downloading, and generates a nice autoloader so you don't have to require classes yourself.

praveen im having a problem that i have install wamp server 2.1 and i want to send from this install computer to my gmail. Yes it is a advertisement.