473,585 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1828
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******@hotma il.com> wrote in message
news:eI******** ******@TK2MSFTN GP12.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.c om> wrote in message
news:ee******** ******@TK2MSFTN GP14.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******@hotma il.com> wrote in message
news:eI******** ******@TK2MSFTN GP12.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
9864
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 ********************************** package Celcom.Client;
8
5460
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 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I...
1
2152
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
1489
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 as follows: " & Server.GetLastError.ToString mail.To = "myname@earthlink.net" mail.From = "myname@earthlink.net"
6
2773
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 capturing user computer user name i have done... my problem is .... i need the unregistered user to log in to my site and from there there will...
6
4974
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 for long running reports. When the processing is complete it uses crystal reports to load a template file, populate it, and then export it to a...
6
17159
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, process and output to the screen in my application when a message arrived. But the problem is how do I read the SMS message immediately when it arrived...
11
26556
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 and PEAR is in c:\wamp\php\pear I modified php.ini in the c:\wamp\php directory to reflect the actual path, but even stopping and restarting my...
3
2998
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
2440
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 send contact info to email or data base when the "send" button is pressed. I've watched the tutorials over & over again. I just can't get it. Link:...
0
7836
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8336
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7950
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8212
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5389
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.