Results 1 to 2 of 2
  1. #1
    behnam is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    72

    How to save email from DoCmd.SendObject into a specfic folder


    Hi guys, im sending an email using vba using the docmd.sendobject method but want to save that email also in a folder path i specify.

    my code is

    Code:
    DoCmd.SendObject acSendReport, "Estimate", acFormatPDF, _
        "MVSTAR OPERATOR; HYDRO ONE TxDx; TDS GENERATOR", "METER DATA SERVICES", , _
        "" & SubjectLine, "" & MessageLine, True
    i read something about the saveas method but im not sure thanks.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    I don't know that you can save this file. Personally I would use OutputTo to create the file, then mail it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 10
    Last Post: 03-26-2012, 08:17 PM
  2. VBA Send Email using DoCmd.SendObject
    By malamute20 in forum Programming
    Replies: 15
    Last Post: 10-05-2011, 12:44 PM
  3. Replies: 2
    Last Post: 09-29-2011, 10:57 AM
  4. Replies: 1
    Last Post: 11-17-2010, 11:24 AM
  5. Email sent via DoCmd.SendObject
    By silverback in forum Programming
    Replies: 0
    Last Post: 10-29-2009, 06:26 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