I am new to ASP.net but i used VB a lot back in days, i am working on a site and i want to create form so the data from it could be submited to the email. i have put some stuff together but need some corrections. It feels like having brain shut down. I am paralzed and need help.. Thanks<%
EmailFrom = "Example@mysite.com"
EmailTo = "Example@mysite.com"
Subject = "Example@mysite.com"
Name = Trim(Request.Form("Name"))
LastName = Trim(Request.Form("LastName"))
If (validationOK=false) Then Response.Redirect("error.htm?" & EmailFrom)
Body = Body & "Name: " & Name & VbCrLf
Body = Body & "LastName: " & LastName & VbCrLf
Set mail = Server.CreateObject("CDONTS.NewMail")
mail.To = EmailTo
mail.From = EmailFrom
mail.Subject = Subject
mail.Body = Body
Response.Redirect("ok.htm?" & EmailFrom)
And here is code that contact the Email server that i have found in this forum on diffrent thread.# public static bool SendMessage(string RecipientAddress, string Subject, string Content, string SenderAdress)
# MailMessage m = new MailMessage(SenderAdress, RecipientAddress, Subject, Cont
View Complete Post