I am developing a VB.Net application. I want to send email through application.
Can i only use System.Web.Mail to send emails in vb.net application or there is anything else?
Also using System.Web.Mail do i have to pass the SmtpServer Name? I am developing application for general user and i dont know what smtp server they will use........
this is the code i am using:
SmtpMail.SmtpServer = "localhost"
Dim email As New MailMessage
email.Subject = "test"
email.Body = "A Star Is Born"
email.To = "abc@xyz.com"
email.From = "pqr@xyz.com"
SmtpMail.Send(email)
I am getting Could not create 'CDO.Message' object. ERROR
Any Help