473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Sender alias using CDO email

Seth Schrock
2,965 Expert 2GB
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.
Jul 16 '14 #1
3 5959
Seth Schrock
2,965 Expert 2GB
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.
Expand|Select|Wrap|Line Numbers
  1. With cdoMsg
  2.     .To = SendTo
  3.     .From = """Auto Notification"""
  4.     .ReplyTo = ReplyTo
  5.     .Subject = Subject
  6.     .TextBody = Body
  7.     .Sender = From
  8.     .Send
  9. End With
Jul 17 '14 #2
NeoPa
32,556 Expert Mod 16PB
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.
Jul 17 '14 #3
Seth Schrock
2,965 Expert 2GB
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.
Jul 17 '14 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: D. Alvarado | last post by:
Hello, I am sending email using PHP's mail utility. I have found the syntax for including the "From" and "Reply-To" headers (the sender's email), but I can't find how to include the first and...
1
by: Irmen de Jong | last post by:
Hi I'm trying to create e-mail content using the email.MIMEText module. It basically works, until I tried to send mail in non-ascii format. What I did, to test both iso-8859-15 and UTF-8...
1
by: fortepianissimo | last post by:
This is a question only relevant to Mac OS X. Could someone offer a simple example how to use Carbon.File module (perhaps Alias.FSResolveAlias()?) to resolve an alias? Basically I'd like to load...
2
by: Jon Maz | last post by:
Hi, Simple one. The C# code behind for a .aspx page can have a 'namespace alias', as here: using AdsBusiness = Wrox.WebModules.AdsManager.Business; Question: can you do this with inline...
2
by: Jim Fox | last post by:
Thought maybe I could do this with a hyperlink field in a table...........but doesn't seem to be working. I basically got a vendors table with all the contact info. One of the fields is EMAIL...
1
by: crescent_au | last post by:
hi all, i have this mail() function which works fine but i've tested it with hotmail where i use hotmail email address for sender and receiver also hotmail. If I type in a not existent email...
0
by: gillespie.amanda | last post by:
How do I add a Sender name to the emails sent by the following script: def createhtmlmail (html, text, subject): """Create a mime-message that will render HTML in popular MUAs, text in better...
2
by: yxktmp | last post by:
Hi; I have a main starting query for most of my reporting. I branch out from this query to other queries. This main query contains multiple form control filters (query criterias) . I want to use...
1
by: gowrik | last post by:
Hi can anyone know the coding for undelivered mails to the sender using jsp and servlets
0
by: pie2637 | last post by:
I am making a program to remotely shut down my server/computer if I receive an Email from an address on a list of senders I have. I don't care about anything except for the address, and everything...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.