Questions tagged [smtplib]
`smtplib` is a Python module that defines an SMTP client session object. It can be used to send mail to any Internet machine with an SMTP or ESMTP listener daemon.
smtplib
1,315
questions
0
votes
0
answers
12
views
Jinja2 template rendering duplicate body / SMTP email sending twice
I created a relatively simple emailer class in python with the intention of reading in a CSV file and filling in a Jinja2 template with dynamic information from the CSV and then sending out emails for ...
0
votes
0
answers
29
views
Inline image in email with python [duplicate]
I want to send an email with HTML and an inline image. In gmail it says that the image is attached, I don't want that, I want the image in the body of the email.
html_content=f"<img src="...
-1
votes
1
answer
87
views
Trying to get a Email alert using smtplib when the price drops below 80 [closed]
import requests
import smtplib
from bs4 import BeautifulSoup
import os
from dotenv import load_dotenv
load_dotenv()
Email = os.getenv('MY_EMAIL')
pass_word = os.getenv('PASS_WORD')
STMP = os.getenv('...
0
votes
0
answers
19
views
Sending preformatted EML file through Python's SMTPLIB when recipient is already in the EML file content
I've got a process that creates a couple of individual emails and stores each in a separate EML file. The EML file already containt the recipient. The head of the files look like this:
MIME-Version: 1....
0
votes
0
answers
24
views
Send email via EmailMultiAlternatives sudenly stopped working
I encounter a strange error. The email sending stopped working since yesterday before all was fine. I did not change a thing at all.
Error message is:
2024-07-11 09:35:01,147 share.email.service ...
0
votes
0
answers
32
views
SMTP AUTH extension not supported by server. - SMTPlib Gmail
I am getting error:
SMTP AUTH extension not supported by server.
When running the blow code:
import smtplib
sender_email = 'MyRealGmail'
password = 'mypassword'
receiver_email = 'testemail'
subject = ...
0
votes
0
answers
25
views
How to track emails statuses
I am creating an SAAS email marketing system where users can create a company and run campaigns. Each campaign will have its own connected accounts (SMTP). Each user receives emails, which I send ...
1
vote
0
answers
38
views
Sending email from hostgator service with python [closed]
I have a script setup for a discord bot that will send an email to a member if certain criteria are met. I have successfully tested this script using my personal gmail credentials, but seeing how the ...
0
votes
1
answer
40
views
TimeoutError: [WinError 10060] when sending Email from Gmail to myself
I am currently following tutorials to try to send emails from Gmail using smtplib. I keep getting the error:
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did ...
1
vote
0
answers
36
views
Python smtplib - Getting SMTPRecipientsRefused error
I am trying to build a code that sends an email with some data stored as html, and sends it over to a distribution email.
def sendEmail_htmlTable(self, subject, message):
msg = MIMEMultipart('...
2
votes
0
answers
43
views
Using thread for sending mails with smtp
Using SMTP and the Gmail API (Could you please demonstrate both methods?), I need to send thousands of emails, each customized according to a name and containing an attachment. How can I accomplish ...
0
votes
0
answers
51
views
Why the SMTP Connection unexpectedly closes while trying outlook and yahoo server?
I'm validating the email with smtp server connection using rcpt command. It is working fine with google but when I try with outlook and yahoo email it shows "SMTP connection error: Connection ...
0
votes
0
answers
27
views
Unable to keep email messages in same thread Python smtplib
i am automating my gmail messages, User creates account and an automated response created from gpt and is send to the user email and then the user replies to which again response generated from gpt is ...
0
votes
0
answers
34
views
Issue with SMTP Server Implementation: Getting an Error
I am trying to implement an SMTP server by following this article
Here is my server code:
import smtpd
import asyncore
class CustomSMTPServer(smtpd.SMTPServer):
def process_message(self, ...
0
votes
0
answers
188
views
OSError [Errno 101] Network is unreachable, when trying to send Email in Django using smtplib on GoDaady Server
I have a strange issue. I have a Payment app in Django, deployed on GoDaddy. In app, I need to send email to the user when their payment is successful. I am using smtplib and email libraries. The ...