Results 1 to 3 of 3
  1. #1
    ZMAN is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2010
    Posts
    3

    Cool Send email from Access thru Outlook

    I have a form with a person's information on it including email address. I need code that will open Outlook and populate the "To" field with the email address on the form automatically.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    you should google it. these examples are plentiful on the web. chances you will get a copy/paste literal block of code on this forum are slim.

  3. #3
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    dim strTo as string
    strTo = me!EmailAddressField

    Then utilize the sendobject command

    docmd.sendobject.....

    ie. DoCmd.SendObject , , , strTo, , , "Email Subject...", "Email Text...", False

    see help on the SendObject command for more info.

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

Similar Threads

  1. How can I send an email from access???
    By Asma in forum Programming
    Replies: 2
    Last Post: 12-07-2011, 07:49 AM
  2. send email from a form
    By maxbre in forum Programming
    Replies: 4
    Last Post: 11-12-2010, 01:43 AM
  3. Replies: 3
    Last Post: 09-01-2010, 08:43 PM
  4. Send multiple e-mails through Outlook based on query
    By dataphile in forum Programming
    Replies: 3
    Last Post: 12-30-2009, 12:04 AM
  5. Replies: 9
    Last Post: 10-09-2009, 08:15 AM

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