Want to Send Email through ASP.NET?

Mit

New member
hello .. my name is Mit and i m from India (Gujarat-Ahmedabad).

Ok now my question is that i want to send an Email through ASP.NET .. i have coding IIS everything let me know to you what exactly m facing while doin dat . .
---------------------------------------------------------
ok .. i have a coding like that through which we can send a mail directly ..

Dim msg As New Net.Mail.MailMessage( _
txtFrom.Text, _
txtTo.Text, _
txtSubject.Text, _
txtMessage.Text)

Dim mySmtp As New Net.Mail.SmtpClient("localhost")
Try
mySmtp.Send(msg)
lblResult.Text = "Mail Sent"
Catch ex As Exception
lblResult.Text = ex.Message
End Try
-------------------
My Design output is like this ..

To : textbox
From : textbox
Subject : textbox
Message : textbox

Button : value "Send mail"

label :
-------------------------------------------------------------------

ok now what exactly is happening now .. when i sent a mail through this code everythng is workin accept in the label i can see the message like "message sent" .. but i m not able to receive a msg in ma yahoo mail box .. or anyother .. also .. i have changed all wht is required ..

i have put IIS .. THEN went to properties .. selected "ACCESS" tab .. clicked on "RELAY" ..
THEN went to "Only the list below" radio button selected .. put IP ADDRESS .. "127.0.0.1"

AND THEN INTO SmtpServer SETTING .. I CHANGED THE NAME OF MY "LOCAL HOST" AND TRIED TO PUT THER MA "IP ADDRESS" EVEN TRIED TO PUT DER "127.0.0.1" but still m having problem ..

m just not able to receive the EMAIL . .in ma mailbox .. :-(

plz help me out .. thanks in advance .. HINDUSTAAAN ZINDABAAD . .

MIT.
 
Back
Top