self.server = 'smtp.gmail.com'
self.port = 587

controlla che sia aperto verso questo/questi (a uno stesso nome possono corrispondere più ip in round robin solitamente) host e porta.


Il 16/07/2013 16:03, Fabrizio Rota ha scritto:
Molto interessante!
L'errore, alla fine, è lo stesso.

Spero mi rispondano dall'hosting......

[Errno 101] Network is unreachable


2013/7/16 Yuri <[email protected] <mailto:[email protected]>>

    Il 16/07/2013 15:22, Fabrizio Rota ha scritto:

        sono su server virtuale con la sola bash:
        mi dai una dritta per provare da linea di comando?




    https://pypi.python.org/pypi/gmail/0.3.1

    easy_install gmail

    e da linea di comando:

    python -mgmail.cli -u [email protected]
    <mailto:[email protected]> -p mypassword -t [email protected]
    <mailto:[email protected]> -s prova -b "prova mail"

    puoi anche omettere -p, te la chiede al momento

    Ah, e conserva in gmail la mail in posta inviata. Ecco tutte le
    opzioni del modulo:

    parser = argparse.ArgumentParser(description='Send email message
    via GMail account')
    parser.add_argument('--username','-u',required=True,
    help='GMail Username')
    parser.add_argument('--password','-p',default=None,
    help='GMail Password')
    parser.add_argument('--to','-t',required=True,action='append',default=[],
    help='To (multiple allowed)')
    parser.add_argument('--cc','-c',action='append',default=[],
    help='Cc (multiple allowed)')
    parser.add_argument('--subject','-s',required=True,
    help='Subject')
    parser.add_argument('--body','-b',
    help='Message Body (text)')
    parser.add_argument('--html','-l',default=None,
    help='Message Body (html)')
    parser.add_argument('--attachment','-a',action='append',default=[],
    help='Attachment (multiple allowed)')
    parser.add_argument('--debug','-d',action='store_true',default=False,
    help='Debug')


        grazie


        2013/7/16 Yuri <[email protected] <mailto:[email protected]>
        <mailto:[email protected] <mailto:[email protected]>>>


        Funziona da linea di comando, o con un client tipo Thunderbird?

        Il 16/07/2013 14:54, Fabrizio Rota ha scritto:

        Sto cercando di usare lo SMTP di google per spedire mail dal
        mio nuovo sito Plone 4.3.1

        Ho seguito questa guida:
        
http://opkode.com/media/blog/using-the-gmail-smtp-server-to-send-emails-from-plone

        Ho chiesto al mio provider di aprire la porta 25 e 587.

        Ma non riesco a spedire nulla:
        Impossibile inviare la mail di test: [Errno 101] Network is
        unreachable

        aiutino?

        -- Fabrizio
        --------------------
        Non inviato da IPhone

        "Life is what happens to you while you're busy making other
        plans" - J. Lennon

        “If you think education is expensive, try ignorance” - D. Bok

        Life is like a game of cards. The hand you are dealt is
        determinism; the way you play it is free will - Jawaharlal Nehru


        _______________________________________________
        Plone-IT mailing list
        [email protected] <mailto:[email protected]>
        <mailto:[email protected]
        <mailto:[email protected]>>

        https://lists.plone.org/mailman/listinfo/plone-plone-it
        
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html


        _______________________________________________
        Plone-IT mailing list
        [email protected] <mailto:[email protected]>
        <mailto:[email protected]
        <mailto:[email protected]>>

        https://lists.plone.org/mailman/listinfo/plone-plone-it
        
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html




-- Fabrizio
        --------------------
        Non inviato da IPhone

        "Life is what happens to you while you're busy making other
        plans" - J. Lennon

        “If you think education is expensive, try ignorance” - D. Bok

        Life is like a game of cards. The hand you are dealt is
        determinism; the way you play it is free will - Jawaharlal Nehru


        _______________________________________________
        Plone-IT mailing list
        [email protected] <mailto:[email protected]>
        https://lists.plone.org/mailman/listinfo/plone-plone-it
        
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html


    _______________________________________________
    Plone-IT mailing list
    [email protected] <mailto:[email protected]>
    https://lists.plone.org/mailman/listinfo/plone-plone-it
    http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html




--
Fabrizio
--------------------
Non inviato da IPhone

"Life is what happens to you while you're busy making other plans" - J. Lennon

“If you think education is expensive, try ignorance” - D. Bok

Life is like a game of cards. The hand you are dealt is determinism; the way you play it is free will - Jawaharlal Nehru


_______________________________________________
Plone-IT mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-plone-it
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html

_______________________________________________
Plone-IT mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-plone-it
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html

Rispondere a