Python Forum
I am trying to send an email with python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I am trying to send an email with python
#1
so i was following a tutorial on YouTube and this is what i ended up with
short and simple code to send a simple email.
import smtplib

server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
server.login("[email protected]", "password")
server.sendmail(
  "[email protected]",
  "[email protected]",
  "this message is from python")
server.quit()
but when I run the program I get these errors
Error:
Traceback (most recent call last): File "C:/Users/me/PycharmProjects/untitled1/123.py", line 3, in <module> server = smtplib.SMTP_SSL('smtp.gmail.com', 465) File "C:\Users\me\AppData\Local\Programs\Python\Python38-32\lib\smtplib.py", line 1031, in __init__ context = ssl._create_stdlib_context(certfile=certfile, File "C:\Users\me\AppData\Local\Programs\Python\Python38-32\lib\ssl.py", line 801, in _create_unverified_context context.keylog_filename = keylogfile FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\me\\Documents\\Wireshark\\ssl-keys.log'
Im not expert (hence Im here asking for help) but has Wireshark messed up python getting ssl keys?
Ive looked around and I couldn't find a solution or anyone else with this problem so this is my last hope :[
Reply


Messages In This Thread
I am trying to send an email with python - by nick235 - Jun-29-2020, 02:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Send email with smtp without using Mimetext mgallotti 0 745 Feb-01-2023, 04:43 AM
Last Post: mgallotti
  email Library: properly send message as quoted-printable malonn 3 1,439 Nov-14-2022, 09:31 PM
Last Post: malonn
  Unable to send email attachments cosmarchy 7 2,746 Mar-09-2022, 09:29 PM
Last Post: bowlofred
  How to make scraper send email notification just once themech25 0 1,427 Nov-08-2021, 01:51 PM
Last Post: themech25
  send email smtp rwahdan 0 1,834 Jun-19-2021, 01:28 AM
Last Post: rwahdan
  How can I get Python Bulk Email Verification Script With API? zainalee 1 2,539 Jun-06-2021, 09:19 AM
Last Post: snippsat
  Need Outlook send email code using python srikanthpython 3 8,456 Feb-28-2021, 01:53 PM
Last Post: asyswow64
Video Python Bulk Email Verification Script With API Aj1128 0 2,672 Nov-28-2020, 11:38 AM
Last Post: Aj1128
  Sending Out Email via Python JoeDainton123 1 4,865 Aug-31-2020, 12:54 AM
Last Post: nilamo
  How to send email using python? Gigux 2 2,926 Jul-04-2020, 07:53 AM
Last Post: Gigux

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020