Appframe Knowledge Base


1 hits
0

How to send mail message without showing the window to user

Imports AppFrame3.Win.Common.Mail

Dim vMessage As New Message() 
vMessage.Recipients.Add(pMessageRow("ToName").ToString(), pMessageRow("ToEmail").ToString(), RecipientType.MailTo) 
vMessage.Recipients.Add(pMessageRow("FromName").ToString(), pMessageRow("FromEmail").ToString(), RecipientType.MailFrom)
vMessage.Subject = "Test" 
vMessage.InsertHTML = "Blabla"
vMessage.Attachments.Add(vFilePath)
vMessage.DoSendMessage(True, True)

win · Perma link post comment Posted by: Peter Øren (13-jan-2012)