"SendMail" and predefined address 
Author Message
 "SendMail" and predefined address

Hello
Could anybody please help me with the following question:
Is it possible to specify additional optins when using the Office2000
sendmail method ? I would like to send the active document as an attachment
to a predefined mail address with a predefined subject.

Maybe somebody has a solution ...

Thanks in advance

Greetings

Tom Olsen



Tue, 11 May 2004 08:02:13 GMT  
 "SendMail" and predefined address
Hi Tom,

I might be mistaken but there is an answer to a similar question available
in one of the other Word VBA newsgroups.

Look up in help:
HasRoutingSlip property

Another way, is to use a bit of the Outlook COM:

Dim ol As Object
Dim mi As Object
  'assign object properties/methods to variables
  Set ol = CreateObject("Outlook.Application")
  Set mi= CreateItem(olMailItem)

  With mi



    .Subject = "Mypredefined subject"
    .Display
  End
  ol.Quit
  Set ol = Nothing
  Set mi = Nothing

Kind regards,
Perry



Quote:
> Hello
> Could anybody please help me with the following question:
> Is it possible to specify additional optins when using the Office2000
> sendmail method ? I would like to send the active document as an
attachment
> to a predefined mail address with a predefined subject.

> Maybe somebody has a solution ...

> Thanks in advance

> Greetings

> Tom Olsen



Wed, 12 May 2004 01:12:28 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. *"*-.,._,.-*"* I"LL TRADE VISUAL C++ FOR VBASIC *"*-.,_,.-*"*

2. "Show this address list first"

3. Displaying "Outlook Address List" Dialog Form

4. Extracting email address from "From:" field

5. Disable "Allow Comma as Address Separator"

6. Addressing "e" in another Instance

7. "Function address" problem

8. Winsock Error "Address In Use"

9. Accessing Outlook "Global Address List"

10. Winsock error "Address in Use"

11. Winsock error 10048 "Address in use"

12. "Address in Use" Error message

 

 
Powered by phpBB® Forum Software