I have been at this all day. Trying to write it to work for C# feedback page.
SendMail(txtEmail.Text, txtComments.Text)
End Sub
Private Sub Sendmail(ByVal from As String, ByVal body As String)
Dim mailServerName As String = "company.company.com"
Dim message As MailMessage = New MailMessage(from, "[email protected]")
Dim mailClient As SmtpClient = New SmtpClient
mailClient.Host = mailServerName
mailClient.Send(message)
message.Dispose
End Sub
End Class
Eldo IssacPosted Aug 4, 2007, 7:06 AM
{
string mailServerName = "company.company.com";
MailMessage message = new MailMessage(from, "[email protected]");
SmtpClient mailClient = new SmtpClient();
mailClient.Host = mailServerName;
mailClient.Send(message);
message.Dispose();
}