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

Text is empty if the string contains a colon ":" #14

Closed
BillYovino opened this issue Aug 3, 2022 · 3 comments
Closed

Text is empty if the string contains a colon ":" #14

BillYovino opened this issue Aug 3, 2022 · 3 comments

Comments

@BillYovino
Copy link

smtp.send(textOut)

textOut = "My IP address is 192.168.1.1" works
textOut = "My IP address: 192.168.1.1" doesn't work.

There is a similar issue with new line characters "\n"

@shawwwn
Copy link
Owner

shawwwn commented Aug 4, 2022

Colons don't get send because first n lines with a colon may be interpreted by the server as email headers.
You need to not use colon in the first line or use some sort of special characters to escape that colon.

Can you provide more details regarding the new character?

@BillYovino
Copy link
Author

BillYovino commented Aug 4, 2022 via email

@shawwwn
Copy link
Owner

shawwwn commented Aug 5, 2022

You're welcome.

@shawwwn shawwwn closed this as completed Aug 5, 2022
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

2 participants