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.