Help using System.Web.Mail to send an email

T

Terry Olsen

I'm running on Windows Server 2003, Exchange 2003, ASP.NET (Framework 1.1)

I can send mail using an email client, telnetting in to the SMTP port and
manually sending the email, but when I try to use the SmtpMail object to
send email (to & from addresses are both on my local SMTP server) I get the
following errors.

Exception: Could not access 'CDO.Message' object.
InnerException: Exception has been thrown by the target of an invocation.
InnerException: Access is denied.

I can't figure out what is meant by access is denied. I have anonymous
access enabled in my SMTP server... I've read the faq at
www.systemwebmail.com but none of the solutions there work for me. Can
anyone help?

Thanks.
 
M

martin

sounds like the address you have do not have permissions to relay from the
mail server.

look in the properties of the smtp server

see "relay" button at the botton are "access" tab.

HTH

martin
 
T

Terry Olsen

Yeah, I found my problem. I was putting in the server's IP address in the
allow relay form, when I should have put in the 127.0.0.1 IP.
 

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

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top