selicon_valley — 2010-12-19T19:29:07-05:00 — #1
i have develop a web in aso.net now i want inquiry form that visiotrs can fill their details in this form n email will b generated details will come to me as email but below code there is a 1 problem in this code ui have to give my email id with password which i dont need i just want that simple email with detail generated n i will have detail form form how do i code this i donot want to pass my email id n password i will received only email with detail
Partial Class Inquiry
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim MESSAGE As New MailMessage
Dim client As New SmtpClient("smtpout.asia.secureserver.net")
client.Credentials = New System.Net.NetworkCredential("aaaaaa.net", "iaaaaa")
client.Port = 25
client.EnableSsl = False
MESSAGE.From = New MailAddress("email@example.com")
message.Subject = "abc"
MESSAGE.Body = "abc"
Protected Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
nightstalker — 2010-12-20T02:46:33-05:00 — #2
What is the problem with the above? That should be able to send with no problem. You can set the body to be html format and format you data with html in the body and send it to yourself.
selicon_valley — 2010-12-20T05:49:51-05:00 — #3
There is no prblem with this code the problem is that when user receive email ot shows my emaill address which is in message.from code i dont need that
nightstalker — 2010-12-20T13:34:44-05:00 — #4
I do not understand. An email has to come from a from address that exists. But you can change it to anything you like.