P
Phil Jones
I'm wanting to include in my WinForms app the ability to send an email.
Is it possible, and what is method to take, to send email from within a
forms app, ideally using the user's mail account. What I would like to
avoid is having to setup special mail servers/SMTP servers. If their
Outlook Express client can send mail, can I a stuff message through that
connection?
Currently if I do this:
Dim msg As New MailMessage
With msg
.To = "(e-mail address removed)"
.From = "My App"
.Subject = "My Subject"
.Body = "My Body"
.BodyFormat = MailFormat.Text
End With
SmtpMail.SmtpServer = "MachineName"
SmtpMail.Send(msg)
.....I get a Could not access 'CDO.Message' object. error.
Many thanks everyone.
Is it possible, and what is method to take, to send email from within a
forms app, ideally using the user's mail account. What I would like to
avoid is having to setup special mail servers/SMTP servers. If their
Outlook Express client can send mail, can I a stuff message through that
connection?
Currently if I do this:
Dim msg As New MailMessage
With msg
.To = "(e-mail address removed)"
.From = "My App"
.Subject = "My Subject"
.Body = "My Body"
.BodyFormat = MailFormat.Text
End With
SmtpMail.SmtpServer = "MachineName"
SmtpMail.Send(msg)
.....I get a Could not access 'CDO.Message' object. error.
Many thanks everyone.