Sending Email from fmwk 1.1

G

Guest

Hi folks,
first of all I'm using ASP.net 1.1 with C#

I've got an XP professional corporate build machine with SP1

I have been using
MailMessage mailMsg = new MailMessage();
mailMsg.From = from;
mailMsg.To = to;
mailMsg.Cc = cc;
mailMsg.Bcc = bcc;
mailMsg.Subject = subject;
mailMsg.BodyFormat = MailFormat.Text;
mailMsg.Body = body;
mailMsg.Priority = MailPriority.High;
// Smtp configuration
SmtpMail.SmtpServer = "myExchangeServer.co.uk" (obviously
a legitimae entry in my code)

but it falls over when I do

SmtpMail.Send(mailMsg)

the error is "could not access CDO.message object"

I want to test it on my local machine then run on a test server.
How do I find out the value for the SmtpMail.SmtpServer for sending emails
internally in a large organisation, or is the problem something else...

Regards and thanks in advance,
CharlesA
 
S

sloan

I have code samples at
http://spaces.msn.com/sholliday/ 2/8/2006 entry
that is downloadable.

Its more than youre asking for, but the code samples are prepackaged.

There are some hints there as well.

My configuration section is good for this exact reason. Local development
vs.......... production deployment.

Please leave a note at the blog if its helpful.
 

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