"Fortunate are those who take the first steps.” ― Paulo Coelho

Email in runtime…

Today i had a situation where i have to send mails to all branch managers in my office when i want to circulate something programmtical thru web.
The webpage should be generated a HTML report page and that report page should automatically mailed to all the TO address list.

Here is the code for sending mail in ASP.NET. Very simple and pretty cool to use it.

‘ Imports System.Web.Mail

Dim m As New MailMessage()
m.From = ""
m.To = ""
m.Subject = "Steal ur soul…"
m.BodyFormat = MailFormat.Text
m.Body = "This is called EMail Phising….Great Hackooo.."
SmtpMail.SmtpServer = "localhost"

Tried locally, but not yet integrated with CLINK project.


April 4, 2005 - Posted by | ASP.NET >>

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: