Maybe you should try this:
<%
Set Mail = Server.CreateObject("CDO.Message")
Set objConfig = Server.CreateObject("CDO.Configuration")
Mail.Configuration = objConfig
Mail.Subject = Request("name") & " recommends this site!"
Mail.From = "[EMAIL PROTECTED]" ' Specify sender's address
Mail.to= Request("email") ' Name is optional
Mail.HTMLBody= "Hey, this is " & Request("name") & "!. You have to
check out this site: http://www.skimawebsolution.com bye!" 'instead
of using textbody use htmlbody
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "Error encountered: " & Err.Description
End If
%>
On Fri, 14 Jan 2005 11:32:40 -0800 (PST), Mark E <[EMAIL PROTECTED]> wrote:
> I don't see where you are setting the name of your SMTP server. Add that
> line and it should work.
>
> Mark
>
>
> sheriff <[EMAIL PROTECTED]> wrote:
>
> I have been trying to send mail through the CD0.message but i always
> encourter error please i will want anyone to help me out.
> this is the code below :
>
> <html>
>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=windows-
> 1252">
> <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> <meta name="ProgId" content="FrontPage.Editor.Document">
> <title>sending mail.</title>
> </head>
>
> <body>
> <%
> Set Mail = Server.CreateObject("CDO.Message")
> Mail.Subject = Request("name") & " recommends this site!"
> Mail.From = "[EMAIL PROTECTED]" ' Specify sender's address
> Mail.to= Request("email") ' Name is optional
> Mail.TextBody = "Hey, this is " & Request("name") & "!. You have to
> check out this site: http://www.skimawebsolution.com bye!"
>
> On Error Resume Next
> Mail.Send
> If Err <> 0 Then
> Response.Write "Error encountered: " & Err.Description
> End If
> %>
>
> </body>
>
> </html>
>
> The error message is :
> Error encountered: The "SendUsing" configuration value is invalid.
>
>
> please i need someone to help me out.
>
>
>
>
>
> ---------------------------------
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
>
> [Non-text portions of this message have been removed]
>
>
> ________________________________
> Yahoo! Groups Links
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
GJ Bondoc
15 V. Luciano St. Proj. 4 Q.C.
Tel#: 9118586 Cell#: 09274684926
e-mail: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/