Rakesh Gupta Send Mail Via SMTP Mail
Rakesh Gupta Send Mail Via SMTP Mail
After all the properties (some of them are optional) of our new
email message are set properly, the only thing that's left to do is
send the message.
SmtpMail.Send(objMail)
SmtpMail.SmtpServer = "smtp.your-server.com"
Summary
In summary, to send an email from your ASP.NET page, you
need to:
</script>
<html>
<head>
<style>
.main {font-family:Verdana; font-size:12px;}
.title {font-family:Verdana; font-size:18px; font-weight:bold;}
</style>
</head>
<body>
<span class="title" align="center">Send email from
an ASP.NET page</span>
<tr>
<td class="main"> </td>
<td class="main"><input type="Submit"
id="btnSubmit" OnServerClick="btn_Click" value="Send"
runat="server" /></td>
</tr>
</table>
</form>
</body>
</html>