Re: Easy <dtml-sendmail> syntax question.
Maik, I understand how to do every part except: - set this as the smtphost of MailHost-object Im not having much luck, with Google, finding anything on how to access the MailHost's objects attributes . Im assuming I will have to do this from a python script? I have started to pick through the MailHost.py module of the MailHost product. Any suggestions. Thanks, Derek Basch Derek Basch wrote:
<dtml-var standard_html_header>
<dtml-sendmail smtphost=<dtml-var smtphost>> To: <<dtml-var recipient>> From: Server <<dtml-var SERVER_URL>> Subject: <<dtml-var subject>>
</dtml-sendmail> _____________________________________________ I cant save the 'send_email' mehtod so know I am doing something wrong by nesting the <dtml-var smtphost> inside <dtml-sendmail>. Can anyone tell me how to do this properly?
you can't use smtphost=<dtml-var smtphost>. it expects a string, not an expression. If you want to use different smtp-hosts, you have to do a workaround: - get the smtphost from your request, - set this as the smtphost of MailHost-object - and then call your method with <dtml-var mailhost=MailHost> cheers, maik __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com
Derek Basch wrote:
Maik, I understand how to do every part except:
- set this as the smtphost of MailHost-object
Im not having much luck, with Google, finding anything on how to access the MailHost's objects attributes .
def manage_makeChanges(self,title,smtp_host,smtp_port, REQUEST=None): cheers, maik -- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
participants (2)
-
Derek Basch -
Maik Jablonski