SMTP- Email to Fax

R

Rob

I currently have a cfmail tag sending email 2 fax emails
to protusfax server. When i try to use the
System.Web.Mail object from CSharpe to send this email to
fax it generates the following error:

The server rejected one or more recipient addresses. The
server response was: 501 5.5.4 Invalid Address.

Any Ideas?

Here is my code:

using System.Web.Mail;

MailMessage objMail = new MailMessage();

objMail.From = "(e-mail address removed)";

objMail.To
= "fax=15196666666/bc=test/to=Me/st=0/en=23/fr=Me/cp=true/
[email protected]";

objMail.Subject = datBillingCycle.ToString("mmmm") + " "
+ datBillingCycle.ToString("yyyy") + " DRN Billing
Invoice";

objMail.Attachments.Add(new MailAttachment
("C:\test.pdf"));

objMail.Body = "text goes here";

SmtpMail.SmtpServer = "127.0.0.1";

SmtpMail.Send(objMail);

objMail = null;
 
J

Jon Skeet

Rob said:
Everything is being populated properly just like it
should be.

It works fine if i reference the MAPI control it sends
perfectly fine.

Very bizarre. Time to sniff the network, I reckon...
 

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

Top