on Default.aspx.cs page ->
=============================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Mail;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
SmtpClient client = new SmtpClient();
client.Host = "localhost";
client.Port = 25;
client.Send("steve@somewhere","bob@gmail.com","Hey this is first app","Lunch at Lemeadian");
}
}
on Default.aspx page:
====================
Page Render Block is contained between ...
No comments:
Post a Comment
Don't judge me like you know me.Don't talk to me if you don't like me. I am my own person and If you don't like that i don't give a f***