Send an email


Send an email

<%@Page Explicit="False" Language="VB" Debug="True" %>
<%@Import Namespace="System.Web.Mail" %>
<%
Dim EmailTo As String = "[email protected]"
Dim EmailFrom As String = "[email protected]"
Dim EmailSubject As String = "Sample Email"
Dim EmailBody As String = "Test email"
System.Web.Mail.SmtpMail.Send(EmailFrom, EmailTo, EmailSubject, EmailBody)
Response.Write ("Mail sent OK.")

%>

 


Advertisements