|
 |
asp_cdo thread: sending html formatted email with loop and for statements
Message #1 by =?iso-8859-1?Q?Ra=FAl_D=EDaz_Baquero?= <rauldiazb@t...> on Fri, 17 Aug 2001 01:31:40 -0400
|
|
Hello people, I'm kind of new in CDONTS, but I'm familiar with sending
simple html formatted email with it.
The problem is that I would like to send an email with a "for"
statement.
I know that I have to put the html body in a string variable like this:
html=3D<html><head.....etc....>
HTML=3D HTML & "HELLO"
HTML=3D HTML & "WORLD"
but I don't know how to put asp code instructions within this html
string!
Thanks in advance
Message #2 by "Krishna K Khatri" <zipcn046@i...> on Mon, 20 Aug 2001 09:40:03
|
|
Dear CDONTS User, Hello.
You are saying that you want to send HTML formatted mails. I am giving you
the syntax, that you can use to send HTML formatted mails.
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
msMail.BodyFormat = 0 '0 is used for HTML formatting
msMail.MailFormat = 0 'Use 1 for the simple text formatted messages.
- - - - - - - -
- - - - - - - -
- - - - - - - -
objMail.Send
Set objMail = Nothing
Hope this will solve your problem.
Regards,
Krishna K Khatri
zipcn046@i...
>
> Hello people, I'm kind of new in CDONTS, but I'm familiar with sending
> simple html formatted email with it.
> The problem is that I would like to send an email with a "for"
> statement.
> I know that I have to put the html body in a string variable like this:
> html=3D<html><head.....etc....>
> HTML=3D HTML & "HELLO"
> HTML=3D HTML & "WORLD"
> but I don't know how to put asp code instructions within this html
> string!
> Thanks in advance
>
>
>
Message #3 by "Sachin Jain" <sachin_n_jain@r...> on 27 Aug 2001 16:22:17 -0000
|
|
ASP code is always written between <% and %> like--
<%=3D"<br>"%>
On Fri, 17 Aug 2001 Ra=FAl D=EDaz Baquero wrote :
>
>Hello people, I'm kind of new in CDONTS, but I'm
>familiar with sending =3D
>simple html formatted email with it.=3D20
>The problem is that I would like to send an email with
>a "for" =3D
>statement.
>I know that I have to put the html body in a string
>variable like this:
>html=3D3D<html><head.....etc....>
>HTML=3D3D HTML & "HELLO"
>HTML=3D3D HTML & "WORLD"
>but I don't know how to put asp code instructions
>within this html =3D
>string!
>Thanks in advance
>
|
|
 |