Text is empty if the string contains a colon ":"
Closed this issue · 3 comments
BillYovino commented
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 commented
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 commented
Hi,
Thanks for the quick response and explanation. It's all good now. Thank you!
Regards,
Bill
…On Thu, Aug 4, 2022 at 5:57 AM Shawwwn ***@***.***> wrote:
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?
—
Reply to this email directly, view it on GitHub
<#14 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN74QUSENUUTIZ33GLKP3ETVXOHXTANCNFSM55QOPDBQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
shawwwn commented
You're welcome.