Questions tagged [smtp-auth]

is an extension of the Simple Mail Transfer Protocol whereby an SMTP client may log in, using an authentication mechanism chosen among those supported by the SMTP server.

284 questions
330
votes
17 answers

How to send an email with Gmail as provider using Python?

I am trying to send email (Gmail) using python, but I am getting following error. Traceback (most recent call last): File "emailSend.py", line 14, in server.login(username,password) File "/usr/lib/python2.5/smtplib.py", line 554, in…
mahoriR
  • 4,377
  • 3
  • 18
  • 27
173
votes
9 answers

Getting error while sending email through Gmail SMTP - "Please log in via your web browser and then try again. 534-5.7.14"

I'm having problems with gmail smtp server. I already read many posts here in StackOverflow about that subject. The best post I found about test the connection is this one. Although it is very well explained the error I'm getting I couldn't find a…
ppalmeida
  • 2,924
  • 5
  • 20
  • 25
164
votes
18 answers

Login credentials not working with Gmail SMTP

I am attempting to send an email in Python, through Gmail. Here is my code: import smtplib fromaddr = '......................' toaddrs = '......................' msg = 'Spam email Test' username = '.......' password =…
Jacob Kudria
  • 2,200
  • 3
  • 17
  • 18
71
votes
4 answers

How to send email using simple SMTP commands via Gmail?

For educational purposes, I need to send an email through an SMTP server, using SMTP's fundamental and simple rules. I was able to do that using smtp4dev. I telnet localhost 25 and and commands are: I want to do the same thing, using Gmail SMTP…
Saeed Neamati
  • 35,341
  • 41
  • 136
  • 188
58
votes
8 answers

Error: Invalid login: 535-5.7.8 Username and Password not accepted

The code below is perfect to send emails using node.js code/program. However, still getting error mentioned in the title. var nodemailer = require('nodemailer'); var transporter = nodemailer.createTransport({ service: 'gmail', auth: { user:…
Haider Yaqoob
  • 1,725
  • 2
  • 11
  • 17
38
votes
16 answers

Django SMTPAuthenticationError

I am new in django and developing a web application using django. I have successfully set the Signup functionality using Userena in my web application and can Register as a user with Verification Email. I can show you my SMTP settings in my…
Md. Tanvir Raihan
  • 4,075
  • 9
  • 37
  • 70
37
votes
5 answers

Gmail: 530 5.5.1 Authentication Required. Learn more at

This Go program successfully sends email from my home computer, but on a virtual server on DigitalOcean receives the following error: panic: 530 5.5.1 Authentication Required. Learn more at Here's the code: auth := smtp.PlainAuth("",…
Calder
  • 2,219
  • 1
  • 20
  • 21
19
votes
4 answers

The SMTP server requires a secure connection or the client was not authenticated. if uploading on godaddy

below code is working fine in local, but if upload upload it on godaddy it is not working. Error: showing The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. …
Firoz Khan
  • 623
  • 1
  • 9
  • 23
18
votes
2 answers

SMTP Authentication with config file's MailSettings

I'm storing my MailSettings in a web.config, however when I send the message, my SMTP server reports back that I need to use authentication. I've got my username/password in the config file, but it still fails. It works if I do the following, but it…
Eric
  • 1,882
  • 3
  • 16
  • 21
17
votes
6 answers

How to resolve javax.mail.AuthenticationFailedException issue?

I am doing a sendMail Servlet with JavaMail. I have javax.mail.AuthenticationFailedException on my output. Can anyone please help me out? Thanks. sendMailServlet code: try { String host = "smtp.gmail.com"; String from =…
jl.
  • 2,209
  • 12
  • 49
  • 61
16
votes
5 answers

Warning: stream_socket_enable_crypto(): this stream does not support SSL/crypto in C:\xampp\htdocs\12work\class.smtp.php on line 197

I am using XAMPP and when trying to send email through localhost I get the following warning: Warning: stream_socket_enable_crypto(): this stream does not support SSL/crypto in C:\xampp\htdocs\12work\class.smtp.php on line 197 Here is my…
Arslan Bilal
  • 625
  • 2
  • 9
  • 17
14
votes
9 answers

Sending emails through SMTP with PHPMailer

I'm trying to send SMTP e-mails using PHPMailer, but I keep getting this error message, any ideas how to get rid of it? I'm trying to connect via SSL on port 465. SMTP -> FROM SERVER: SMTP -> FROM SERVER: SMTP -> ERROR: EHLO not accepted from…
cypher
  • 6,822
  • 4
  • 31
  • 48
10
votes
2 answers

Go: Connect to SMTP server and send multiple emails in one connection?

I'm writing a package which I intend to make one initial connection to the local SMTP server and then it waits on a channel which will be populated with emails to send when they are needed to be sent. Looking at net/http it appears to be expecting…
Alasdair
  • 13,348
  • 18
  • 82
  • 138
9
votes
3 answers

What mechanism does Gmail use for user authentication?

I want to authenticate myself using my Gmail ID and password on a Gmail SMTP server. I am using the GSASL library. I have a set of mechanisms that my client supports: Anonymous, External, Login, Plain, SecureID, Digest-MD5 and CRAM-MD5. Does…
Ali Ahmed
  • 1,749
  • 6
  • 20
  • 29
9
votes
2 answers

Error while using Office365 SMTP in Asp.Net

I am using Office365 web app SMTP to send email from Asp.Net but Its always throwing following error! System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1…
Ajmal VH
  • 1,691
  • 1
  • 13
  • 27
1
2 3
18 19