J
JJBW
Hi
I am having a bit of a problem with SmtpMail. I have a bit of code
that should send an email but when it is executed no email turns up.
MailMessage mmNotify = new MailMessage();
mmNotify.From = [from email address];
mmNotify.To = [recipient email address];
mmNotify.BodyFormat = MailFormat.Text;
mmNotify.Subject = [my subject];
mmNotify.Body = [my body text];
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(mmNotify);
If I stop my SmtpServer (which runs on my box) I get the following
error message:
Cannot access CDO.Message object
If I then start the SmtpServer the message does not arise.
I assume that this means the MailMessage object get created.
When the send method is called an exception is not created and the
code continues to execute.
What happens to my email ? Where does it go ? It doesn't even end up
in the DROP, BADMAIL etc folders
Any suggestions ????
I am having a bit of a problem with SmtpMail. I have a bit of code
that should send an email but when it is executed no email turns up.
MailMessage mmNotify = new MailMessage();
mmNotify.From = [from email address];
mmNotify.To = [recipient email address];
mmNotify.BodyFormat = MailFormat.Text;
mmNotify.Subject = [my subject];
mmNotify.Body = [my body text];
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(mmNotify);
If I stop my SmtpServer (which runs on my box) I get the following
error message:
Cannot access CDO.Message object
If I then start the SmtpServer the message does not arise.
I assume that this means the MailMessage object get created.
When the send method is called an exception is not created and the
code continues to execute.
What happens to my email ? Where does it go ? It doesn't even end up
in the DROP, BADMAIL etc folders
Any suggestions ????