|
 |
asp_cdo thread: Sending email using CDO library
Message #1 by "Magali Gonzalez" <magali@r...> on Mon, 26 Feb 2001 13:52:09 -0400
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_00BD_01C09FFB.4FF8D890
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
I have this sentence in ASP to send email using CDO library.
--------
Set objOutbox =3D objAMSession.Outbox
Set objMessage =3D objOutbox.Messages.Add
Set objRecipients =3D objMessage.Recipients
Set objRecipient =3D objRecipients.Add
objRecipient.Name =3D Email
err.clear
objRecipient.Resolve
if err.number=3D -2147221233 then
response.write("Recipient not found,please use your back
button to reload your page<br><br>")
else
objMessage.Subject =3D "Mensaje del Sistema de
Informaci=C3=B3n de la Red rural"
objMessage.Text =3D "<b>Olvido su contrasena?</b><br><br>" &_
"Nombre de Usuario: " & UserId & "<br><br>" &_
"Contrasena: " & Password & "<br><br>" &_
"Gracias por acceder a nuestro Sistema de Informacion"
objMessage.Send
end if
Set objRecipient =3D Nothing
Set objMessage =3D Nothing
Set objOutbox =3D Nothing
-------
How can I set HTML format to the email I want to generate?
I will apreciate any help...
Thanks,
Magali Gonzalez
Message #2 by "Magali Gonzalez" <magali@r...> on Mon, 26 Feb 2001 14:38:40 -0400
|
|
I have this sentence in ASP to send email using CDO library.
--------
Set objOutbox = objAMSession.Outbox
Set objMessage = objOutbox.Messages.Add
Set objRecipients = objMessage.Recipients
Set objRecipient = objRecipients.Add
objRecipient.Name = Email
err.clear
objRecipient.Resolve
if err.number= -2147221233 then
response.write("Recipient not found,please use your back button
to reload your page<br><br>")
else
objMessage.Subject = "Mensaje del Sistema de Información de la Red
rural"
objMessage.Text = "<b>Olvido su contrasena?</b><br><br>" &_
"Nombre de Usuario: " & UserId & "<br><br>" &_
"Contrasena: " & Password & "<br><br>" &_
"Gracias por acceder a nuestro Sistema de Informacion"
objMessage.Send
end if
Set objRecipient = Nothing
Set objMessage = Nothing
Set objOutbox = Nothing
-------
How can I set HTML format to the email I want to generate?
I will apreciate any help...
Thanks,
Magali Gonzalez
Message #3 by "Jonothon Ortiz" <jon@x...> on Mon, 26 Feb 2001 13:31:02 -0500
|
|
Have you tried using the NewMail object of CDONTS or are you trying to do
something else to send your mail? CDONTS has a built-in object that handles
HTML mail.
http://msdn.microsoft.com/library/psdk/cdo/_denali_newmail_object_cdonts_lib
rary_.htm
man we need an FAQ for this list...ROFL
Espero que esto te ayude! Sabias que tu sabes
Jonothon Ortiz
Senior Web Developer
Xnext, Inc.
Ph: xxx.xxx.xxxx
or 888.84.XNEXT
http://www.Xnext.com
mailto:jon@x...
Message #4 by Mike Williams <mwilliams@w...> on Mon, 26 Feb 2001 13:25:24 -0600
|
|
You only have to add
objMessage.bodyformat =3D 0
Then all your text info is HTML enabled.
-----Original Message-----
From: Magali Gonzalez [mailto:magali@r...]
Sent: Monday, February 26, 2001 12:39 PM
To: ASP CDO
Subject: [asp_cdo] Sending email using CDO library
I have this sentence in ASP to send email using CDO library.
--------
Set objOutbox =3D objAMSession.Outbox
Set objMessage =3D objOutbox.Messages.Add
Set objRecipients =3D objMessage.Recipients
Set objRecipient =3D objRecipients.Add
objRecipient.Name =3D Email
err.clear
objRecipient.Resolve
if err.number=3D -2147221233 then
response.write("Recipient not found,please use your back
button
to reload your page<br><br>")
else
objMessage.Subject =3D "Mensaje del Sistema de Informaci=F3n
de la Red
rural"
objMessage.Text =3D "<b>Olvido su contrasena?</b><br><br>"
&_
"Nombre de Usuario: " & UserId & "<br><br>" &_
"Contrasena: " & Password & "<br><br>" &_
"Gracias por acceder a nuestro Sistema de Informacion"
objMessage.Send
end if
Set objRecipient =3D Nothing
Set objMessage =3D Nothing
Set objOutbox =3D Nothing
-------
How can I set HTML format to the email I want to generate?
I will apreciate any help...
Thanks,
Magali Gonzalez
---
http://www.asptoday.com - the leading site for timely,
in-depth information for ASP developers everywhere.
Message #5 by Kevin Perry <kperry@c...> on Mon, 26 Feb 2001 14:42:01 -0500
|
|
Well i just found out that our server is running NT not WINDOWS 2000, the
CDONTS.dll is not register there..so thats one problem..now I can use the
CDO call right..thats supported on Windows NT server correct?
And thanks for your help below..very much appricated for someone tring to
learn with in a week!!!
Thanks
-----Original Message-----
From: Jonothon Ortiz [mailto:jon@x...]
Sent: Monday, February 26, 2001 1:31 PM
To: ASP CDO
Subject: [asp_cdo] RE: Sending email using CDO library
Have you tried using the NewMail object of CDONTS or are you trying to do
something else to send your mail? CDONTS has a built-in object that handles
HTML mail.
http://msdn.microsoft.com/library/psdk/cdo/_denali_newmail_object_cdonts_lib
rary_.htm
man we need an FAQ for this list...ROFL
Espero que esto te ayude! Sabias que tu sabes
Jonothon Ortiz
Senior Web Developer
Xnext, Inc.
Ph: xxx.xxx.xxxx
or 888.84.XNEXT
http://www.Xnext.com
mailto:jon@x...
---
http://www.asptoday.com - the leading site for timely,
in-depth information for ASP developers everywhere.
Message #6 by "Magali Gonzalez" <magali@r...> on Mon, 26 Feb 2001 16:57:26 -0400
|
|
I wasn't able to go to the page :
http://msdn.microsoft.com/library/psdk/cdo/_denali_newmail_object_cdonts_lib
. I tried once to send email using CDONT'S, but I found a site where it said
that CDONT'S only works with the SMTP service of IIS, and if you want to
send email using ASP by an Exchange Server 5.5., you need to use the CDO
library. Is this true?, because I already tried to use CDONT'S to send email
and I couldn't and I didn't figure out what the problem was.
Thank you for your help and sorry because of my bad english :-) ,
Magali
Message #7 by "Magali Gonzalez" <magali@r...> on Tue, 27 Feb 2001 10:42:16 -0400
|
|
When I added the sentence:
objMessage.bodyformat = 0
Appears this message:
El objeto no acepta esta propiedad o método: 'bodyformat'
which means that the object does not accept this property or method:
'bodyformat'
This is probably because I'm not using the newmail object of CDONT'S.
I also found this on the MSDN library:
"The CDO for NTS Library interfaces with the SMTP (Simple Mail Transfer
Protocol) server component of Microsoft® Internet Information Server (IIS)
version 4.0 and later. The Session object uses the LogonSMTP method to
differentiate the access from the Logon method of the the CDO Library, which
interfaces with Microsoft® Exchange Server. "
Does this means that I can't use CDO for NTS library if I use the Microsoft
Exchange Server?
Is there any other way to send HTML email using ASP and CDO?
I will apreciate any help. Thanks
Magali
----- Original Message -----
From: "Mike Williams" <mwilliams@w...>
To: "ASP CDO" <asp_cdo@p...>
Sent: Monday, February 26, 2001 3:25 PM
Subject: [asp_cdo] RE: Sending email using CDO library
You only have to add
objMessage.bodyformat = 0
Then all your text info is HTML enabled.
-----Original Message-----
From: Magali Gonzalez [mailto:magali@r...]
Sent: Monday, February 26, 2001 12:39 PM
To: ASP CDO
Subject: [asp_cdo] Sending email using CDO library
I have this sentence in ASP to send email using CDO library.
--------
Set objOutbox = objAMSession.Outbox
Set objMessage = objOutbox.Messages.Add
Set objRecipients = objMessage.Recipients
Set objRecipient = objRecipients.Add
objRecipient.Name = Email
err.clear
objRecipient.Resolve
if err.number= -2147221233 then
response.write("Recipient not found,please use your back button
to reload your page<br><br>")
else
objMessage.Subject = "Mensaje del Sistema de Información de la Red
rural"
objMessage.Text = "<b>Olvido su contrasena?</b><br><br>" &_
"Nombre de Usuario: " & UserId & "<br><br>" &_
"Contrasena: " & Password & "<br><br>" &_
"Gracias por acceder a nuestro Sistema de Informacion"
objMessage.Send
end if
Set objRecipient = Nothing
Set objMessage = Nothing
Set objOutbox = Nothing
-------
How can I set HTML format to the email I want to generate?
I will apreciate any help...
Thanks,
Magali Gonzalez
|
|
 |