[Plone-IT] Inviare email
SauZheR
sauzher a gmail.com
Lun 21 Apr 2008 15:38:52 UTC
osserva il codice del secureMailhost troverai una funzione che fa tutto:
def secureSend(self, message, mto, mfrom, subject='[No Subject]',
mcc=None, mbcc=None, subtype='plain', charset='us-ascii',
debug=False, **kwargs):
basta catturare il mailhost con una chiamata del tipo mhost =
getattr(portal,'MailHost')
istanzi tutte le variabili che ti serve passare al secureSend e poi lanci
mhost.secureSend(message, mto, mfrom, subject...)
bye,
sau
(use the source, luke ;) )
Il 21/04/08, _Max_ <pop3_ a katamail.com> ha scritto:
>
>
> Ciao,
>
> vorrei scrivere uno script in python per inviare una mail usando
> SecureMailHost o qualsiasi altro metodo. come posso fare?
>
> --
> View this message in context:
> http://www.nabble.com/Inviare-email-tp16807994s21526p16807994.html
> Sent from the Plone - Italy mailing list archive at Nabble.com.
>
>
>
> _______________________________________________
> Plone-IT mailing list
> Plone-IT a lists.plone.org
> http://lists.plone.org/mailman/listinfo/plone-it
> http://www.nabble.com/Plone---Italy-f21728.html
>
--
bye
SauZheR
************************************
l'iterazione è umana...
la ricorsione, Divina!
************************************
reply to: sauzher AT gmail DOT com
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.plone.org/pipermail/plone-plone-it/attachments/20080421/77eec82d/attachment-0001.html>
Maggiori informazioni sulla lista
Plone-IT