473,890 Members | 1,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Use of SmtpMail to Send Mail Outside Domain

I am using SmtpMail on a couple of ASP.NET pages. When
mail is sent to an address outside the domain I get
the "Could not access 'CDO.Message' object." error
message. I have looked in the newsgroup and I see several
entries on this but none that seem to work in my situation.

Exchange 2000 is running on same machine as the Web server
which is also a domain controller. I see a discussion of
several things such as using impersonation to setting
permissions on cdosys.dll to allow access by
IWAM_MACHINE. There seems to so many approaches, some of
which, I have tried without succes.

I am trying to simply send email to persons outside my
domain from a Web page. Does anyone have any
straightforward , unambiguous steps I can take to be able
to achieve this without unduly compromising security on
the machine?

Thanks.
Nov 17 '05 #1
2 2281
It sounds like a Relaying issue. You should be able to tweak the Relay
permissions on the SMTP server to fix it.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"Leonard" <Ea******@Highf lyingBirds.com> wrote in message
news:0d******** *************** *****@phx.gbl.. .
I am using SmtpMail on a couple of ASP.NET pages. When
mail is sent to an address outside the domain I get
the "Could not access 'CDO.Message' object." error
message. I have looked in the newsgroup and I see several
entries on this but none that seem to work in my situation.

Exchange 2000 is running on same machine as the Web server
which is also a domain controller. I see a discussion of
several things such as using impersonation to setting
permissions on cdosys.dll to allow access by
IWAM_MACHINE. There seems to so many approaches, some of
which, I have tried without succes.

I am trying to simply send email to persons outside my
domain from a Web page. Does anyone have any
straightforward , unambiguous steps I can take to be able
to achieve this without unduly compromising security on
the machine?

Thanks.

Nov 17 '05 #2
Thanks. I am not clear on what relaying settings to
apply. I am running Windows 2000 Server SP3 with Exchange
2000. The relay settings only allow forwarding from
another machine on my LAN. What other settings should I
be making. The machine in question is an active directory
domain controller. I have been dealing with this for
almost two weeks and nothing seems to work when sending
mail outside the domain. I notice another posting today
on the same issue. It seems a lot of people are having
the same problem and I'm seeing a lot of different,
conflicting, and confusing approaches to solutions that
don't seem to work. I guess we need some really clear,
complete, start-to-finish guidance on this.

What settings should we make regarding relaying in
Exchange? What permissions should we set for the
IWAM_MACHINE or ASPNET accounts? What kind of permissions
should be set for the cdosys.dll? What impersonations
should be set?

I have seen posting in all these areas from various points
of view. Some I understand and have tried without success
and some I don't. Since this seems to be a problem that
many of us are having, some kind of comprehensive,
coherent help is needed on how to the SmtpMail object in
various scenarios and configurations would be quite
helpful.

Thanks, again.
-----Original Message-----
It sounds like a Relaying issue. You should be able to tweak the Relaypermissions on the SMTP server to fix it.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"Leonard" <Ea******@Highf lyingBirds.com> wrote in message
news:0d******* *************** ******@phx.gbl. ..
I am using SmtpMail on a couple of ASP.NET pages. When
mail is sent to an address outside the domain I get
the "Could not access 'CDO.Message' object." error
message. I have looked in the newsgroup and I see several entries on this but none that seem to work in my situation.
Exchange 2000 is running on same machine as the Web server which is also a domain controller. I see a discussion of several things such as using impersonation to setting
permissions on cdosys.dll to allow access by
IWAM_MACHINE. There seems to so many approaches, some of which, I have tried without succes.

I am trying to simply send email to persons outside my
domain from a Web page. Does anyone have any
straightforward , unambiguous steps I can take to be able
to achieve this without unduly compromising security on
the machine?

Thanks.

.

Nov 17 '05 #3

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

Similar topics

8
379
by: Jason | last post by:
Hi not sure if this is the write place, but i really need some help with this...! I have a piece of code that sends email using the SmtpMail class, in an ASP.NET web application, with integrated window authentication. it does work, and works fine on my dev machine. it also works fine on the test server, but with some considerations. on the test server, i can send emails IF they do not include any attachments. as soon as i send an email...
2
2561
by: Leszek | last post by:
Hello, I have created a simple code to send emails using the MailMessage class and the SmtpMail.Send() method: MailMessage mail = new MailMessage(); mail.From = echidna@somewhere.com; // hard-coded mail.To = platypus@somewhere.com; mail.Subject = "Test"; mail.Body = strMessage;
2
1809
by: Edward | last post by:
Hello, everybody, I tried to send Email out using ASP.NET, but failed, here is the code of sending: -------------------------------------------------------------------------------- Try Try 'SmtpMail.SmtpServer = "smtp.citiz.net"
1
2707
by: Jens Øster | last post by:
Hi I am writing a ASP.NET web application that must sent some e-mails. I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send e-mail addresses out side my company walls. When the e-mail is send on some one in my company it works perfect. I think it is a relay issue. Our system administrator will not allow relaying. In the ASP.Net web.config file I let the web application...
3
9262
by: Jens | last post by:
Hi I am writing a ASP.NET web application that must sent some e-mails. I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send e-mail addresses out side my company walls. When the e-mail is send on some one in my company it works perfect. I think it is a relay issue. Our system administrator will not allow relaying. In the ASP.Net web.config file I let the web application...
4
7564
by: Aren Cambre | last post by:
Why does SmtpMail.Send throw an exception if the MailMessage's BodyFormat = MailFormat.Html? I've searched all over the place and cannot find a solution anywhere. I am running this on Windows XP SP2, and IIS's SMTP and WWW servers are installed. Here is the error trace: System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an...
6
3971
by: JIM.H. | last post by:
Hello, I am using SmtpMail.Send() and I get the following message The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for myMail@hotmail.com What does this mean? Thanks, Jim.
1
1480
by: B-Dog | last post by:
I've built a form that I want to use to email some of the information off it to a few users which will include a link to a folder on our network. I'm trying to send it in html format but when the message is received all you see is the html code and not just the text. I've included the code below but I'm a rookie so I must be missing something or doing something wrong. Thanks! Barclay Sub sendmail()
14
9154
by: supz | last post by:
Hi, I use the standard code given below to send an email from an ASP.NET web form. The code executes fine but no Email is sent. All emails get queued in the Inetpub mail queue. I'm using my local default SMTP Server and my from address is a valid Yahoo/Hotmail address. I have configures the local SMTP Server to allow the IP Address 127.0.0.1.
0
9978
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9822
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11232
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10923
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10462
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8016
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7169
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6045
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3277
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.