Skip to content
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

Special character in user name lead to weird Email Sender in the mail #210

Open
wantdrink opened this issue Jun 12, 2021 · 0 comments
Open

Comments

@wantdrink
Copy link

Hi there,

I tried to show the sender name as a friendly name with code:

user = {"[email protected]": "Admin MyService™"}
yagmail.SMTP(host="smtp.myservice.com",
                           port=25,
                           smtp_starttls=False,
                           smtp_ssl=False,
                           smtp_skip_login=True,
                           user=user,
                           soft_email_validation=True)
service.send(to=to, subject=subject, contents=body, cc=cc, bcc=bcc, preview_only=False)

It's a internal smtp service without username/password needed. I expect to receive the mail and the sender displays as 'Admin MyService™' , but in fact it shows '("Admin MyService™" [email protected] via myservice.com)...'

After removing the ™ the received mail's sender will display as: "Admin MyService".

So it looks like the character ™ leads to the issue. Any suggestion for it?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant