Este fue el codigo que me funciono en mi servidor......
<%@ Language=VBScript %>
<%
' CONFIGURATION
' set defaults if not specified
SubjectTemp = "Email desde el Boletin de Novedades " & Date() ' If the user leaves the subject blank then
' you can specify a default subject
FromTemp = "Formulario" ' If the user leaves the email address field
' blank then you can specify a default address
NameTemp = "Desde Boletin de Novedades" ' If the user leaves the name field blank then
' you can specify a default name
RedirectTemp = "emailconf.html" ' The URL or FILE to show after the form sends
' DO NOT MODIFY ANYTHING UNDER THIS LINE
recipient = Request("recipient") '
[email protected]
redirect = Request("redirect")
method = Request.ServerVariables("HTTP_METHOD")
Subject = Request("Subject")
fromemail = Request("email")
fromname = Request("username")
excludeflds = split(Request("exclude"),",")
if subject = "" then
Subject = SubjectTemp
end if
if fromemail = "" then
fromemail = FromTemp
end if
if fromname = "" then
fromname = NameTemp
end if
if redirect = "" then
redirect = RedirectTemp
end if
If Request.Form.Count > 0 Then
Body = Date() & " " & Time() & vbCRLF & vbCRLF
For I = 1 to Request.Form.Count
If Request.Form.Key(I) = "exclude" OR Request.Form.Key(I) = "email" OR Request.Form.Key(I) = "subject" OR Request.Form.Key(I) = "recipient" OR Request.Form.Key(I) = "redirect" OR Request.Form.Key(I) = "mailserver" OR Request.Form.Key(I) = "username" then
Else
Body = Body & Request.Form.Key(I) & " : " _
& Request.Form.Item(I) & vbCRLF
End If
Next
End If
sentbin = sendmail(mailserver,fromname,fromemail,recipient,s ubject,bodytext)
select case sentbin
case true ' If no problems then the redirect page is loaded
Response.Redirect(redirect)
case false ' Otherwise an error is raised and the message is displayed
Response.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'><html><head><title>Error sending email...</title></head><body>")
Response.write("<!--#include file='errorhdr.html'-->") ' Use this line to display a header
Response.write("<font face='arial' size='2'>There was a problem sending the email... <br><br>Please hit the back button in your browser and try again.</font>")
Response.write("<!--#include file='errorftr.html'-->") ' Use this line to display a footer
Response.write("</body></html>")
end select
Function sendmail(strservername,strfromname,strfromaddress, strRecip,strSub,strBodyText)
Set Mailer = Server.CreateObject("CDONTS.NewMail")
Mailer.To= recipient
Mailer.From= strfromaddress
Mailer.Subject = strSub
Mailer.Body = Body
Mailer.Send
Set Mailer = Nothing
sendmail = true
end function
%>