lamw / ghettoVCB

ghettoVCB
MIT License
1.28k stars 364 forks source link

mail send fails on long username/password #252

Closed nboeckmann closed 3 months ago

nboeckmann commented 2 years ago

if the username/password are too long - the current bas64 does return the result including a newline which makes the authentication to the SMTP server fail - the proposed change makes sure that the base64 is returned in a single line.

Tested with SendGrid SMPT and apikey - the suggested change fixes the described issue.