[Webinar] Streamline your web hosting managementRegister Today


Email sender name wont display from automatically generated email

Posted on 2008-02-11
Medium Priority
Last Modified: 2010-10-05

I have the below code to automatically send an email using the CDO object, it works fine however when the email arrives in the uses inbox (in outlook 2003) the from address does not show a sender name, when they open the email is does show in the from field: Auto Mailer [auto@ourdomain.co.uk] which is ok but it does not display anything in the from field in the preview view of the emails. Also when they get the email notification ballon box popop it says "Unknown sender"  is there any way to fix this what seems to be quite a minor issue so that the sender from name is always displayed?

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "NPD Date changes"  
objMessage.Sender = """Auto Mailer"" <auto@ourdomain.co.uk>"
objMessage.To = "bill@ourdomain.co.uk"
objMessage.TextBody = "Test"

objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
 objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "email.ourdomain.local"
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

Question by:kevin1983
LVL 22

Accepted Solution

cookre earned 1200 total points
ID: 20872060
I'd include:


Author Closing Comment

ID: 31429769
Thanks Cookre, thats done the job fine.

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

No other job is as rewarding and demanding as building an iPhone app is. It is not really in the hands of the developer for the success of an iPhone app. Many factors operate jointly for every iOS application's success in the market.
After a recent Outlook migration from a 2007 to 2010 environment, some issues with Distribution List owners were realized. In this article, I explain how that was rectified.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Starting up a Project

608 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question