Sad :(

i am getting a error with any smtp server using ssl :(

# Error: 'module' object has no attribute 'ssl'
# Traceback (most recent call last):
#   File "D://Kurian//python//SENDIN~1.PY", line 170, in callOfficeMail
#     self.mail("kuria...@gmail.com","Hello from python!","This is a email
sent with python")
#   File "D://Kurian//python//SENDIN~1.PY", line 303, in mail
#     mailServer.starttls()
*#   File "C:\Program Files
(x86)\Autodesk\Maya2008\bin\python25.zip\smtplib.py", line 605, in starttls*
#     sslobj = socket.ssl(self.sock, keyfile, certfile)
# AttributeError: 'module' object has no attribute 'ssl' #

if i am using python its working fine , but when i use maya smtplib its
throwing error :(
anyone knows how we can use python smtplib inside maya instead of *C:\Program
Files (x86)\Autodesk\Maya2008\bin\python25.zip\smtplib.py


*
On Sat, Feb 21, 2009 at 2:07 AM, <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. :(
>
> ------------------------------
> *From*: kurian os ™ (R)കോപ്പിയടിച്ചാ ല്(c)ഗോതമ്പുണ്ട!
> *Date*: Sat, 21 Feb 2009 02:02:27 -0500
> *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