hi,
I was able to send mail using cdonts (no error displayed) but couldn't recieve at the email address where it was send.
Here is the code:
<%
option explicit
Dim x
Dim objCDO
Dim txtMessage
For each x in Request.Form
txtMessage = txtMessage & "<br>" & request.form(x)
Next
'response.write txtmessage
'create an instance of the cdonts object
Set objCDO = Server.CreateObject("CDONTS.NewMail"
With objCDO
.BodyFormat = 0 'CDOBodyFormatHTML
.MailFormat = 0 'CDOMailFormatMime
'.BodyFormat = 1 'CDOBodyFormatText
'.MailFormat = 1 'CDOMailFormatText
.To = "xxx&hotmail.com"
.From = "yyy@hotmail.com"
'objCDO.cc = "zzz@hotmail.com"
.Subject = "Form Data"
.Body = txtMessage
'set the importance
.Importance = 2 'High importance!
'send the e-mail
.Send
End With
'clean up
Set objCDO = Nothing
response.write "<br>"
response.write "Message Has heen sent"
%>
Is this a problem of IIS not cofigured properly.
What rights should i assign to IUSR_XXXXXXX account including "send As" and Recieve AS" rights.
Also I haven't cofigured default site on IIS just using direct Adressing for web pages. Though i have created virtual directory and placed related documents / images in that directory.
Virtual directory = OS
IE is used to acess pages
A form page is called using address
this form when submitted call's the page having above mentioned code.
bye
I was able to send mail using cdonts (no error displayed) but couldn't recieve at the email address where it was send.
Here is the code:
<%
option explicit
Dim x
Dim objCDO
Dim txtMessage
For each x in Request.Form
txtMessage = txtMessage & "<br>" & request.form(x)
Next
'response.write txtmessage
'create an instance of the cdonts object
Set objCDO = Server.CreateObject("CDONTS.NewMail"

With objCDO
.BodyFormat = 0 'CDOBodyFormatHTML
.MailFormat = 0 'CDOMailFormatMime
'.BodyFormat = 1 'CDOBodyFormatText
'.MailFormat = 1 'CDOMailFormatText
.To = "xxx&hotmail.com"
.From = "yyy@hotmail.com"
'objCDO.cc = "zzz@hotmail.com"
.Subject = "Form Data"
.Body = txtMessage
'set the importance
.Importance = 2 'High importance!
'send the e-mail
.Send
End With
'clean up
Set objCDO = Nothing
response.write "<br>"
response.write "Message Has heen sent"
%>
Is this a problem of IIS not cofigured properly.
What rights should i assign to IUSR_XXXXXXX account including "send As" and Recieve AS" rights.
Also I haven't cofigured default site on IIS just using direct Adressing for web pages. Though i have created virtual directory and placed related documents / images in that directory.
Virtual directory = OS
IE is used to acess pages
A form page is called using address
this form when submitted call's the page having above mentioned code.
bye