i m new to asp . i m try to send mail using CDO. my os is XP pro. i have install IIs and smtp also running. if i running my program , its doesn't throw any error. but my mail is not sent.. that is , if i m checking my inbox, mail is not there. i don't know what is the problem . anybody help me.

here is my coding

<%
Set myMail=Server.CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="gowsi_mca@yahoo.co.in"
myMail.To=gfermi@gmail.com"
This is a message."
myMail.send
set myMail=nothing
response.write("<b>Mail send</b>")
%>

Member Avatar for GreenDay2001

well the code you have written is wrong:

<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="This is the subject"
myMail.From="vishesh91@@hotmail.com"
myMail.To="vishesh91@msn.com"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
%>

Thank U vishesh,

i will try this coding.

can i sent mail to yahoo,hotmail without any configuation.

if so, plz can u tell and help me????????


well the code you have written is wrong:

<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="This is the subject"
myMail.From="vishesh91@@hotmail.com"
myMail.To="vishesh91@msn.com"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
%>

hi there
i tried this long before but dont know abt current udates regarding winxp.
but last time when i tried this, i found that there are certain librries not present in XP, s these kind of fatures are not supported.
you first try to use your code in windws2000 withount any change, it might work there.

yahoo/hotmial and other mail ervers has started new technique known as antispam, so these new domains wont be able to sent mails to these server unless you register your domian through process.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.