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.

238 questions
154
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,614
  • 5
  • 18
  • 24
97
votes
8 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 = '.......' server =…
Jacob Kudria
  • 1,500
  • 2
  • 13
  • 17
67
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
  • 33,583
  • 40
  • 128
  • 183
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
  • 1,850
  • 1
  • 15
  • 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
  • 515
  • 1
  • 8
  • 21
18
votes
1 answer

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
  • 777
  • 1
  • 4
  • 14
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,782
  • 3
  • 15
  • 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,079
  • 11
  • 46
  • 61
14
votes
8 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,574
  • 3
  • 28
  • 46
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,661
  • 1
  • 13
  • 27
7
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,519
  • 6
  • 18
  • 28
7
votes
2 answers

Validate smtp server credentials using java without actually sending mail

To verify smtp server credentials shall I use transport.connect()? Session session = Session.getInstance(properties,authenticator); Transport tr=session.getTransport("smtp"); tr.connect(); Is it correct method to check smtp server credentials?
Roshan
  • 1,809
  • 7
  • 33
  • 51
7
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
  • 11,936
  • 14
  • 66
  • 125
7
votes
1 answer

Send email through unencrypted connection

I have a SMTP account that does not use encrypted connection. I can use the same account to send emails from C# and Python without problems but with Go I get the error: unencrypted connection This is the code I am using: package main import ( …
Santiago Corredoira
  • 40,844
  • 8
  • 48
  • 56
7
votes
1 answer

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.

Possible Duplicate: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required I have a problem when i m run this code then error is occured that "The SMTP server…
Sanat Pandey
  • 3,861
  • 15
  • 65
  • 122
1
2 3
15 16