any help is appreciated
try this code
It should worksPrivate Sub sendEmail() Dim objMsg As MailItem ' create new outgoing message Set objMsg = Application.CreateItem(olMailItem) ' your reminder notification address objMsg.To = "email_address@someware.com" objMsg.Subject = "title" objMsg.HTMLBody = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'><HTML xmlns:st1 = 'urn:schemas-microsoft-com:office:smarttags' xmlns:o ='urn:schemas-microsoft-com:office:office'><HEAD><META http-equiv=Content-Type content='text/html; charset=windows-1250'></HEAD><BODY><font face=Arial size=2>some example text here ... but here you can add any valid HTML code or text</font></BODY></HTML>" 'send the message objMsg.Send Set objMsg = Nothing End Sub
Best Regards
MaczaQ (usually on forum Excel programming)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks