Results 1 to 2 of 2
  1. #1
    Yann63 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    13

    Sending email with Access through Outlook using HTML body

    Hello,
    I have an Access application which sends emails via Outlook using a HTMLbody.
    In the HTML file an image is embedded as part of the signature. But the image doesn't appear in the mail. This is the code

    Code:
    Set objOutlook = CreateObject("Outlook.Application")
    Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
    With objOutlookMsg
    .SendUsingAccount = objAccount
    .To = xrecipient
    .subject = ysubject
    .BodyFormat = olFormatHTML
    .HTMLBody = GetBoiler("C:\Users\Yves\Downloads\Mailbodytext.html")  
    .Send
    End With
    All Outlook settings regarding pictures are correct. In the register "HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\ Outlook\Options\Mail" the value "Send Pictures with Document" has the value 1.

    So can anybody give me a clue what the problem is and how to fix it?

    Using Windows 10 - MS Office 2016 - 64 bit

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,954
    I've never tried embedded an html file into the body of an HTML email
    However, have a look at this recent thread where I deal with a similar situation but by using a separate image file and signature text.
    https://www.accessforums.net/showthread.php?t=71867
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 19
    Last Post: 09-07-2017, 02:10 AM
  2. Sending Reports with email body having HTML
    By CeVaEs_64 in forum Access
    Replies: 28
    Last Post: 11-26-2014, 12:13 PM
  3. Sending HTML files via Access to Outlook
    By Yann63 in forum Programming
    Replies: 4
    Last Post: 02-13-2014, 05:34 PM
  4. sending data into an email body - outlook
    By webisti in forum Access
    Replies: 6
    Last Post: 02-15-2012, 07:05 AM
  5. FORMATTING Outlook Email in BODY of Access code
    By taimysho0 in forum Programming
    Replies: 7
    Last Post: 11-28-2011, 11:04 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums