IIS and SMTP - Changing the From/Sender address, CDO and SMTP service

This is Interesting: Free IT Magazines  
Home > Archive > IIS and SMTP > August 2004 > Changing the From/Sender address, CDO and SMTP service





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Changing the From/Sender address, CDO and SMTP service
Des

2004-08-19, 7:48 am

Hi all,

I'm new to IIS so apologies if the answer is obvious. I've created a simple
asp.net web app which uses the SMTP service of IIS on a Windows Server 2000
box to deliver messages. The SMTP service was configured previously by
someone who knew their onions - I don't. It works very well though. However,
the messages are delivered with a from address of a generic exchange account.
I've been asked to make the messages appear to be sent from a more
descriptive account e.g. 'Marketing Communications' for which there is an
existing exchange account. That way people who receive the mails will reply
to the more relevant account.

Looking around the SMTP service properties I see the generic exchange
account specified in the Windows Security package option of the Outbound
Security dialog of the Delivery tab. I guess (?) I can change this to the
nicer 'Marketing Communications' user account but I'd rather not interfere
with this setting (other apps might be affected).

My asp.net application creates the message as a CDO.Message object. I've
tried setting the From and Sender properties to the Marketing Communications
address but then they don't get delivered - they are only delivered when
these properties are set to the generic address.

Is there a way I can configure either IIS or the CDO messages to be
delivered from the generic account but appear to be from the Marketing
Communications address?

Thanks,

--
Des Geraghty
Des

2004-08-19, 5:57 pm

Problem solved! In the CDO.Message object I had been setting different From
and Sender values. Once I set them both to the desired address all was well.
Technically I probably don't need to set the Sender property at all.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com