def sendReminderEmail_bbq(name, email, etitle, start_time, stop_time): sender = lib.emailsender proxy = '"%(admin_name)s" <%(admin_email)s>' % { 'admin_email': lib.admin_email, 'admin_name': lib.admin_name } to = '"%(name)s" <%(email)s>' % {'name': name, 'email': email} bcc = '"%(admin_name)s" <%(admin_email)s>' % { 'admin_email': lib.admin_email, 'admin_name': lib.admin_name } subject = '%(area)s Reservation Reminder' % {'area': 'BBQ'} text = \ """ Event title: %(etitle)s Event start: %(start_time)s Event end: %(stop_time)s This is a reminder email of your BBQ reservation tomorrow at the above times. We hope you have a great event! Please plan on cleaning up afterwards so others can enjoy the space after your event. Remember to bring trash bags outside to collect trash from your event. You can find them in the trash rooms (where you usually bring your everyday trash). An email will be sent following your event end time with a cleaning instructions. *****There is a $40 fee for not properly cleaning the BBQ area following your event*****""" % {'etitle':etitle,'start_time':start_time,'stop_time':stop_time} lib.SendMail(sender=sender, proxy=proxy, to=to, bcc=bcc, subject=subject, text=text)
def sendCleaningEmail_bbq(name, email, etitle, start_time, stop_time): sender = lib.emailsender proxy = '"%(admin_name)s" <%(admin_email)s>' % { 'admin_email': lib.admin_email, 'admin_name': lib.admin_name } to = '"%(name)s" <%(email)s>' % {'name': name, 'email': email} bcc = '"%(admin_name)s" <%(admin_email)s>' % { 'admin_email': lib.admin_email, 'admin_name': lib.admin_name } subject = '%(area)s Reservation Reminder' % {'area': 'BBQ'} text = \ """ Event title: %(etitle)s Event start: %(start_time)s Event end: %(stop_time)s This is a reminder email to clean up the BBQ area after your event. Please make sure there is no trash left on or underneath the picnic area as well. Bring any trash bags inside your building and place them in the trash rooms. Do not leave trash bags outdoors. Also, do a quick walkthrough of the courtyard and playground area to ensure there is no trash from your event. Items like wrappers and popped balloons can easily make their way out of the picnic area, especially when there are children involved. *****There is a $40 fee for not properly cleaning the BBQ area following your event*****""" % {'etitle':etitle,'start_time':start_time,'stop_time':stop_time} lib.SendMail(sender=sender, proxy=proxy, to=to, bcc=bcc, subject=subject, text=text)
def sendReminderEmail(name, email, etitle, start_time, stop_time): sender = lib.emailsender proxy = '"%(admin_name)s" <%(admin_email)s>' % { 'admin_email': lib.admin_email, 'admin_name': lib.admin_name } to = '"%(name)s" <%(email)s>' % {'name': name, 'email': email} bcc = '"%(admin_name)s" <%(admin_email)s>' % { 'admin_email': lib.admin_email, 'admin_name': lib.admin_name } subject = '%(area)s Reservation Reminder' % {'area': 'Lounge'} text = \ """ Event title: %(etitle)s Event start: %(start_time)s Event end: %(stop_time)s This is a reminder email of your Lounge reservation tomorrow at the above times. We hope you have a great event! Please make sure to review the new lounge rules regarding cleaning of the lounge after your event (http://westgate.scripts.mit.edu/scripts/reservations/lounge.py). An email will be sent following your event end time with a cleaning checklist that you must fill out within 24 hours of the end of your event. *****There is a $40 fee for not properly cleaning the lounge following your event*****""" % {'etitle':etitle,'start_time':start_time,'stop_time':stop_time} lib.SendMail(sender=sender, proxy=proxy, to=to, bcc=bcc, subject=subject, text=text)
sender = '"Jason Walther" <*****@*****.**>' proxy = '"Westgate PRC" <*****@*****.**>' to = '"%(name)s" <%(email)s>' % {'name':name,'email':email} to = ', '.join([to]+addemail) bcc = proxy subject = 'Westgate Playroom Application' text = 'This is an automated message confirming that you '+ \ 'have successfully completed and submitted the '+ \ 'Westgate Playroom application. \n There are three more steps to complete the process. \n'+ \ 'Step 1. Pay $10 fee on adMIT One through (https://mit.universitytickets.com/w/event.aspx?id=858&p=1) under \'Westgate Playroom Annual Fee\'\n' + \ 'Step 2. Select a date to clean the playroom (https://docs.google.com/spreadsheets/d/1WQS2DQ6uVaqHk9a_hUtPNNgy38UJqUfvwxCXL--Jf34/edit#gid=0)\n' + \ 'Step 3. Send email to Westgate Parent Coordinators ([email protected]) that steps have been completed.\n' + \ 'At completion of steps within 3-5 business days; all MIT ID cards associated with your apt# will be activated for use of playroom. A confirmation email will be sent to you. \n' + \ 'Thank you, \n WEC \n' e = lib.SendMail(sender=sender,proxy=proxy,to=to,bcc=bcc,subject=subject,text=text) print 'Content-type: text/html' print print \ """ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Playroom Application Submitted</title> <link rel="stylesheet" href="%(css)s" type="text/css"> </head> <body> <div id="main"> <h3> Playroom Application Submitted · <a href="%(form)s">Playroom Application</a>