[Zope] ZTP mailhost ..
Peter Bengtsson
peterbe at gmail.com
Thu Sep 8 10:38:28 EDT 2005
There's a zope product called SecureMailHost. Perhaps that's what
you're looking for.
On 9/8/05, Georgakopoulos Nicolas <nicolasg at vtrip.net> wrote:
> Lennart Regebro wrote:
> On 9/8/05, Georgakopoulos Nicolas <nicolasg at vtrip.net> wrote:
>
>
> Can some one help out how to set up a ZTP form to use a mailhost object
> and send a email with the data that the form was filled ?
> I have made the form successfully , my problem is that I don't know how
> to use the mailhost.
>
> ps:Can I use a web mail account to send a mail like gmail ?
>
> No, you need to configure it to use your mail server for outgoing mail.
>
> When this is done, you send the mail with the mailhost send function.
> It's quite easy really. Make a little python script that takes the
> form and calls MailHost.send.
>
>
> I have write the script :
>
> # locate the mailhost
> mailhost=container['mailhost']
>
> # email message settings
> recipient='nicolasg at gmail.com'
> sender='nicolasg at gmail.com'
> subject='A test mail'
>
> # format the email message
> message='Hello by mail ! '
>
> # send the message
> mailhost.simple_send(recipient, sender, subject, message)
>
> # return a confirmation message
> page=container['thanks.html']
> return page()
>
> When I try to send mail the browser keep waiting for data response , and
> never take a response.I use netstat and check that a connection is
> established with my SMTP address. I guess that my problem for the moment is
> that I can't pass throu an SSL connection (my smtp server use SSL) and I
> cant find a way on mailhost object to change the set SSL . Does mailhost
> object or ZOPE support SSL connections for SMTP protocol ?
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>
--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
More information about the Zope
mailing list