I'm going to try it right now, but I don't know if it will work because the thing is that my application runs in a PDA, so I don't know if the PDA will support it :_(
Have you added the "system.web" reference to your projects and used cdonts?
It doesn't use the Outlook object so you don't need it installed on the machine it's running from.
Here's some example code from one of my apps:
Dim oMsg As New System.Web.Mail.MailMessage
oMsg.From = "a.b@mycompany.co.uk"
oMsg.To = "a.b@yourcompany.com"
oMsg.Subject = "Hi"
oMsg.BodyFormat = System.Web.Mail.MailFormat.Text
oMsg.Body = "My message"
oMsg.Priority = Web.Mail.MailPriority.High
Dim sFile As String = "C:\MyFile.txt"
Dim oAttch As System.Web.Mail.MailAttachment = New System.Web.Mail.MailAttachment(sFile, System.Web.Mail.MailEncoding.Base64)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.