Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

added 2 characters in body
Source Link
Super Kai - Kazuya Ito
  • 42.9k
  • 23
  • 259
  • 259

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 <module> 
server.login(username,password) 
File "/usr/lib/python2.5/smtplib.py", line 554, in login 
raise SMTPException("SMTP AUTH extension not supported by server.") 
smtplib.SMTPException: SMTP AUTH extension not supported by server.

The Python script is the following.

import smtplib
fromaddr = '[email protected]'
toaddrs = '[email protected]'
msg = 'Why,Oh why!'
username = '[email protected]'
password = 'pwd'
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
server.login(username,password)
server.sendmail(fromaddr, toaddrs, msg)
server.quit()

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 <module> 
server.login(username,password) 
File "/usr/lib/python2.5/smtplib.py", line 554, in login 
raise SMTPException("SMTP AUTH extension not supported by server.") 
smtplib.SMTPException: SMTP AUTH extension not supported by server.

The Python script is the following.

import smtplib
fromaddr = '[email protected]'
toaddrs = '[email protected]'
msg = 'Why,Oh why!'
username = '[email protected]'
password = 'pwd'
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
server.login(username,password)
server.sendmail(fromaddr, toaddrs, msg)
server.quit()

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 <module> 
server.login(username,password) 
File "/usr/lib/python2.5/smtplib.py", line 554, in login 
raise SMTPException("SMTP AUTH extension not supported by server.") 
smtplib.SMTPException: SMTP AUTH extension not supported by server.

The Python script is the following.

import smtplib
fromaddr = '[email protected]'
toaddrs = '[email protected]'
msg = 'Why,Oh why!'
username = '[email protected]'
password = 'pwd'
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
server.login(username,password)
server.sendmail(fromaddr, toaddrs, msg)
server.quit()
edited tags
Link
Super Kai - Kazuya Ito
  • 42.9k
  • 23
  • 259
  • 259
Notice removed Reward existing answer by Michael Hoffman
Bounty Ended with Luke Dupin's answer chosen by Michael Hoffman
Notice added Reward existing answer by Michael Hoffman
Bounty Started worth 100 reputation by Michael Hoffman
Question Protected by Community Bot
edited title
Link
Ciro Santilli OurBigBook.com
  • 393.3k
  • 121
  • 1.3k
  • 1.1k

Trying How to send an email (Gmailwith Gmail as mail provider) using Python?

In English, the subjective form of the singular first-person pronoun, "I", is capitalized, along with all its contractions such as I'll and I'm.
Source Link
Peter Mortensen
  • 31.3k
  • 22
  • 110
  • 134
Loading
Removed extraneous quotes, improving formatting
Source Link
MattH
  • 38.4k
  • 11
  • 85
  • 84
Loading
Source Link
mahoriR
  • 4.6k
  • 3
  • 22
  • 29
Loading
lang-py

AltStyle によって変換されたページ (->オリジナル) /