PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Event Scripting in template
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Event Scripting in template
![]() |
Event Scripting in template |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

