Hi all,
I'm using subethasmtp api for receiving SMTP messages. The format is actually
RFC 822:
MAIL FROM: aaa@xxx.yyy.com \r\n
250 Sender ok\r\n
RCPT TO: xxx@yyy.zzz.com \r\n
250 Recipient ok\r\n
DATA\r\n
354 Enter mail, end with "." on a line by itself\r\n
Subject: \r\n
TO: xxx@yyy.zzz.com \r\n
Some text.\r\n
.\r\n
My question is how I can parse the DATA. When using the MimeMessage class, the text is not parsed (or maybe I am doing something wrong).
Thank you.
I'm using subethasmtp api for receiving SMTP messages. The format is actually
RFC 822:
MAIL FROM: aaa@xxx.yyy.com \r\n
250 Sender ok\r\n
RCPT TO: xxx@yyy.zzz.com \r\n
250 Recipient ok\r\n
DATA\r\n
354 Enter mail, end with "." on a line by itself\r\n
Subject: \r\n
TO: xxx@yyy.zzz.com \r\n
Some text.\r\n
.\r\n
My question is how I can parse the DATA. When using the MimeMessage class, the text is not parsed (or maybe I am doing something wrong).
Thank you.
Comment