try out some of these examples..
"David" <dross@si.rr.com> wrote in message
news:OLk34K5QFHA.244@TK2MSFTNGP12.phx.gbl...
> Hi, When I set the following for my CDO email, the mail is receievd with
> the html portion does not appear formatted but just as it is seen below.
> I seperated the problem area below with a dashed line to make it easier to
> find in this post.
>
> Any suggestions would be appreciated.
>
> Thanks
> David
>
>
>
>
>
> <!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
> NAME="CDO for Windows Library" -->
>
> <!--METADATA TYPE="typelib" UUID="00000205-0000-0010-8000-00AA006D2EA4"
> NAME="ADODB Type Library" -->
> <%
> SUB sendmail( fromWho, toWho, Subject, Body )
>
> Dim objCDO
> Dim iConf
> Dim Flds
> Dim msg
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> msg="<html><head><title>E-Mail Link</title><meta
> http-equiv=""Content-Type"" content=""text/html;
> charset=iso-8859-1""></head><body bgcolor=""#33FF33""><table width=""400""
> height=""300"" border=""1"" bordercolor=""#000000"" bgcolor=""#33FF33"">
> <tr><td><table width=""100%"" border=""0""><tr><td><div
> align=""center""><a href=""
http://site.com/friend.htm""><img > src=""
http://site.com/images/e_header.gif"" width=""397""
> height=""101""></a></div></td></tr><tr><td> </td> </tr>
> <tr> <td bgcolor=""#00CC33""> <p><font color=""#000000"">You have
> recieved the following link from <font face=""Courier New, Courier, mono""
> size=""3"">" & fromaddress & "</font></font></p> <p> </p></td>
> </tr> <tr> <td><p>Message:</p> <p><font
> face=""Courier New, Courier, mono"" size=""3"">" &
> message&"</font></p></td> </tr> <tr> <td>Click on the
> following to access the sent link:<font color=""#3300FF""> <a
> href=""
http://site.com/friend.htm""><font face=""Arial, Helvetica,
> sans-serif"" size=""4"">Camp Shane</font></a></font></td> </tr>
> <tr> <td> </td> </tr> </table> <p
> align=""center""><input type=""button"" value=""Close Window""
> name=""close"" onClick=""window.close()""></p></td>
> </tr></table></body></html>"
>
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>
> Const cdoSendUsingPort = 2
>
> Set objCDO = Server.CreateObject("CDO.Message")
> Set iConf = Server.CreateObject("CDO.Configuration")
>
> Set Flds = iConf.Fields
> With Flds
> .Item(cdoSendUsingMethod) = cdoSendUsingPort
> .Item(cdoSMTPServer) = "mail-fwd"
> .Item(cdoSMTPServerPort) = 25
> .Item(cdoSMTPconnectiontimeout) = 10
> .Update
> End With
>
> Set objCDO.Configuration = iConf
>
> objCDO.From = fromWho
> objCDO.To = toWho
> objCDO.Subject = "A friend of yours thought that you may be interested in
> http://www.site.com"
> objCDO.TextBody = msg
> objCDO.Send
>
> END SUB
> fromWho = TRIM( Request.Form( "fromWho") )
> toWho = TRIM( Request.Form( "toWho") )
> Subject = TRIM( Request.Form( "Subject" ) )
> msg = TRIM( Request.Form( "msg") )
> If toWho <> "" THEN
> sendMail fromWho, toWho, Subject, msg
>
>
> 'Cleanup
> Set ObjCDO = Nothing
> Set iConf = Nothing
> Set Flds = Nothing
> Response.redirect "http://www.site.com"
> ' Any existing page can be used for the response redirect method
> END IF
> %>
>
>
>
> <HTML>
> <HEAD><TITLE>Email Form</TITLE><meta http-equiv="Content-Type"
> content="text/html; charset="></HEAD>
> <body bgcolor="#33ff33">
> <FORM METHOD="POST" ACTION="<%=Request.ServerVariables("SCRIPT_NAME")%>">
> <table width="400" border="1" bordercolor="#000000" height="309">
> <tr>
> <td valign="top" height="303">
> <table width="100%" border="0">
> <tr>
> <td colspan="2"> <p align="center"><font color="#000000">EMAIL
> this
> page to a friend</font></p></td>
> </tr>
> <tr>
> <td colspan="2">
> <div align="center"><strong>web site</strong></div>
> </td>
> </tr>
> <tr>
> <td colspan="2"> <p align="center"> </p></td>
> </tr>
> <tr>
> <td width="39%"><font size="-1">Your friends email
> address:</font></td>
> <td width="61%"> <font size="-1">
> <input name="towho" type="text" id="towho">
> </font> </td>
> </tr>
> <tr>
> <td><font color="#000000" size="-1">Your email
> address:</font></td>
> <td>
> <input name="fromwho" type="text" id="fromwho">
> </td>
> </tr>
> <tr>
> <td colspan="2"><font size="-1">Message:</font></td>
> </tr>
> <tr>
> <td colspan="2">
> <textarea name="body" cols="40" rows="5"
> id="body"></textarea>
> </td>
> </tr>
> <tr>
> <td colspan="2"><table width="100%" border="0">
> <tr>
> <td><div align="center">
> <input type="reset" name="Reset" value="Reset">
> </div></td>
> <td><div align="center">
> <input type="submit" name="Submit2" value="Submit">
>
> </div></td>
> </tr>
> </table></td>
> </tr>
> </table>
> <p align="center"> </p>
> </td>
> </tr>
> </table>
> </FORM>
> </HTML>
>
>