Email should show up as the team name

And not as "SlackMail"

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-05-27 09:12:43 -04:00
parent ea0eeeb46c
commit b30600b066
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ for channel in slack.channels.list():
msg = MIMEText("\n".join(text))
msg["Subject"] = "[%s] %s" % (slack.team(), channel.name())
msg["From"] = "SlackMail@OcarinaProject.net"
msg["To"] = "schumaker.anna@gmail.com"
s.sendmail("SlackMail", "schumaker.anna@gmail.com", msg.as_string())
msg["To"] = slack.user().email()
s.sendmail(slack.team(), slack.user().email(), msg.as_string())
s.quit()