-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TEST SITE: notification mails recieved with no expeditor #219
Comments
Question to chat GPT: "I am working with python and smtp lib. When I send an email the receiver gets it with the following information: no expeditor. How can I correct such issue?" From Chat GPT: "It seems like the issue you're facing is related to the sender information not being properly set in your email. When using the smtplib library in Python, you need to specify the sender's email address in the From field. Here's an example of how you can set the sender information:"
@acoto can you check the code to see if you have indicated the from properly? |
Hi Carlos,
We have a very similar code into the repo, The issue of the emails is
caused from the google workspace side and the non-whitelisted domain. This
is not a problem of the code.
Look at this settings:
https://knowledge.workspace.google.com/kb/emails-getting-moved-to-spam-by-imap-connection-000002651
Allan
El mié, 24 ene 2024 a las 8:32, QLands ***@***.***>)
escribió:
… Question to chat GPT: "I am working with python and smtp lib. When I send
an email the receiver gets it with the following information: no expeditor.
How can I correct such issue?"
From Chat GPT: "It seems like the issue you're facing is related to the
sender information not being properly set in your email. When using the
smtplib library in Python, you need to specify the sender's email address
in the From field. Here's an example of how you can set the sender
information:"
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
# Sender and recipient email addresses
sender_email = ***@***.***'
recipient_email = ***@***.***'
# Create the MIME object
message = MIMEMultipart()
message['From'] = sender_email
message['To'] = recipient_email
message['Subject'] = 'Your subject'
# Add your email content
body = 'Your email body goes here.'
message.attach(MIMEText(body, 'plain'))
# SMTP setup
smtp_server = 'your_smtp_server'
smtp_port = 587
# Start the SMTP session
with smtplib.SMTP(smtp_server, smtp_port) as server:
# Login to your email account if needed
# server.login(sender_email, 'your_password')
# Send the email
server.sendmail(sender_email, recipient_email, message.as_string())
@acoto <https://github.com/acoto> can you check the code to see if you
have indicated the from properly?
—
Reply to this email directly, view it on GitHub
<#219 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD7OU3W42VO6ZK63JJEYVSDYQELQXAVCNFSM6AAAAABABQIORCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBYGI2TCMBTGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Carlos,
A configuration like this should be included into the domain for validate
de sender, look at this post:
https://tesel.mx/solucionar-error-gmail-no-pudo-verificar-que-realmente-envio-este-mensaje-5062/
Allan
El mié, 24 ene 2024 a las 8:39, Allan Coto ***@***.***>) escribió:
… Hi Carlos,
We have a very similar code into the repo, The issue of the emails is
caused from the google workspace side and the non-whitelisted domain. This
is not a problem of the code.
Look at this settings:
https://knowledge.workspace.google.com/kb/emails-getting-moved-to-spam-by-imap-connection-000002651
Allan
El mié, 24 ene 2024 a las 8:32, QLands ***@***.***>)
escribió:
> Question to chat GPT: "I am working with python and smtp lib. When I send
> an email the receiver gets it with the following information: no expeditor.
> How can I correct such issue?"
>
> From Chat GPT: "It seems like the issue you're facing is related to the
> sender information not being properly set in your email. When using the
> smtplib library in Python, you need to specify the sender's email address
> in the From field. Here's an example of how you can set the sender
> information:"
>
> import smtplib
> from email.mime.text import MIMEText
> from email.mime.multipart import MIMEMultipart
>
> # Sender and recipient email addresses
> sender_email = ***@***.***'
> recipient_email = ***@***.***'
>
> # Create the MIME object
> message = MIMEMultipart()
> message['From'] = sender_email
> message['To'] = recipient_email
> message['Subject'] = 'Your subject'
>
> # Add your email content
> body = 'Your email body goes here.'
> message.attach(MIMEText(body, 'plain'))
>
> # SMTP setup
> smtp_server = 'your_smtp_server'
> smtp_port = 587
>
> # Start the SMTP session
> with smtplib.SMTP(smtp_server, smtp_port) as server:
> # Login to your email account if needed
> # server.login(sender_email, 'your_password')
>
> # Send the email
> server.sendmail(sender_email, recipient_email, message.as_string())
>
> @acoto <https://github.com/acoto> can you check the code to see if you
> have indicated the from properly?
>
> —
> Reply to this email directly, view it on GitHub
> <#219 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AD7OU3W42VO6ZK63JJEYVSDYQELQXAVCNFSM6AAAAABABQIORCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBYGI2TCMBTGE>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
The text was updated successfully, but these errors were encountered: