Results 1 to 4 of 4
  1. #1
    Alaska1 is offline Advanced Beginner
    Windows Vista Access 2003
    Join Date
    Oct 2010
    Posts
    55

    Sending an email in a form

    Hello,

    I am trying to set up and control form send an email on click on. What is the best way to do it? Is there a Macro to use or should I build in code? I would like it to open to outlook.



    Thank you!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    SendObject method is available in macro as well as VBA.

    If that does not meet your requirements, use Outlook automation in VBA.
    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
    Alaska1 is offline Advanced Beginner
    Windows Vista Access 2003
    Join Date
    Oct 2010
    Posts
    55
    Quote Originally Posted by June7 View Post
    SendObject method is available in macro as well as VBA.

    If that does not meet your requirements, use Outlook automation in VBA.
    Thank you for your reply. I tried the SendObject method. Will that allow me to populate the email address or I have to use the outlook automation?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Which email address? The From:? That will require automation. It uses SendOnBehalfOf property. https://www.slipstick.com/developer/...l-address-vba/
    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. Sending email from the Access Form
    By stalk in forum Programming
    Replies: 1
    Last Post: 05-15-2017, 12:59 PM
  2. Replies: 1
    Last Post: 11-07-2016, 11:18 AM
  3. Replies: 3
    Last Post: 03-21-2016, 08:59 AM
  4. Email sending
    By Steven.Allman in forum Access
    Replies: 25
    Last Post: 06-21-2010, 09:37 AM
  5. Sending email
    By nashr1928 in forum Reports
    Replies: 8
    Last Post: 04-27-2010, 11:14 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