Cyberiafreak

"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 = "maheshkumar@mydomain.com"
m.To = "cyberiafreak@cyberiafreak.soft.net"
m.Subject = "Steal ur soul…"
m.BodyFormat = MailFormat.Text
m.Body = "This is called EMail Phising….Great Hackooo.."
SmtpMail.SmtpServer = "localhost"
SmtpMail.Send(m)

Tried locally, but not yet integrated with CLINK project.

Advertisements

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: