Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

Sender Name doesn't appear to the recipients , when the email is sent

$
0
0

Dear Team

for specific purpose  , I am using the message Class in CDO to send emails ,

but the problem is that the sender name or address does not appears ,

here is the code I used

CDO.Message oMessage = new CDO.Message();
ADODB.Stream oStream = new ADODB.Stream();
oStream.Charset = "ascii";
oStream.Open();
oStream.WriteText(MHTmessage);
oMessage.DataSource.OpenObject(oStream, "_Stream");

   ADODB.Fields oFields = oMessage.Configuration.Fields;
   oFields["http://schemas.microsoft.com/cdo/configuration/sendusing"].Value = CDO.CdoSendUsing.cdoSendUsingPort;
   oFields["http://schemas.microsoft.com/cdo/configuration/smtpserver"].Value = smtpAddress;

   oFields.Update();

  oMessage.MimeFormatted = true;
  oMessage.Subject = subject;
  oMessage.Sender = emailFrom;
  oMessage.To = emailTo;
  oMessage.CC = emailcc;

oMessage.Send();

Regards


iqasas


Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>