Email sender name wont display from automatically generated email

Hi,

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
 objMessage.Configuration.Fields.Update
objMessage.Send

Kev
kevin1983Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cookreCommented:
I'd include:

objMessage.From="me@here.com"
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kevin1983Author Commented:
Thanks Cookre, thats done the job fine.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.