I am sending the user’s input in a textbox as an email’s content and send it over the socket through SMTP. I’m doing this in Java. However, the thing is when the user enters input such as…
<CLRF>
.
<CLRF>
Other content blah blah blah...
The SMTP takes that full-stop as the last line and then the contents below it will not be delivered! How can I let SMTP know that the full-stop is part of the content of the email and not an indication that email has ended?
Simply add another period.
For full details, see RFC 2821.