473,216 Members | 2,039 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,216 software developers and data experts.

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 2253
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******@HighflyingBirds.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******@HighflyingBirds.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
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...
2
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; //...
2
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...
1
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...
3
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...
4
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...
6
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...
1
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...
14
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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.