aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/mailing_list.py28
-rw-r--r--python/templates/template-2014-05-19.html59
-rw-r--r--python/templates/template-2014-05-19.txt36
3 files changed, 109 insertions, 14 deletions
diff --git a/python/mailing_list.py b/python/mailing_list.py
index 8339905e..d4309d30 100644
--- a/python/mailing_list.py
+++ b/python/mailing_list.py
@@ -14,17 +14,17 @@ root = "/home/share/serenitas/Fund Raising"
book = xlrd.open_workbook(os.path.join(root, sys.argv[1]))
sheet = book.sheet_by_name("Distribution List")
emails, names, include, firm = sheet.col(4), sheet.col(5), sheet.col(6), sheet.col(2)
-mailing_list = [(emails[i].value, names[i].value, firm[i].value) for i, y in enumerate(include[3:], 3) if y.value.lower()=="y"]
+mailing_list = [(emails[i].value, names[i].value, firm[i].value) for i, y in enumerate(include[3:], 3) if y.value.lower()=="x"]
#SMTP server
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
server.login(gmail_login, gmail_password)
-with open("templates/template2-2014-04-16.txt") as fh:
+with open("templates/template-2014-05-19.txt") as fh:
s_text = Template(fh.read())
-with open("templates/template2-2014-04-16.html") as fh:
+with open("templates/template-2014-05-19.html") as fh:
s_html = Template(fh.read())
attachment_name = 'Serenitas Capital (SCGMF Returns).pdf'
@@ -32,25 +32,25 @@ with open(os.path.join(root, "Pitchbook", attachment_name), 'rb') as fh:
pdf_attach1 = MIMEApplication(fh.read(), 'pdf')
pdf_attach1.add_header('Content-Disposition', 'attachment', filename = attachment_name)
-attachment_name = 'Serenitas Credit Gamma Master Fund - Investor Letter 1Q2014.pdf'
-with open(os.path.join(root, "InvestorLetters", attachment_name), 'rb') as fh:
- pdf_attach2 = MIMEApplication(fh.read(), 'pdf')
-pdf_attach2.add_header('Content-Disposition', 'attachment', filename = attachment_name)
+# attachment_name = 'Serenitas Credit Gamma Master Fund - Investor Letter 1Q2014.pdf'
+# with open(os.path.join(root, "InvestorLetters", attachment_name), 'rb') as fh:
+# pdf_attach2 = MIMEApplication(fh.read(), 'pdf')
+# pdf_attach2.add_header('Content-Disposition', 'attachment', filename = attachment_name)
for email, name, firm in mailing_list:
msg = MIMEMultipart()
- msg['Subject'] = 'Serenitas Capital'
+ msg['Subject'] = 'Serenitas Credit Gamma Master Fund performance update'
msg['From'] = "David Weeks <{0}>".format(gmail_login)
msg['To'] = email
msg_alternative = MIMEMultipart('alternative')
if name:
- name = "Dear {0}".format(name)
- else:
- name = "Hi"
- msg_alternative.attach(MIMEText(s_text.substitute(name = name, firm_name=firm.rstrip()), 'plain'))
- msg_alternative.attach(MIMEText(s_html.substitute(name = name, firm_name=firm.rstrip()), 'html'))
+ name = " " + name
+ # msg_alternative.attach(MIMEText(s_text.substitute(name = name, firm_name=firm.rstrip()), 'plain'))
+ # msg_alternative.attach(MIMEText(s_html.substitute(name = name, firm_name=firm.rstrip()), 'html'))
+ msg_alternative.attach(MIMEText(s_text.substitute(name = name), 'plain'))
+ msg_alternative.attach(MIMEText(s_html.substitute(name = name), 'html'))
msg.attach(msg_alternative)
- msg.attach(pdf_attach2)
+ # msg.attach(pdf_attach2)
msg.attach(pdf_attach1)
server.send_message(msg)
server.quit()
diff --git a/python/templates/template-2014-05-19.html b/python/templates/template-2014-05-19.html
new file mode 100644
index 00000000..2c3ae4ad
--- /dev/null
+++ b/python/templates/template-2014-05-19.html
@@ -0,0 +1,59 @@
+<html>
+<body style="font-family:Calibri,sans-serif;font-size:11pt">
+Hi$name,
+
+<p>
+Serenitas Credit Gamma Master Fund is a fixed income relative value
+fund with a market-neutral approach.&nbsp; Recent performance numbers are
+as follows:
+</p>
+<table style="font-family:Calibri,sans-serif;font-size:11pt">
+<tr>
+ <td style="padding-right:1em">April</td><td style="text-align:right">1.04%</td>
+</tr>
+<tr>
+ <td style="padding-right:1em">YTD (4/2014)</td><td style="text-align:right">5.58%</td>
+</tr>
+<tr>
+ <td style="padding-right:1em">2013</td><td style="text-align:right">21.11%</td>
+
+</tr>
+</table>
+
+<p>
+I am available to discuss our strategy.&nbsp; Please see the attached file
+for additional information about Serenitas Capital and the fund.
+</p>
+
+<p>
+Thanks,<br/>
+David
+</p>
+
+<p style="font-size:9pt">
+<span style="color:#000076;font-weight:bold">David Weeks<br/>
+ SERENITAS CAPITAL LP<br/></span>
+<span style="color:#000076;font-size:8pt">(646) 257-2894<br/></span>
+<a href="mailto:david.weeks@serenitascapital.com" style="font-size:8pt">david.weeks@serenitascapital.com</a>
+</p>
+
+<p style="font-size:9pt">
+Results are net of fees and accrued allocations. Results for 2014 are
+estimated and unaudited. Past performance is not necessarily
+indicative of future results. Rates of return are calculated for all
+investors taken as a whole. An individual investor’s rate of return
+may vary based on the terms of its subscription and timing of its
+investment in the fund. <br/>
+
+<p style="font-size:9pt">
+This document does not constitute an offer to sell or the solicitation
+of an offer to purchase any security or investment product. Any such
+offer or solicitation may only be made by means of delivery of an
+approved offering memorandum. An approved offering memorandum must be
+received and reviewed prior to any investment decision. Any person
+subscribing for an investment must be able to bear the risks involved
+and must meet the suitability requirements relating to such
+investments.
+</p>
+</body>
+</html>
diff --git a/python/templates/template-2014-05-19.txt b/python/templates/template-2014-05-19.txt
new file mode 100644
index 00000000..f2931391
--- /dev/null
+++ b/python/templates/template-2014-05-19.txt
@@ -0,0 +1,36 @@
+Hi$name,
+
+Serenitas Credit Gamma Master Fund is a fixed income relative value
+fund with a market-neutral approach. Recent performance numbers are
+as follows:
+
+April 1.04%
+YTD (4/2014) 5.58%
+2013 21.11%
+
+I am available to discuss our strategy. Please see the attached file
+for additional information about Serenitas Capital and the fund.
+
+Thanks,
+David
+
+David Weeks
+SERENITAS CAPITAL LP
+(646) 257-2894
+david.weeks@serenitascapital.com
+
+Results are net of fees and accrued allocations. Results for 2014 are
+estimated and unaudited. Past performance is not necessarily
+indicative of future results. Rates of return are calculated for all
+investors taken as a whole. An individual investor’s rate of return
+may vary based on the terms of its subscription and timing of its
+investment in the fund.
+
+This document does not constitute an offer to sell or the solicitation
+of an offer to purchase any security or investment product. Any such
+offer or solicitation may only be made by means of delivery of an
+approved offering memorandum. An approved offering memorandum must be
+received and reviewed prior to any investment decision. Any person
+subscribing for an investment must be able to bear the risks involved
+and must meet the suitability requirements relating to such
+investments.