Sending mail in HTML format

hbrems

has no clue...
Local time
Today, 21:40
Joined
Nov 2, 2006
Messages
181
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

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
 
Change

.send

to

.Display

I believe clicking on send after that will avoid the warning as well.
 
Change

.send

to

.Display

I believe clicking on send after that will avoid the warning as well.

Yes you are right! :)
 

Users who are viewing this thread

Back
Top Bottom