Hi everybody, How could I set a date in my e-mail using the sendmail tag? -- Fernando Lujan
Fernando Lujan wrote:
Hi everybody,
How could I set a date in my e-mail using the sendmail tag?
Something like this should work for you: <dtml-sendmail mailhost=MailHost> Date: <dtml-var "ZopeTime().rfc822()"> ... </dtml-sendmail> Cheers, Maik
On Monday 16 February 2004 12:31, Maik Jablonski wrote:
Fernando Lujan wrote:
Hi everybody,
How could I set a date in my e-mail using the sendmail tag?
Something like this should work for you:
<dtml-sendmail mailhost=MailHost> Date: <dtml-var "ZopeTime().rfc822()"> ... </dtml-sendmail>
I tried this command, but, I receive a error message following below. Zope has encountered an error while publishing this resource. Error Type: NameError Error Value: global name 'localzone' is not defined :( I hope it isn't a big problem... -- Fernando Lujan fernando.lujan@nube.com.br
Fernando Lujan wrote:
<dtml-sendmail mailhost=MailHost> Date: <dtml-var "ZopeTime().rfc822()"> ... </dtml-sendmail>
I tried this command, but, I receive a error message following below.
Zope has encountered an error while publishing this resource.
Error Type: NameError Error Value: global name 'localzone' is not defined
Sounds like you're running Zope 2.6.0, which has a known bug. Please upgrade to 2.6.4. Cheers, Maik
From: "Maik Jablonski" <maik.jablonski@uni-bielefeld.de>
Sounds like you're running Zope 2.6.0, which has a known bug. Please upgrade to 2.6.4.
Also note that sendmail now automatically adds a date if there is none. There is therefore no point in doing DateTime().rfc822() in the sendmail tag. Only if you want to add another header wioth a date, or if you want to set the date to a fake date (not a good idea) do you need to set a date in the sendmail tag.
On Monday 16 February 2004 13:53, Lennart Regebro wrote:
From: "Maik Jablonski" <maik.jablonski@uni-bielefeld.de>
Sounds like you're running Zope 2.6.0, which has a known bug. Please
upgrade
to 2.6.4.
Also note that sendmail now automatically adds a date if there is none. There is therefore no point in doing DateTime().rfc822() in the sendmail tag.
Only if you want to add another header wioth a date, or if you want to set the date to a fake date (not a good idea) do you need to set a date in the sendmail tag.
Will I get problems with my products if i update the version to 2.6.4? Could the crash? -- Fernando Lujan fernando.lujan@nube.com.br
Fernando Lujan wrote:
Will I get problems with my products if i update the version to 2.6.4? Could the crash?
Minor releases of Zope are normally upgrade-compatible without problems. There were some issues with security-fixes etc., but it's not very like that you will suffer from them. So try it, but not on the production-machine...;) Cheers, Maik
participants (3)
-
Fernando Lujan -
Lennart Regebro -
Maik Jablonski