PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming Create a send button with hard-coded email address?

Reply

Create a send button with hard-coded email address?

 
Thread Tools Rate Thread
Old 31-08-2004, 07:03 PM   #1
=?Utf-8?B?RGF2ZQ==?=
Guest
 
Posts: n/a
Default Create a send button with hard-coded email address?


Hi,

I'm trying to drop a button on the Read Page of a custom form that will Send
the response to a hard-coded email address where we want all responses to go.


Can you do this without writing script behind the form?

Also, it would be ideal to close the custom form afterwards as normal
Outlook message.

Thanks, Dave
  Reply With Quote
Old 07-09-2004, 06:19 PM   #2
Rich Pieri
Guest
 
Posts: n/a
Default RE: Create a send button with hard-coded email address?

I would like to do something similer where could I find
an example of the code to do this or could you post an
example of the code for this.
>-----Original Message-----
>You must use code to send the item to a specific e-mail

address, usually by
>trapping the Send event and adding the address to the

Recipients collection.
>
>The form should close by default after it is sent, BTW.
>
>--
>Eric Legault - B.A, MCP, MCSD, Outlook MVP
>--------------------------------------------------
>{Private e-mails ignored}
>Job: http://www.imaginets.com
>Blog: http://blogs.officezealot.com/legault/
>
>"Dave" wrote:
>
>> Hi,
>>
>> I'm trying to drop a button on the Read Page of a

custom form that will Send
>> the response to a hard-coded email address where we

want all responses to go.
>>
>>
>> Can you do this without writing script behind the form?
>>
>> Also, it would be ideal to close the custom form

afterwards as normal
>> Outlook message.
>>
>> Thanks, Dave

>.
>

  Reply With Quote
Old 08-09-2004, 02:07 AM   #3
=?Utf-8?B?RXJpYyBMZWdhdWx0IFtNVlAgLSBPdXRsb29rXQ==
Guest
 
Posts: n/a
Default RE: Create a send button with hard-coded email address?

The code is very similar. You'll have to add a CommandButton, and then
manually call the Forward method. Then just address it to the address of
your Public Folder.

Sub CommandButton1_Click()
Item.Forward
End Sub

Function Item_Forward(ByVal ForwardItem)
ForwardItem.Recipients.Add("folder@domain.com")
ForwardItem.Display
End Function

--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/


"Richard Pieri" wrote:

>
> Sorry,
> I should have been more specific I want to use the button as an approve
> button and have it forward the form to an address of a public folder so
> it would need to trigger the forward action and poulate the To: box with
> the address I have for the public folder. Is this possible and do you
> have some code to do this? Sorry again and Thanks for your help.
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
>

  Reply With Quote
Old 08-09-2004, 10:26 PM   #4
Richard Pieri
Guest
 
Posts: n/a
Default RE: Create a send button with hard-coded email address?

Thank you very much that will solve my problem

Rich



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off