Hi ,
i have used this article from the this link http://forums.asp.net/t/971802.aspx?PageIndex=1
But it gives an error. what am i missing in code?
The following error
System.InvalidOperationException: The SMTP host was not specified.
at System.Net.Mail.SmtpClient.CheckHostAndPort()
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at JJHoistServices.MailService.btnMail_Click(Object sender, ImageClickEventArgs e) in
D:\MY\JJHoistServices\JJHoistServices\MailService.aspx.cs:line 44
and my code which i have used after reading the article is
protected void btnMail_Click(object sender, ImageClickEventArgs e)
{
try
{
MailMessage objMail = ne ...
Go to the complete details ...