Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sending email using jython in FDMEE

2733211Nov 22 2014 — edited Dec 4 2014

Hi,

I am executing the following code and getting the error : no suitable authentication method found.

 

import smtplib

sender = "from@gmail.com"

receivers = "to@gmail.com"

message = """ This is a test e-mail message.

  This is a test e-mail message. """

try:

  smtpServer = smtplib.SMTP('smtp.gmail.com:587')

  smtpServer.starttls()

  smtpServer.login("user", "password")

  smtpServer.sendmail(sender, receivers, message)

  print "Successfully sent email"

  smtpServer.quit()

  except Exception, e:

  print "Error: unable to send email: " + str(e)


What am I missing?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 1 2015
Added on Nov 22 2014
2 comments
1,892 views