Dear all,
please see below a stripped down version of my code which I used to send mails in HTML format. I have 2 issues:
- how can I preview my mail before sending (this may also solve the second issue)
- everytime I send a mail, outlook needs confirmation. Any way to turn this off
please see below a stripped down version of my code which I used to send mails in HTML format. I have 2 issues:
- how can I preview my mail before sending (this may also solve the second issue)
- everytime I send a mail, outlook needs confirmation. Any way to turn this off
Code:
Set outapp = CreateObject("outlook.application")
outapp.Session.logon
Set outmail = outapp.createitem(0)
With outmail
.to = receiver
.subject = subject
.HTMLBody = message
.send
End With
Set outmail = Nothing
Set outapp = Nothing