PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Event Scripting in template

Reply

Event Scripting in template

 
Thread Tools Rate Thread
Old 03-03-2005, 11:41 PM   #1
Amar
Guest
 
Posts: n/a
Default Event Scripting in template


I have created templates and use the CreateItemFromTemplate method to
generate and send the email via code. All is fine except that in the
email body, within a paragraph, I need to tell the user that they must
"respond to this email by <x> days". This <x> needs to be 7 days from
the date that they receive the email.

I know that a Template has scripting behind it, so in the Open event
can I put something like "you must repond to this mail by" &
Format(Now(),+7)? If yes, then, how would I put the "respond by <x>"
date in a specific place in a paragraph in the email body?

Or must I resort to setting all the text using olMail.Body and not
rely on using Templates??

thanks
Amar
  Reply With Quote
Old 04-03-2005, 07:13 AM   #2
Michael Bauer
Guest
 
Posts: n/a
Default Re: Event Scripting in template

Hi Amar,

AFAIK the code behind a form wouldn´t be executed on receiver site. And
I think, that would be unnecessary in your case. A deadline of x days
would be worthless for you if you don´t know, when the period has
started.

--
Viele Grüße
Michael Bauer


"Amar" <amarmaj@gmail.com> wrote in message
news:1461c18a.0503031541.4d0dcf7e@posting.google.com...
> I have created templates and use the CreateItemFromTemplate method to
> generate and send the email via code. All is fine except that in the
> email body, within a paragraph, I need to tell the user that they must
> "respond to this email by <x> days". This <x> needs to be 7 days from
> the date that they receive the email.
>
> I know that a Template has scripting behind it, so in the Open event
> can I put something like "you must repond to this mail by" &
> Format(Now(),+7)? If yes, then, how would I put the "respond by <x>"
> date in a specific place in a paragraph in the email body?
>
> Or must I resort to setting all the text using olMail.Body and not
> rely on using Templates??
>
> thanks
> Amar


  Reply With Quote
Old 06-03-2005, 10:27 PM   #3
Amar
Guest
 
Posts: n/a
Default Re: Event Scripting in template

Thankyou Michael,
I'm doing it all without using a oft template now.

Amar

"Michael Bauer" <mib00@t-online.de> wrote in message news:<u5seVwIIFHA.2936@TK2MSFTNGP15.phx.gbl>...
> Hi Amar,
>
> AFAIK the code behind a form wouldn´t be executed on receiver site. And
> I think, that would be unnecessary in your case. A deadline of x days
> would be worthless for you if you don´t know, when the period has
> started.
>
> --
> Viele Grüße
> Michael Bauer
>
>
> "Amar" <amarmaj@gmail.com> wrote in message
> news:1461c18a.0503031541.4d0dcf7e@posting.google.com...
> > I have created templates and use the CreateItemFromTemplate method to
> > generate and send the email via code. All is fine except that in the
> > email body, within a paragraph, I need to tell the user that they must
> > "respond to this email by <x> days". This <x> needs to be 7 days from
> > the date that they receive the email.
> >
> > I know that a Template has scripting behind it, so in the Open event
> > can I put something like "you must repond to this mail by" &
> > Format(Now(),+7)? If yes, then, how would I put the "respond by <x>"
> > date in a specific place in a paragraph in the email body?
> >
> > Or must I resort to setting all the text using olMail.Body and not
> > rely on using Templates??
> >
> > thanks
> > Amar

  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