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
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.
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
I do not understand. An email has to come from a from address that exists. But you can change it to anything you like.