Is it possible to have an alias for the sender of a CDO email? I'm sending an email through my gmail account and I can't get it to show the sender as anything except the user that logs in. I've tried the Message.From and .Sender properties and they don't change anything.
Sender alias using CDO email
Collapse
X
-
Tags: None
-
After playing around with it some more, I got it to work. I have the From property set to a name and the Sender property set to an email address. This makes it work.Code:With cdoMsg .To = SendTo .From = """Auto Notification""" .ReplyTo = ReplyTo .Subject = Subject .TextBody = Body .Sender = From .Send End With -
Very little experience with it Seth, but I expect not. You certainly can at the SMTP level, but even that is nowadays likely to fail to get there due to the various levels of threat detection in place in most mails servers (It's essentially spoofing of course), but I'd be surprised if CDO or CDONTS supported it. Generally you just get an indication that it was sent on behalf of the other ID.Comment
-
Well, what I did makes it so that when you are viewing your list of emails, the alias shows up. However, when you open the email, you see the alias and then the real email address in parenthesis. That is good enough for me.Comment
Comment