Results 1 to 5 of 5
  1. #1
    4 Star Lounger
    Join Date
    Nov 2002
    Location
    London, Gtr London, England
    Posts
    496
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Mailing a document (XP)

    I want to include a button at the end of a word document that send the document to a specific email with a given subject. The word document is a questionnaire and I want to give the user an easy "press the button to send" facility and not have to do anything more himself so i need to use SendMail except i can't see that I can specify the emailTo address or the Subject.

    thank you............... liz

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Mailing a document (XP)

    Perhaps you can route the document. Select File | Send To | Routing Recipient...
    You can specify one or more e-mail addresses the document is to be mailed to, the subject and the message text.
    When the user closes the document, (s)he will be prompted whether the document should be mailed to the next recipient.

  3. #3
    4 Star Lounger
    Join Date
    Nov 2002
    Location
    London, Gtr London, England
    Posts
    496
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Re: Mailing a document (XP)

    Hans,

    would work except my mixed bag of recipients have a variety of email applications and Route only works with an Exchange/Outlook address book I think.

    liz

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Mailing a document (XP)

    In that case, I don't know a satisfactory solution. SendKeys to fill in the e-mail is excluded since you don't know what the user's e-mail template looks like, and anyway, including a macro in the document will cause problems on many systems.

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Mailing a document (XP)

    > i need to use SendMail except i can't see that I can specify the emailTo address or the Subject.

    Check out the MsoEnvelope object returned by the document.MailEnvelope property. I think you set that up and then use the document.SendMail method. (Just a guess based on the help file... seems a bit convoluted drilling down into the Item sub-properties...)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •