Ask a Question related to ASP Database, Design and Development.
-
Dune #1
CDOSYS and smarthost
I'm trying to send an email from my ASP page using
CDO.Message and CDO.Configuration. I couldn't get this to
work for ages and all my emails ended up in
inetpub\mailroot\queue.
I'm behind a firewall and finally figured out that i have
to set the smarthost field for the SMTP Virtual Server in
IIS to get any emails to send. All good, the emails get
sent.
The part that confuses me is that in my code, no matter
what i set the cdoSMTPServer field for the
CDO.Configuration object to, it always works. I guess it's
using the smarthost field in the SMTP Virtual Server to
get the name of the server to use...but how will this all
work out on a different computer??
(What i would really like is for the code to use the
server specified in the cdoSMTPServer field instead of
relying on the configuration of the SMTP Virtual Server.)
Cheers
Dune Guest
-
CDOSYS vs CDONTS
hello i have resently installed win 2003 web. me and my clients are used to use CDONTS and have meny asp pages configured fore it BUT 2003 uses... -
CDOSYS NNTP
Is it possible to send/receive nntp messages via CDOSYS without a 3rd party news component? The NNTP links I have found appear to be related to MS... -
CDOSYS URL namespace... Huh?
I've looked all over the world (via Google) and found a few sample snippets of CDOSYS Message object. (And even more sites that merely copy the... -
cdosys.dll problem
Hi, I had my ASP .NET application in my windows 2000 Server and IIS5. It had been working fine for 9 months. Because of virus threatening of last... -
exim to exim4 smarthost question
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 What would the exim4 equivilent of this? (in the Routers section) smarthost: driver =... -
Aaron Bertrand [MVP] #2
Re: CDOSYS and smarthost
Can you show your code? If you are specifying a server but mail is going to
the local folders, then you must be using cdoSendUsingPickup rather than
cdoSendUsingPort. I'll guess that if you use [url]www.timbuktu_doesn't[/url]
_exist.com it will still work, because CDO is ignoring the server name
you're sending because your code is telling it to use the local mail
folders.
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
"Dune" <anonymous@discussions.microsoft.com> wrote in message
news:077d01c3d590$e2b3ffc0$a301280a@phx.gbl...> I'm trying to send an email from my ASP page using
> CDO.Message and CDO.Configuration. I couldn't get this to
> work for ages and all my emails ended up in
> inetpub\mailroot\queue.
>
> I'm behind a firewall and finally figured out that i have
> to set the smarthost field for the SMTP Virtual Server in
> IIS to get any emails to send. All good, the emails get
> sent.
>
> The part that confuses me is that in my code, no matter
> what i set the cdoSMTPServer field for the
> CDO.Configuration object to, it always works. I guess it's
> using the smarthost field in the SMTP Virtual Server to
> get the name of the server to use...but how will this all
> work out on a different computer??
>
> (What i would really like is for the code to use the
> server specified in the cdoSMTPServer field instead of
> relying on the configuration of the SMTP Virtual Server.)
>
> Cheers
Aaron Bertrand [MVP] Guest
-
Dune #3
CDOSYS and smarthost
hmmm, sorry, posted in wrong place!!
it's>-----Original Message-----
>I'm trying to send an email from my ASP page using
>CDO.Message and CDO.Configuration. I couldn't get this to
>work for ages and all my emails ended up in
>inetpub\mailroot\queue.
>
>I'm behind a firewall and finally figured out that i have
>to set the smarthost field for the SMTP Virtual Server in
>IIS to get any emails to send. All good, the emails get
>sent.
>
>The part that confuses me is that in my code, no matter
>what i set the cdoSMTPServer field for the
>CDO.Configuration object to, it always works. I guess>using the smarthost field in the SMTP Virtual Server to
>get the name of the server to use...but how will this all
>work out on a different computer??
>
>(What i would really like is for the code to use the
>server specified in the cdoSMTPServer field instead of
>relying on the configuration of the SMTP Virtual Server.)
>
>Cheers
>.
>Dune Guest
-
Dune #4
Re: CDOSYS and smarthost
here's my code:
Dim iMsg
Set iMsg = Server.CreateObject("CDO.Message")
Dim iConf
Set iConf = Server.CreateObject("CDO.Configuration")
Dim Flds
Set Flds = iConf.Fields
Flds("cdoSendUsingMethod") = 2 'cdoSendUsingPort
' this is actually set to the server name in my code
Flds("cdoSMTPServer") = "smarthostServerName"
Flds("cdoSMTPServerPort") = 25
Flds("cdoSMTPAuthenticate") = 0 'cdoAnonymous
Flds.Update
With iMsg
Set .Configuration = iConf
.To = Request.Form("txtEmail")
.From = "helpdesk@quotable.co.nz"
.Sender = "helpdesk@quotable.co.nz"
.Subject = "QVNZ - Reset Password"
.TextBody = "This is a test email."
.Send
End With
Set iMsg = Nothing
Set iConf = Nothing
but mail is going to>-----Original Message-----
>Can you show your code? If you are specifying a servercdoSendUsingPickup rather than>the local folders, then you must be using[url]www.timbuktu_doesn't[/url]>cdoSendUsingPort. I'll guess that if you usethe server name>_exist.com it will still work, because CDO is ignoringlocal mail>you're sending because your code is telling it to use themessage>folders.
>
>--
>Aaron Bertrand
>SQL Server MVP
>[url]http://www.aspfaq.com/[/url]
>
>
>
>
>"Dune" <anonymous@discussions.microsoft.com> wrote into>news:077d01c3d590$e2b3ffc0$a301280a@phx.gbl...>> I'm trying to send an email from my ASP page using
>> CDO.Message and CDO.Configuration. I couldn't get thishave>> work for ages and all my emails ended up in
>> inetpub\mailroot\queue.
>>
>> I'm behind a firewall and finally figured out that iin>> to set the smarthost field for the SMTP Virtual Serverit's>> IIS to get any emails to send. All good, the emails get
>> sent.
>>
>> The part that confuses me is that in my code, no matter
>> what i set the cdoSMTPServer field for the
>> CDO.Configuration object to, it always works. I guessall>> using the smarthost field in the SMTP Virtual Server to
>> get the name of the server to use...but how will thisServer.)>> work out on a different computer??
>>
>> (What i would really like is for the code to use the
>> server specified in the cdoSMTPServer field instead of
>> relying on the configuration of the SMTP Virtual>>>
>> Cheers
>
>.
>Dune Guest



Reply With Quote

