EMAIL Woes

T

Teddy

I created a little test snippet to send mail via asp.net code.
Whats up with this code, I can get MM to work,
get a CDO access denied error,The addresses here are fake for this post, but
the real ones
work other than the CDO error:
Dim mm As New Mail.MailMessage
mm.To = "(e-mail address removed)"
mm.Cc = (e-mail address removed)
mm.From = "(e-mail address removed)"
mm.Subject = "TEST"
mm.Body = "This is just a test mail."
mm.BodyFormat = MailFormat.Text
SmtpMail.SmtpServer = "mail.smtp.net"
SmtpMail.Send(mm) <<FAILS with CDO Access error
however, If I change the line to the other overloaded function
SmtpMail.Send(mm.To, mm.To, mm.Subject, "Test") <<THIS WORKS
Whats up????
Thanks...
 
A

Alvin Bruney [Microsoft MVP]

try changing your mail smtpserver to "localhost". see what gives

--
Regards
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc, Amazon, B&H etc
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top