473,378 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Help using System.Web.Mail to send an email

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.
Nov 19 '05 #1
2 1818
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

"Terry Olsen" <to******@hotmail.com> wrote in message
news:eI**************@TK2MSFTNGP12.phx.gbl...
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.

Nov 19 '05 #2
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.

"martin" <mc*****************@hotmail.com> wrote in message
news:ee**************@TK2MSFTNGP14.phx.gbl...
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

"Terry Olsen" <to******@hotmail.com> wrote in message
news:eI**************@TK2MSFTNGP12.phx.gbl...
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.


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
1
by: Miguel Dias Moura | last post by:
Hello, Can you help me out in making this work? What I want is as simple as sending form values to an email. The code I am using is the following:
3
by: Sandy | last post by:
Hello - I am attempting to email error messages to myself in the event of an error. I am using the following code: Dim mail as New MailMessage() Dim ErrorMessage = "The error description is...
6
by: \jason via DotNetMonster.com\ | last post by:
currently i am doing a personal website and keep on changing the aspect... finally the finall decision is to have a login page (requirement in asp.net, vb.net) and the login with security part of...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
6
by: ransoma22 | last post by:
I developing an application that receive SMS from a connected GSM handphone, e.g Siemens M55, Nokia 6230,etc through the data cable. The application(VB.NET) will receive the SMS automatically,...
11
by: cybervigilante | last post by:
I can't seem to change the include path on my local winmachine no matter what I do. It comes up as includ_path .;C:\php5\pear in phpinfo() but there is no such file. I installed the WAMP package...
3
by: jambonjamasb | last post by:
Hi I have two tables: email_tbl Data_table Data table is is used to create a Form Data_form
12
by: =?Utf-8?B?ZGdvdw==?= | last post by:
I designed a "contact_us" page in visual web developer 2005 express along with EW2 after viewing tutorials on asp.net's help page. Features work like they should, but I cannot figure out how to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.