473,657 Members | 2,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDOSYS problems

This is a problem that we saw before on our asp site, but don't know how to
fix it. We are seeing it on our .net site also.

We have our email sending from our Windows 2003 server with exchange fine,
unless we send to an alias.

It never gets there.

I can send directly and it works fine and the CDOSYS works fine to a
non-alias account.

I have the following code:

Dim Message As New MailMessage()
' message.From = webMasterEmail
message.From = "Re**********@o ursystem.com"
message.To = email.text
message.Subject = "Confirmati on Required"
message.Body = "This is a test message"
message.BodyFor mat = MailFormat.Html
SmtpMail.SmtpSe rver = mailServer
smtpMail.Send(m essage)

This works fine when the message.To is to my yahoo, dslextreme as well as my
normal business account. If I send to my alias account at work it never
shows up. We seem to have this with all our aliases. But I can send
directly to the alias from outlook without any problem.

I don't think this is an exchange problem, as it works fine if I send to my
alias from my email client.

Anyone know why this doesn't work?

Thanks,

Tom

Jul 22 '05 #1
9 2697
CDO wants an SMTP e-mail address. What do you mean by alias? What happens
if you address it to an Exchange recipient's SMTP address?

Also, is this ASP? Dim Message As...?

Ray at work

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
This is a problem that we saw before on our asp site, but don't know how to fix it. We are seeing it on our .net site also.

We have our email sending from our Windows 2003 server with exchange fine,
unless we send to an alias.

It never gets there.

I can send directly and it works fine and the CDOSYS works fine to a
non-alias account.

I have the following code:

Dim Message As New MailMessage()
' message.From = webMasterEmail
message.From = "Re**********@o ursystem.com"
message.To = email.text
message.Subject = "Confirmati on Required"
message.Body = "This is a test message"
message.BodyFor mat = MailFormat.Html
SmtpMail.SmtpSe rver = mailServer
smtpMail.Send(m essage)

This works fine when the message.To is to my yahoo, dslextreme as well as my normal business account. If I send to my alias account at work it never
shows up. We seem to have this with all our aliases. But I can send
directly to the alias from outlook without any problem.

I don't think this is an exchange problem, as it works fine if I send to my alias from my email client.

Anyone know why this doesn't work?

Thanks,

Tom

Jul 22 '05 #2
tshad wrote:
This is a problem that we saw before on our asp site, but don't know how to
fix it. We are seeing it on our .net site also.

We have our email sending from our Windows 2003 server with exchange fine,
unless we send to an alias.

It never gets there.

I can send directly and it works fine and the CDOSYS works fine to a
non-alias account.

I have the following code:

Dim Message As New MailMessage()
' message.From = webMasterEmail
message.From = "Re**********@o ursystem.com"
message.To = email.text
message.Subject = "Confirmati on Required"
message.Body = "This is a test message"
message.BodyFor mat = MailFormat.Html
SmtpMail.SmtpSe rver = mailServer
smtpMail.Send(m essage)

This works fine when the message.To is to my yahoo, dslextreme as well as my
normal business account. If I send to my alias account at work it never
shows up. We seem to have this with all our aliases. But I can send
directly to the alias from outlook without any problem.

I don't think this is an exchange problem, as it works fine if I send to my
alias from my email client.

Anyone know why this doesn't work?

Thanks,

Tom


Most likely its a "relay" setting. Check the drop folder, see if there
is message error there.
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Jul 22 '05 #3
"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:uj******** ********@TK2MSF TNGP10.phx.gbl. ..
tshad wrote:
This is a problem that we saw before on our asp site, but don't know how
to fix it. We are seeing it on our .net site also.

We have our email sending from our Windows 2003 server with exchange
fine,
unless we send to an alias.

It never gets there.

I can send directly and it works fine and the CDOSYS works fine to a
non-alias account.

I have the following code:

Dim Message As New MailMessage()
' message.From = webMasterEmail
message.From = "Re**********@o ursystem.com"
message.To = email.text
message.Subject = "Confirmati on Required"
message.Body = "This is a test message"
message.BodyFor mat = MailFormat.Html
SmtpMail.SmtpSe rver = mailServer
smtpMail.Send(m essage)

This works fine when the message.To is to my yahoo, dslextreme as well as
my
normal business account. If I send to my alias account at work it never
shows up. We seem to have this with all our aliases. But I can send
directly to the alias from outlook without any problem.

I don't think this is an exchange problem, as it works fine if I send to
my
alias from my email client.

Anyone know why this doesn't work?

Thanks,

Tom

Most likely its a "relay" setting. Check the drop folder, see if there is
message error there.


Where is the Drop folder?

Is it on Exchange?

Thanks,

Tom

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

