There is one tool in .Net named Notify Icon
drag & drop it to your application
NotifyIcon1.ShowBalloonTip(200, "You have 1 new notification!", "PCTL SYSTEM 2010", ToolTipIcon.Info)
NotifyIcon1.Visible = True
Foram Pasawala
Live Vb.net help. Put your questions on this blog
Thursday, June 17, 2010
Send an attachment in email thru vb.net
Hi,You could send an email attachment thru your vb.net application with the use of below code
Dim oOutL As New Outlook.Application
Dim oMail As Outlook.MailItem
oMail = oOutL.CreateItem(Outlook.OlItemType.olMailItem)
oMail.UnRead = True
oMail.To = xyz@aaaaaa.net
oMail.Subject = "Test email"
oMail.HTMLBody = True
oMail.Body = "Test email"
oMail.Attachments.Add("c:\Mail.pdf")
oMail.Send()
oMail = nothing
oOutL = nothing
by putting oMail.Display() instead of oMail.Send()
you could view the out look page to modify mail body
Dim oOutL As New Outlook.Application
Dim oMail As Outlook.MailItem
oMail = oOutL.CreateItem(Outlook.OlItemType.olMailItem)
oMail.UnRead = True
oMail.To = xyz@aaaaaa.net
oMail.Subject = "Test email"
oMail.HTMLBody = True
oMail.Body = "Test email"
oMail.Attachments.Add("c:\Mail.pdf")
oMail.Send()
oMail = nothing
oOutL = nothing
by putting oMail.Display() instead of oMail.Send()
you could view the out look page to modify mail body
Send an email thru vb.net
Hi,
You could send an email thru your vb.net application with the use of below code
Dim oOutL As New Outlook.Application
Dim oMail As Outlook.MailItem
oMail = oOutL.CreateItem(Outlook.OlItemType.olMailItem)
oMail.UnRead = True
oMail.To = xyz@aaaaaa.net
oMail.Subject = "Test email"
oMail.HTMLBody = True
oMail.Body = "Test email"
oMail.Send()
oMail = nothing
oOutL = nothing
You could send an email thru your vb.net application with the use of below code
Dim oOutL As New Outlook.Application
Dim oMail As Outlook.MailItem
oMail = oOutL.CreateItem(Outlook.OlItemType.olMailItem)
oMail.UnRead = True
oMail.To = xyz@aaaaaa.net
oMail.Subject = "Test email"
oMail.HTMLBody = True
oMail.Body = "Test email"
oMail.Send()
oMail = nothing
oOutL = nothing
Subscribe to:
Posts (Atom)