Closed FSGRSolutions closed 6 years ago
The problem is the '<' character at "<Telenor" - that is invalid syntax.
If you try using InternetAddressList.Parse() on the string value of the From header you'll get an exception that tells you the problem.
I recommend submitting a bug report to the makers of the sending software.
Thank you for your prompt response; any way to expose the return-path? would this be recommended?
You could look at message.Headers["Return-Path"]
(case of the header name is not important), but it's not something that is necessarily guaranteed to exist or be relevant.
Doesn't hurt to try, though, I suppose. You could also check the Reply-To address if that exists.
Hi Jeffrey, again, thank you for your great work. I'm running into an issue with some messages where I cannot get the email sender. I use the following code:
For Each mailbox As MailboxAddress In message.From.Mailboxes email.From = email.From & IIf(mailbox.Address <> "", mailbox.Address, mailbox.Name) & ";" Next
When I look into the POP3 log for the message, I see:
Subject is parsed and is populated properly.
Also, at the beginning of the message, I see: S: Return-Path: eszamla@telenor.hu
Let me know if there's any way to expose the return path.