C# MAPIPDL

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I setup an Exchange Distribuition List containing external e-mail addresses;
non-exchange users and asked my developer to send e-mail to it from his app.
He said he cannot using C# and that he can only send via SMTP which cannot
utilize my Distribution List. Is there any way to accomplish what I want to
do?
 
IIRC, he can just send mail to the distro list name (like any other account)
and Exchange handles the distro to the members.
 
Well, it didn't for us (the reason for my post). Following is the bulk of
the code used to accomplish e-mail. We are able to send mail via SMTP to an
address (e.g. (e-mail address removed)) and to a distribution list in Global Address
List but when we try a Distribution List that was created in a shared contact
list, it does not resolve the name:

MailMessage MyMail = new MailMessage();

MyMail.To = this.textBox1.Text;

MyMail.From = this.textBox2.Text;

MyMail.Cc = this.textBox3.Text;

MyMail.Bcc = this.textBox4.Text;

MyMail.Subject = this.textBox5.Text + " From " +
this.textBox7.Text;

MyMail.Body = this.textBox6.Text;

SmtpMail.SmtpServer = this.textBox7.Text;

SmtpMail.Send(MyMail);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top