|
 |
asp_cdo thread: CDONTS issues/configuration
Message #1 by bmcelhany@h... on Thu, 24 Jan 2002 22:26:52
|
|
Hi,
I have a series of ASP pages on our corporate intranet site that use
CDONTS to sent e-mails. The issue we're having is that some people receive
the e-mails and some people don't (we've verified that the e-mail entered
in the mail object's "to" property is correct). For example when I create
a test e-mail script, and enter my address in the "cc" property, I'll get
the e-mail, but the person in the "to" property will not:
<%
set objMail=Server.CreateObject("CDONTS.NewMail")
objMail.To="user@d..." ' this person does not receive mail
objMail.Cc="me@d..." ' I receive mail
objMail.Body="Test"
objMail.Send
set objMail=nothing
%>
By the way, if I send the e-mail to myself ("To") and "Cc" someone else, I
still get the e-mail, but the CC'd person does not. Any ideas? Thanks in
advance!
Brian
Message #2 by Eli Schilling <eschilli@t...> on Thu, 24 Jan 2002 17:26:41 -0500
|
|
You might want to add
objMail.From = "me@m..."
I've encountered problems before where some mail will get dropped if there
is no 'from' address.
Regards,
Eli
-----Original Message-----
From: bmcelhany@h... [mailto:bmcelhany@h...]
Sent: Thursday, January 24, 2002 2:27 PM
To: ASP CDO
Subject: [asp_cdo] CDONTS issues/configuration
Hi,
I have a series of ASP pages on our corporate intranet site that use
CDONTS to sent e-mails. The issue we're having is that some people receive
the e-mails and some people don't (we've verified that the e-mail entered
in the mail object's "to" property is correct). For example when I create
a test e-mail script, and enter my address in the "cc" property, I'll get
the e-mail, but the person in the "to" property will not:
<%
set objMail=Server.CreateObject("CDONTS.NewMail")
objMail.To="user@d..." ' this person does not receive mail
objMail.Cc="me@d..." ' I receive mail
objMail.Body="Test"
objMail.Send
set objMail=nothing
%>
By the way, if I send the e-mail to myself ("To") and "Cc" someone else, I
still get the e-mail, but the CC'd person does not. Any ideas? Thanks in
advance!
Brian
Message #3 by bmcelhany@h... on Mon, 28 Jan 2002 20:58:09
|
|
Tried that, but still no luck. I tried the exact same script on two
different machines that (in theory) were configured the same. On the first
machine, it worked fine 100% of the time. The same script on the other
machine failed about 75% of the time. What can I check, from a
configuration point of view, on these two machines to see what the
difference is?
> You might want to add
>
> objMail.From = "me@m..."
>
> I've encountered problems before where some mail will get dropped if
there
> is no 'from' address.
>
> Regards,
> Eli
>
> -----Original Message-----
> From: bmcelhany@h... [mailto:bmcelhany@h...]
> Sent: Thursday, January 24, 2002 2:27 PM
> To: ASP CDO
> Subject: [asp_cdo] CDONTS issues/configuration
>
>
> Hi,
> I have a series of ASP pages on our corporate intranet site that use
> CDONTS to sent e-mails. The issue we're having is that some people
receive
> the e-mails and some people don't (we've verified that the e-mail
entered
> in the mail object's "to" property is correct). For example when I
create
> a test e-mail script, and enter my address in the "cc" property, I'll
get
> the e-mail, but the person in the "to" property will not:
>
> <%
> set objMail=Server.CreateObject("CDONTS.NewMail")
> objMail.To="user@d..." ' this person does not receive mail
> objMail.Cc="me@d..." ' I receive mail
> objMail.Body="Test"
> objMail.Send
> set objMail=nothing
> %>
>
> By the way, if I send the e-mail to myself ("To") and "Cc" someone else,
I
> still get the e-mail, but the CC'd person does not. Any ideas? Thanks in
> advance!
>
> Brian
Message #4 by arshad siddiqui <ash_arshad@y...> on Mon, 28 Jan 2002 20:43:59 -0800 (PST)
|
|
Hi,
Please tell me the configurations you are using for
your server.
thanx
Regards
--Arshad--
--- bmcelhany@h... wrote:
> Tried that, but still no luck. I tried the exact
> same script on two
> different machines that (in theory) were configured
> the same. On the first
> machine, it worked fine 100% of the time. The same
> script on the other
> machine failed about 75% of the time. What can I
> check, from a
> configuration point of view, on these two machines
> to see what the
> difference is?
>
> > You might want to add
> >
> > objMail.From = "me@m..."
> >
> > I've encountered problems before where some mail
> will get dropped if
> there
> > is no 'from' address.
> >
> > Regards,
> > Eli
> >
> > -----Original Message-----
> > From: bmcelhany@h...
> [mailto:bmcelhany@h...]
> > Sent: Thursday, January 24, 2002 2:27 PM
> > To: ASP CDO
> > Subject: [asp_cdo] CDONTS issues/configuration
> >
> >
> > Hi,
> > I have a series of ASP pages on our corporate
> intranet site that use
> > CDONTS to sent e-mails. The issue we're having is
> that some people
> receive
> > the e-mails and some people don't (we've verified
> that the e-mail
> entered
> > in the mail object's "to" property is correct).
> For example when I
> create
> > a test e-mail script, and enter my address in the
> "cc" property, I'll
> get
> > the e-mail, but the person in the "to" property
> will not:
> >
> > <%
> > set
> objMail=Server.CreateObject("CDONTS.NewMail")
> > objMail.To="user@d..." ' this person does
> not receive mail
> > objMail.Cc="me@d..." ' I receive mail
> > objMail.Body="Test"
> > objMail.Send
> > set objMail=nothing
> > %>
> >
> > By the way, if I send the e-mail to myself ("To")
> and "Cc" someone else,
> I
> > still get the e-mail, but the CC'd person does
> not. Any ideas? Thanks in
> > advance!
> >
> > Brian
> $subst('Email.Unsub').
>
$subst('Email.Unsub').
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com
Message #5 by "Mike Peschka" <peschkmj@a...> on Tue, 29 Jan 2002 01:41:18 -0500
|
|
I am trying to send a message through Exchange 2000 with CDO using the
following piece of code. When I attempt to run it, I receive the
following error message...
Error Type:
CDO.Message.1 (0x8004D002)
Transaction failed to commit for an unknown reason.
/mail/compose.asp, line 36
Any help with this would be most appreciated!
Thanks,
Mike Peschka
Here's the code.
Dim Conn, iMsg, iConf, Flds, strURLInbox
Set Conn =3D Server.CreateObject("ADODB.Connection")
Set iMsg =3D CreateObject("CDO.Message")
Set iConf =3D CreateObject("CDO.Configuration")
Set Flds =3D iConf.Fields
strURLMailbox =3D "file://./backofficestorage/domainname/MBX/" &
Session("user")
Conn.Provider =3D "ExOLEDB.DataSource"
Conn.Open strURLMailbox
' 3 means that you are asking mail to be sent using Exchange Server.
Flds("http://schemas.microsoft.com/cdo/configuration/sendusing")
=3D 3
Flds("http://schemas.microsoft.com/cdo/configuration/mailboxurl")
=3D strURLMailbox
Flds("http://schemas.microsoft.com/cdo/configuration/activeconnection")
=3D Conn
Flds.Update
Set iMsg.Configuration =3D iConf
With iMsg
.From =3D Session("UserName") & "@domainname"
.To =3D Request.Form("to")
.Cc =3D Request.Form("cc")
.Subject =3D Request.Form("subject")
.TextBody =3D Request.Form("body")
.Send ' <--------- This is the line that causes the error.
End With
|
|
 |