For Programmers: Free Programming Magazines  


Home > Archive > ASP > June 2007 > email Problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author email Problem
vinodkus@gmail.com

2007-06-30, 3:56 am

Hi I m trying to send an email using an asp program but it gives an
error no doubt it is so simple but it gives an error.
First I write my program

<%
Dim myMail
'Set myMail = Server.CreateObject ("CDONTS.NewMail")
Set myMail = Server.CreateObject ("CDO.Message")

myMail.From = "vinodkus@yahoo.com"
myMail.To = "vinodkus@gmail.com"
myMail.Subject = "Test email using CDONTS"
'myMail.Body = "This is a test email message" & vbcrlf & "sent with
CDONTS"
myMail.TextBody = "This is a test email message"

myMail.Send
set myMail=nothing
Response.Write("Your e-mail has been sent")
%>
Asn the error that i m getting is

Error Type:
CDO.Message.1 (0x80040220)
The "SendUsing" configuration value is invalid.

please help me
Thanks in Advance

Jon Paal [MSMD]

2007-06-30, 3:56 am

google:

asp cdo sendmail


there are many examples available


<vinodkus@gmail.com> wrote in message news:1183183172.864798.175500@g4g2000hsf.googlegroups.com...
> Hi I m trying to send an email using an asp program but it gives an
> error no doubt it is so simple but it gives an error.
> First I write my program
>
> <%
> Dim myMail
> 'Set myMail = Server.CreateObject ("CDONTS.NewMail")
> Set myMail = Server.CreateObject ("CDO.Message")
>
> myMail.From = "vinodkus@yahoo.com"
> myMail.To = "vinodkus@gmail.com"
> myMail.Subject = "Test email using CDONTS"
> 'myMail.Body = "This is a test email message" & vbcrlf & "sent with
> CDONTS"
> myMail.TextBody = "This is a test email message"
>
> myMail.Send
> set myMail=nothing
> Response.Write("Your e-mail has been sent")
> %>
> Asn the error that i m getting is
>
> Error Type:
> CDO.Message.1 (0x80040220)
> The "SendUsing" configuration value is invalid.
>
> please help me
> Thanks in Advance
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com