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.
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.
No comments yet.
-
Recent
- The ID token is not yet valid. Make sure your computer’s time and time zone are both correct. Current epoch = 1689517128
- .NET Core – How to create a .NET GUI app which runs across the platform
- AKS 2022 updates
- Linux firewall and connectivity issues
- Microsoft Ignite (Sep22-24) event recap & On-demand sessions
- [Linux] Steps to install and configure sysstat package for monitoring.
- Azure Security Enablement – Centralized place for all the links
- Presenting tech session with stories [linkedin learning notes]
- gRPC using .NET core notes
- .NET in 2020 (Build recap)
- #KubeCon CNCF – North America 2019 watchlist
- AKS CLI Sheetcheat for the labs
-
Links
Leave a comment