Hey Jason,

I posted a blog on e-mailing in maya awhile ago and received a e-mail
from someone trying to get it to work with gmail. I gave it another
try and got it to work.

http://www.rtrowbridge.com/blog/2008/12/03/maya-python-email-module/

If you are sending an e-mail with g-mail send it like this:

pyMail( serverURL       = 'smtp.gmail.com',
        sender = 'mym...@gmail.com',
        to = 'som...@somewhere.com',
        subject = 'hello',
        text = 'world',
        user = 'mym...@gmail.com',
        password = 'password')

mymail in sender and user should be the same gmail account you are
sending from. You dont need to specify a port in fact I found if you
even specify the port they tell you to which is 465 or 587 it would
hang. Just let the mail client give the script the correct port
automatically.

RyanT
Technical Artist
www.rtrowbridge.com/blog
Naughty Dog Inc.



On Feb 20, 11:07 pm, jason.os...@gmail.com wrote:
>  Hi there!  As I stated towards the end of my message, I tried that, and it 
> still didn't work. :(
>
> -----Original Message-----
> From: kurian os ™ ®കോപ്പിയടിച്ചാ ല്©ഗോതമ്പുണ്ട! <kuria...@gmail.com>
>
> Date: Sat, 21 Feb 2009 02:02:27
> To: <python_inside_maya@googlegroups.com>
> Subject: [Maya-Python Club:1770] Re: ..:: Maya Mail ::..
>
> Hi Jas
>
> I forgot to tell about this
>
> in script you can find
>
> #if your using a auth based server please enable next line else leave it as
> commented
> #smtp.login(smtpServer,smtpPort)
>
> i commented this for our purpose coz we are not using a auth session .. so
> you should uncomment this line
> i hope this will work
>
> :)
>
> On Sat, Feb 21, 2009 at 12:34 AM, jasonosipa <jason.os...@gmail.com> wrote:
>
> > Looks really cool, and is informative - something I've wanted to get a
> > handle on for a while is email sent directly from Maya for better user
> > support.  Building up an error log alongside errors themselves,
> > sending history contents, etc, allowing people to just have a "help
> > beacon" that takes care of that all and stuffs it into an email, so
> > they don't need to be super savvy in how they communicate the scene
> > state, is a very attractive idea to me.
>
> > I had problems, though, trying to use a gmail account with this.  I'm
> > not sure, but I think it may have to do with gmail requiring TLS (SSL)
>
> > Check out GMail's "standard instructions" here:
> >http://mail.google.com/support/bin/answer.py?hl=en&answer=13287
>
> > And my errors:
> > # Error: (421, 'Cannot connect to SMTP server 209.85.199.109
> > (209.85.199.109:25), connect error 10060')
> > # Traceback (most recent call last):
> > #   File "C:\<snip>\sendInfoMail.py", line 170, in callOfficeMail
> > #     self.sendUsermail
>
> > (getrecevier,getsubject,getBody,getServer,getServerPort,currentUserId,getpassWord,getAttachment)
> > #   File "C:\<snip>\sendInfoMail.py", line 211, in sendUsermail
> > #     smtp = smtplib.SMTP(smtpServer)
> > #   File "C:\<snip>\smtplib.py", line 246, in__init__
> > #     raise SMTPConnectError(code, msg)
> > # SMTPConnectError: (421, 'Cannot connect to SMTP server
> > 209.85.199.109 (209.85.199.109:25), connect error 10060') #
>
> > I used smtp server : smtp.gmail.com, tried both smtp ports : 465 &
> > 587, used a valid user/pass, and un-commented line 213 as described
> > inside the script, but still, it is a no-go.
>
> > On Feb 20, 3:33 am, Achayan <kuria...@gmail.com> wrote:
> > > Hi Guys
>
> > > I just done a new python script for Maya .. send mails from Maya .
>
> > > There is 3 options
>
> > > 1 : You can compose normal mail inside Maya and you can send to others
>
> > > 2 : If you want to send your details to someone there is option
>
> > > 3 : You can setup your mail server details
>
> > > Other Features :
>
> > > You can load a CVS formatted contact list to script and it can give
> > > all the
> > > contacts .
>
> > > You can download from there as py file
>
> > >http://achayan-s.blogspot.com/2009/02/maya-mail.html
>
> > > PS : This just a first version ... so if you have any bugs please send
> > > a comment
> > > And feel free to modify
>
> --
> സ്നേഹിക്കയില്ല ഞാന്‍
> നോവുമാത്മാവിനെ സ്നേഹിച്ചിടാത്തൊരു
> തത്വശാസ്ത്രത്തെയും
>
>
--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---

  • ... Achayan
    • ... jasonosipa
      • ... kurian os ™ ®കോപ്പിയടിച്ചാല്©ഗോതമ്പുണ്ട!
        • ... jason . osipa
        • ... jason . osipa
          • ... kurian os ™ ®കോപ്പിയടിച്ചാല്©ഗോതമ്പുണ്ട!
            • ... kurian os ™ ®കോപ്പിയടിച്ചാല്©ഗോതമ്പുണ്ട!
          • ... ryant

Reply via email to