Event Scripting in template

  • Thread starter Thread starter Amar
  • Start date Start date
A

Amar

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
 
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.
 
Back
Top