Results 1 to 4 of 4
  1. #1
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398

    Adding a logo to an email that is being sent through Access2010

    I have Access2010 sending out emails for me. Here is the code I'm using

    'Text of Body
    msg = saluation
    msg = msg & Chr$(13) & Chr$(13) & "Thank you for giving Safe Car Auto Transport the opportunity to assist you with your shipping needs!!"
    msg = msg & Chr$(13) & Chr$(13) & "Attached is the contract for your transportation needs. Great care has been taken to insure that all information is correct. Please review, and if an error exists or you have a question , PLEASE inform us immediately so we can make the necessary corrections."


    Dim objAccount As Outlook.Account
    Dim objOutlook As Outlook.Application
    Dim objOutlookMsg As Outlook.mailitem

    'Determine the correct account
    For Each objAccount In Outlook.Application.Session.Accounts

    If objAccount = "Dispatch - Safecarautotransport.com" Then

    'Create the Outlook session.
    Set objOutlook = CreateObject("Outlook.Application")
    'Create the message.
    Set objOutlookMsg = objOutlook.CreateItem(olMailItem)

    With objOutlookMsg
    .To = emailaddress
    .SendUsingAccount = objAccount


    .Subject = "Safe Car Auto Transport Quote"
    .Body = msg
    .Attachments.Add contractfile
    .Send
    End With
    End If

    Next

    Set objOutlook = Nothing
    Set objAccount = Nothing
    Set objOutlookMsg = Nothing

    My question is how do I add a logo to this email? Can it be a hyperlink? Thanks in advance!!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    51,199
    How would you include a logo if you were sending an email by normal means from Outlook - in the signature? Review http://www.rondebruin.nl/mail/folder3/signature.htm
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398
    Following the instructions for adding a signature txt file, everything works properly. When I put in the name of the gif file, the email only contains "GIF89a" . The string for the image file I'm using is c:\work\safecarlogo.gif

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    51,199
    That article I referenced indicates to edit the htm signature file created by Outlook. Is that what you did? I can't find this file on my home computer. Will have to try this at work.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 2
    Last Post: 04-19-2012, 12:43 PM
  2. Adding a email address on form
    By akhlaq768 in forum Forms
    Replies: 3
    Last Post: 02-07-2012, 09:11 AM
  3. Replies: 3
    Last Post: 12-02-2010, 12:23 PM
  4. Access2010 problem with .close
    By jong in forum Access
    Replies: 1
    Last Post: 11-18-2010, 12:53 PM
  5. Access97 conversion to Access2010
    By jong in forum Access
    Replies: 3
    Last Post: 11-17-2010, 03:33 PM

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