Jul 22 '05 #4
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:O$******** ******@TK2MSFTN GP14.phx.gbl...
CDO wants an SMTP e-mail address. What do you mean by alias? What
happens
if you address it to an Exchange recipient's SMTP address?
Exchange allows you to set up aliases either to different domains or
different names on the same domain. When the mail comes in, Exchange
resolves to your primary name.

For example, my primary name could be ts***@deltanet. com. But I could set
up an alias of sa***@deltanet. com.

Anyone sending mail to sa***@deltanet. com would get rerouted to my address
(ts***@deltanet .com).

Or I could have multiple domains. I could have another domain of "abc.com"
(this would have to be a valid domain that is pointing to my server that has
exchange on it). So I could have ts***@abc.com or ad***@abc.com .

All of these would be resolved by Exchange to ts***@deltanet. com and sent to
my machine.

Tom
Also, is this ASP? Dim Message As...?
No. In this case, it is asp.net - but no one has answered the question
there and I had the same problem in asp.


Ray at work

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
This is a problem that we saw before on our asp site, but don't know how

to
fix it. We are seeing it on our .net site also.

We have our email sending from our Windows 2003 server with exchange
fine,
unless we send to an alias.

It never gets there.

I can send directly and it works fine and the CDOSYS works fine to a
non-alias account.

I have the following code:

Dim Message As New MailMessage()
' message.From = webMasterEmail
message.From = "Re**********@o ursystem.com"
message.To = email.text
message.Subject = "Confirmati on Required"
message.Body = "This is a test message"
message.BodyFor mat = MailFormat.Html
SmtpMail.SmtpSe rver = mailServer
smtpMail.Send(m essage)

This works fine when the message.To is to my yahoo, dslextreme as well as

my
normal business account. If I send to my alias account at work it never
shows up. We seem to have this with all our aliases. But I can send
directly to the alias from outlook without any problem.

I don't think this is an exchange problem, as it works fine if I send to

my
alias from my email client.

Anyone know why this doesn't work?

Thanks,

Tom


Jul 22 '05 #5
"tshad" <ts**********@f tsolutions.com> wrote in message
news:OJ******** ********@TK2MSF TNGP15.phx.gbl. ..
"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:uj******** ********@TK2MSF TNGP10.phx.gbl. ..
tshad wrote:
This is a problem that we saw before on our asp site, but don't know how
to fix it. We are seeing it on our .net site also.

We have our email sending from our Windows 2003 server with exchange
fine,
unless we send to an alias.

It never gets there.

I can send directly and it works fine and the CDOSYS works fine to a
non-alias account.

I have the following code:

Dim Message As New MailMessage()
' message.From = webMasterEmail
message.From = "Re**********@o ursystem.com"
message.To = email.text
message.Subject = "Confirmati on Required"
message.Body = "This is a test message"
message.BodyFor mat = MailFormat.Html
SmtpMail.SmtpSe rver = mailServer
smtpMail.Send(m essage)

This works fine when the message.To is to my yahoo, dslextreme as well
as my
normal business account. If I send to my alias account at work it never
shows up. We seem to have this with all our aliases. But I can send
directly to the alias from outlook without any problem.

I don't think this is an exchange problem, as it works fine if I send to
my
alias from my email client.

Anyone know why this doesn't work?

Thanks,

Tom


Most likely its a "relay" setting. Check the drop folder, see if there is
message error there.


Where is the Drop folder?

Is it on Exchange?


Also, I can send mail directly from outside with not problem to these
addresses. It is only when I use my Web Server and CDOSYS that I seem to
have a problem.

Thanks,

Tom
Jul 22 '05 #6
tshad wrote:
"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:uj******** ********@TK2MSF TNGP10.phx.gbl. ..
tshad wrote:
This is a problem that we saw before on our asp site, but don't know how
to fix it. We are seeing it on our .net site also.

We have our email sending from our Windows 2003 server with exchange
fine,
unless we send to an alias.

It never gets there.

I can send directly and it works fine and the CDOSYS works fine to a
non-alias account.

I have the following code:

Dim Message As New MailMessage()
' message.From = webMasterEmail
message.From = "Re**********@o ursystem.com"
message.To = email.text
message.Subject = "Confirmati on Required"
message.Body = "This is a test message"
message.BodyFor mat = MailFormat.Html
SmtpMail.SmtpSe rver = mailServer
smtpMail.Send(m essage)

This works fine when the message.To is to my yahoo, dslextreme as well as
my
normal business account. If I send to my alias account at work it never
shows up. We seem to have this with all our aliases. But I can send
directly to the alias from outlook without any problem.

I don't think this is an exchange problem, as it works fine if I send to
my
alias from my email client.

Anyone know why this doesn't work?

Thanks,

Tom


Most likely its a "relay" setting. Check the drop folder, see if there is
message error there.

Where is the Drop folder?

Is it on Exchange?

Thanks,

Tom

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com



under the MAILROOT path (in the IIS path).

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Jul 22 '05 #7
tshad wrote:
"tshad" <ts**********@f tsolutions.com> wrote in message
news:OJ******** ********@TK2MSF TNGP15.phx.gbl. ..
"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:uj****** **********@TK2M SFTNGP10.phx.gb l...
tshad wrote:

This is a problem that we saw before on our asp site, but don't know how
to fix it. We are seeing it on our .net site also.

We have our email sending from our Windows 2003 server with exchange
fine,
unless we send to an alias.

It never gets there.

I can send directly and it works fine and the CDOSYS works fine to a
non-alias account.

I have the following code:

Dim Message As New MailMessage()
' message.From = webMasterEmail
message.From = "Re**********@o ursystem.com"
message.To = email.text
message.Subject = "Confirmati on Required"
message.Body = "This is a test message"
message.BodyFor mat = MailFormat.Html
SmtpMail.SmtpSe rver = mailServer
smtpMail.Send(m essage)

This works fine when the message.To is to my yahoo, dslextreme as well
as my
normal business account. If I send to my alias account at work it never
shows up. We seem to have this with all our aliases. But I can send
directly to the alias from outlook without any problem.

I don't think this is an exchange problem, as it works fine if I send to
my
alias from my email client.

Anyone know why this doesn't work?

Thanks,

Tom


Most likely its a "relay" setting. Check the drop folder, see if there is
message error there.


Where is the Drop folder?

Is it on Exchange?

Also, I can send mail directly from outside with not problem to these
addresses. It is only when I use my Web Server and CDOSYS that I seem to
have a problem.

Thanks,

Tom


Yeah, but your "from" is registering as actually coming from the
webserver, and not matching, and trying to go out to yet another address...

But this amy all be irrelvant. What is the "alias" you are sending to?
Most likely its just a matter of exchange interpreting right.
If it doesnt work in ASP nor in ASP.NET most likely it is a
server/exchange setting, not a programming one I'd guess.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Jul 22 '05 #8
Your problem is most likely with relaying, dns, or Exchange. When a server
gets an e-mail that it's supposed to send, it performs a DNS lookup to check
for a mail exchanger (mx) DNS record to tell it where it should send the
e-mail. So, your IIS server, if not using a smarthost, will say, "Okay,
let's see. I have an e-mail here that's destinted for the deltanet.com
domain. Let me query my DNS server to see where that's supposed to go." If
it gets back a resposne from the DNS server, it attempts to connect to that
remote server and deliver the message to it. If that remote server answers
and says, "Uh, yeah, sa***@deltanet. com? That should come here to me." And
then it will file the e-mail in the appropriate user's inbox. If the
message is not appearing in the user's inbox, what can be happening?

If you've successfully sent e-mails to other addresses in the same domain,
then you know that you're able to e-mail that domain from your IIS server.
So relaying and MX is fine. So, perhaps those other SMTP addresses don't
really exist? Or, if those e-mail addresses do in fact have a different
domain, then perhaps the MX records don't actually exist.

Is the From address of your mail object your e-mail address? If not, set it
to that so that you can see if you might get a response message back from
either the local or remote server giving you details as to what happened to
the message.

Ray at work
"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l...
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:O$******** ******@TK2MSFTN GP14.phx.gbl...
CDO wants an SMTP e-mail address. What do you mean by alias? What
happens
if you address it to an Exchange recipient's SMTP address?
Exchange allows you to set up aliases either to different domains or
different names on the same domain. When the mail comes in, Exchange
resolves to your primary name.

For example, my primary name could be ts***@deltanet. com. But I could set
up an alias of sa***@deltanet. com.

Anyone sending mail to sa***@deltanet. com would get rerouted to my address
(ts***@deltanet .com).

Or I could have multiple domains. I could have another domain of

"abc.com" (this would have to be a valid domain that is pointing to my server that has exchange on it). So I could have ts***@abc.com or ad***@abc.com .

All of these would be resolved by Exchange to ts***@deltanet. com and sent to my machine.

Tom

Jul 22 '05 #9
"tshad" wrote in message news:%2******** **********@tk2m sftngp13.phx.gb l...
: "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
: message news:O$******** ******@TK2MSFTN GP14.phx.gbl...
: > CDO wants an SMTP e-mail address. What do you mean by alias? What
: > happens
: > if you address it to an Exchange recipient's SMTP address?
:
: Exchange allows you to set up aliases either to different domains or
: different names on the same domain. When the mail comes in, Exchange
: resolves to your primary name.
:
: For example, my primary name could be ts***@deltanet. com. But I could set
: up an alias of sa***@deltanet. com.

An account can support multiple addresses (secondaries) or you can have one
address forward to another in one of two ways:

1. forward and keep a copy
2. just forward

The primary address is used as the address given in the FROM: and REPLY-TO:

You can also setup a distribution list so anyone in the DL will get a copy
but the DL doesn't have a mailbox. Think of it as a multi-forward address.
You can also use a public folder because they too have addresses.

However, an alias in Exchange is not an address and it does not work with
3rd party. In other words, Outlook would have to be used to send to an
alias. Ex. bo*@hope.com alias bhope. The alias would resolve to Bob's
primary address before sending but Outlook queries Exchange. I don't
remember if you have to be running Outlook in CW mode or if it also works in
IMO but irrelevant here.

: Anyone sending mail to sa***@deltanet. com would get rerouted to my address
: (ts***@deltanet .com).
:
: Or I could have multiple domains. I could have another domain of
"abc.com"
: (this would have to be a valid domain that is pointing to my server that
has
: exchange on it). So I could have ts***@abc.com or ad***@abc.com .

You can setup foreign addresses where a message could be accepted but it
then forwards the message to the foreign domain. These addresses to not
have local mailboxes.

: All of these would be resolved by Exchange to ts***@deltanet. com and sent
to
: my machine.
:
: Tom
: >
: > Also, is this ASP? Dim Message As...?
:
: No. In this case, it is asp.net - but no one has answered the question
: there and I had the same problem in asp.

You would need to show Classic ASP code here. It will increase your chances
for success.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 22 '05 #10

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

Similar topics

1
1597
by: Paxton | last post by:
Is it necessary to set field configurations for CDOSYS? I have yet to recode all my existing uses of CDONTS over to CDOSYS. In most of the sample code I've seen on the usual ASP sites, there is code to set field configurations for CDOSYS (usually using With... End With). However, in a number of CDOSYS-related code samples offered within this news group, the field configuration code is absent.
3
7453
by: Matthew Loraditch | last post by:
I have a form mail processor from brainjar.com, I am using.(http://www.brainjar.com/asp/formmail/) I have modified it slightly to do some things. I am trying to get it to cc a copy of the email it generates to the person who filled out the form. I have added bolded part below to the actual email sending portion of the script. However i do not receieve two emails, only one, the email i do receive lists the cc: in the headers but that receipient...
2
3768
by: Patrick C | last post by:
Hi All I am having a rather odd problem with CDOSYS attachment. My script sends out an email to potential employers with candidate resume's in attahments. the attachmentes are made dynamically by looping the : ..AddAttachment "http://serverurl/previewcv.asp?candidateid=" & candidateid So far things go smoothly.
14
13416
by: Neil Ginsberg | last post by:
I am using VBA/Access to send SMTP mail using CDO. I set a reference to "Microsoft CDO for Windows 2000 Library" (cdosys.dll). Everything works fine, both on my PC and on another PC. However, on another PC that the database was installed on, the user is getting the message, "The project contains a missing or broken reference to the file 'CDO.DLL' version 1.21." However, I don't have a reference to cdo.dll; my reference is to cdosys.dll....
24
6253
by: Manuel | last post by:
Is it possible to embed an image, like a company logo in a CDOSYS generated message? If yes, I´ll apreciate some code sample. I´ve been able to format messages in html the way I like, but I can't figure out how to embed an image. Thanks for your time. -- Manuel
8
7540
by: Akbur | last post by:
Dear all, I'm having major issues sending an email from my ASP.NET app. I'm getting a "Could not create 'CDO.Message' object". When I did a search for cdosys.dll in \win_location\system32, I could not find it. So I copied it from another Windows 2003 server, where it did exist. Another dependant file was missing too (inetcomm.dll).
2
5363
by: mister-Ed | last post by:
Trying to use cdosys mail, but this is giving me an "no such object" error. the hosting company is not much help, but their list of components offered does include cdosys mail: <form method="post" action="cdosys-godaddy.asp"><p class="bodymd- wh">Your Name: <input type="text" name="uname" id="uname"> <br>City: <input type="text" name="city" id="city"> <br>State:
6
6512
by: ayush patel | last post by:
Hi everybody, I wrote a windows service and I have to do sme email functionality in it. I used SMTP and added system.web reference to the project. there are no compilation errors as such but there is a run time error saying System.Web.HttpException: Could not create an object of type 'CDO.Message'. Please verify that the current platform configuration supports SMTP mail. at...
9
3018
by: paulmitchell507 | last post by:
I have a file called email2.asp which I am using to mail data obtained from a SQL query. I would like to pass the holiday_ID value in the querystring attached to the end of the URL. It all works except that I can't get the value of holiday_ID included as a querystring. As a test I can insert a value after the ?id= and this is passed as a querystring. I am sure it's just the syntax that I am having problem with
0
8399
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8827
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...
0
8732
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8606
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...
0
7337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4159
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
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.