Jump to content

johnnyd

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by johnnyd

  1. Great - so I've fixed my username now, that should be the full address @me.com according to that apple doc.

     

    But how do I set the required port of 587?

     

    I tried changing line 15 to:

     

    from smtplib import SMTP_SSL(,587,,,,) as SMTP       # this invokes the secure SMTP protocol (port 465, uses SSL)

     

    but this just gives a syntax error:

     

      File "quickmessage.py", line 15

        from smtplib import SMTP_SSL(,587,,,,) as SMTP       # this invokes the secure SMTP protocol (port 465, uses SSL)

                                    ^

    SyntaxError: invalid syntax

     

    Probably making some basic Python error (total newbie on this) - if there is an obvious quick fix then please could you let me know?

     

    Is the local_hostname required - what should go here?

     

    Thanks so much for the instant response!

  2. Hi, I'd really love to get this working but am stuck.  I'd be v grateful for a bit of help.  

     

    If I run >python quickmessage.py -r blahblah@me.com -s "Quick message from me" -m "hello" to test if I have the quickmessage script set up ok, I get an error.

     

    Unable to send email message: SMTP AUTH extension not supported by server.

     

    If I switch to SMTP_SSL in the script I get

     

    Unable to send email message: [Errno 60] Operation timed out

     

    Is this because I am trying to use iCloud as my SMTP server (smptServer = 'smtp.mail.me.com'), and Apple does not permit this usage?  

     

    And if so, is there some sort of alternative set up that will allow me to send a message that comes from (or appears to come from) my blahblah@me.com email address?

     

    Thanks very much for any help, and thanks for sharing this workflow!

×
×
  • Create New...