By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,330 Members | 1,252 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,330 IT Pros & Developers. It's quick & easy.

SMTP- Email to Fax

P: n/a
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 = "me@me.com";

objMail.To
= "fax=15196666666/bc=test/to=Me/st=0/en=23/fr=Me/cp=true/
cf**@protusfax.com";

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;
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Rob <rg******@drncommerce.com> wrote:
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...

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.