Questions tagged [yagmail]

yagmail - Yet Another GMAIL client for Python

The goal of yagmail is to make it as simple and painless as possible to send emails using Python.

39 questions
0
votes
0 answers

Yagmail crashing with Pyinstaller only when passing contents

I'm working on a tool and have isolated the problem to specifically the yagmail send function and only when contents are passed. Program runs until the send call. Sending emains with no content is fine, even with attachments. Built using several…
0
votes
1 answer

Hello there! I have a problem with sending an email with python. (yagmail)

I have a problem with sending an email with python. (yagmail) There is my output: don't worry about the Russian text. and on email I had this: As you see I have an extra space between the letters, and I don't know how to fix it. Also, I have the…
RRIIZZ2k
  • 21
  • 3
0
votes
1 answer

GMail Oauth2 authentication for yagmail stops working after a few days

I've started using yagmail a while ago for sending mails via GMail using OAuth2. The code that I use is straightforward: def send_with_yagmail(self): yag = yagmail.SMTP(self.our_email, oauth2_file="//credentials.json") …
mircealungu
  • 6,831
  • 7
  • 34
  • 44
0
votes
1 answer

How to send mails from gmail account using heroku?

I'm trying to build a simple app in python which sends emails if stock/crypto prices increase or decrease by x percent. I'm using yagmail to send these emails through a Gmail account. I have already tested the code locally and now I want to move it…
0
votes
1 answer

Pyaudio is not recognized by python, what to do?

Could not import the PyAudio C module '_portaudio'. Traceback (most recent call last): File "C:\Python39\lib\site-packages\speech_recognition\__init__.py", line 108, in get_pyaudio import pyaudio File…
0
votes
0 answers

UnicodeDecodeError with yagmail

import yagmail user = 'myEmail@gmail.com' password = 'myPassword' yag = yagmail.SMTP(user, password) yag.send('myOtherEmail@gmail.com', 'Subject') the final error(before it there are just a bunch of functions pointing at each other) I get is the…
3DartBlade
  • 71
  • 7
0
votes
1 answer

how to reset the keyring of stored email password in Visual Studio Code in Windows with yagmail?

I'm using knockknock to email myself when training a model is complete. I am using VS Code. The first time I use the @email_sender(recipient_emails=email_address), it prompted me for a password, which I typed in the wrong one. Unfortunately VS Code…
0
votes
1 answer

google OAuth2 token reset (for yagmail)

I wanted to do test revoking a python script's gmail oath2 tokens, but now I can't restore it to working order. The script was able to send emails. I then deleted the OAuth 2.0 Client IDs in the Google API console so it couldn't do so anymore. Now I…
DoreenBZ
  • 328
  • 1
  • 8
0
votes
1 answer

How to send emails from python without needing to deal with security

I'm trying to send an email from python on an AWS Sagemaker jupyter notebook, to let me know when something is done. However, every solution I've found (doing it all from scratch, using Yagmail, whatever) results in this error: Please log in via…
Warlax56
  • 1,170
  • 5
  • 30
0
votes
1 answer

Using domain email with Yagmail

I'm working in a company that uses Gmail to send and receive emails from a domain email. To make it clearer, let's say it's firstname@company.com. Right now my goal is to make a simple script that will send the emails using a list from csv file.…
0
votes
1 answer

Sending pictures with yagmail doesn't work

I'm trying to send png with yagmail module but i get this error : Here is the code : import yagmail import os currentDirectory = os.getcwd() path_fichier_screenshot2 = currentDirectory + "\\screenshot2.png" print(path_fichier_screenshot2) try: …
AJT
  • 59
  • 5
0
votes
1 answer

Python - Sending mails using YAGMAIL with lists

So I am trying to send mails with yagmail in Python and I have an array or list I want to send. And when i get the mail there's no content inside it. Why's that? import yagmail keys = [] listToStr = ' '.join([str(elem) for elem in keys]) def…
0
votes
0 answers

SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8 https://support.google

I have a problem with this following code i juste want to send an email to my own mail using Yagmail. My code : yagmail.register('abscenseuser', 'admin') yagmail.SMTP('absenceuser').send('samuel.louismarie@gmail.com', 'absence', 'Vous n avez pas…
samuel L-M
  • 31
  • 1
  • 6
0
votes
1 answer

Solving for an AttributeError when attempting to send an email with Python?

I'm attempting to send an email using the library 'yagmail', but I'm getting the error "AttributeError: module 'smtplib' has no attribute 'SMTP_SSL'". I've successfully done this in the past, so I'm not sure if a code edit or a library update is…
Alex
  • 27
  • 7
0
votes
2 answers

Yagmail (Python) - How to send e-mail with BCC / blind copy

I am trying to send e-mails to a list of contacts, along with a blind copy (BCC) to myself, using Yagmail and Python. I couldn't find any examples in the Yagmail documentation that described how to do this. I know it's possible, but I keep getting…
Julio S.
  • 944
  • 1
  • 12
  • 26