I have an application that needs to send (internal) e-mails, so naturally it uses SMTP. Our e-mail server is Microsoft Exchange.
When I look at the e-mails in Outlook, something isn't right with the Sender address. It appears as a proper SMTP address, instead of an Exchange Contact (or something...I have no idea what to call it).
An SMTP exchange looks like this:
220 mail.example.com Microsoft ESMTP MAIL Service ready at Thu, 7 Mar 2013 11:04:41 -0500 EHLO HOSTNAME 250-mail.example.com Hello [0.0.0.0] 250-SIZE 15728640 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH 250-8BITMIME 250-BINARYMIME 250 CHUNKING MAIL FROM: Adam.Batkin@example.com 250 2.1.0 Sender OK RCPT TO: Adam.Batkin@example.com 250 2.1.5 Recipient OK DATA 354 Start mail input; end with <CRLF>.<CRLF> To: Adam Batkin <Adam.Batkin@example.com> From: Adam Batkin <Adam.Batkin@example.com> Subject: Test Test . 250 2.6.0 <firstname.lastname@example.org> Queued mail for delivery
But then when I look at the message in Outlook, the sender appears as "
Adam Batkin <Adam.Batkin@example.com>" instead of just "Adam Batkin". If I hit Reply, the same thing happens. Let's say the message was sent to a distribution list that I was on, if I hit Reply-All, Outlook doesn't recognize that the sender is my address (which it normally would, if the message didn't come in over SMTP), so my address appears in the To: list of the reply.
Any ideas about how format SMTP messages so that Exchange/Outlook will recognize the senders/recipients as internal users, instead of opaque SMTP e-mail addresses?