Skip to content

Commit

Permalink
update sign up messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Steinborn authored and Eric Steinborn committed Apr 20, 2018
1 parent 9319a5c commit 3c17806
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions twilio_mgr/fixtures/message.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
"pk": 1,
"fields": {
"keyword": "WELCOME_MESSAGE",
"message": "Thank you for joining Take Back Day! We will remind you on April 28 so you can drop-off your unused drugs at [ADDRESS]. More information at 911-11-11"
"message": "Clear Your Cabinet: You are signed up for reminders of the next Prescription Drug Take Back Day. Reply STOP to cancel txt msgs."
}
},
{
"model": "twilio_mgr.Message",
"pk": 2,
"fields": {
"keyword": "WELCOME_MESSAGE_NO_LOCATION",
"message": "Thank you for joining Take Back Day! We will remind you on April 28 so you can drop-off your unused drugs. More information at 911-11-11"
"message": "Clear Your Cabinet: You are signed up for reminders of the next Prescription Drug Take Back Day. Reply STOP to cancel txt msgs."
}
},
{
"model": "twilio_mgr.Message",
"pk": 3,
"fields": {
"keyword": "WELCOME_EMAIL",
"message": "Hi! Thank you for taking part of Take Back Day. We will send you an email reminder on [DATE_OF_TBD] so you'll know when and where you can drop your unused drugs."
"message": "Friend --<br/><br/>America’s opioid crisis is a national emergency. Thank you for taking an incredibly important step to address the crisis in New York.<br/><br/>The next National Prescription Drug Take Back Day is on April 28th. We will send you a reminder a day before so you can find the locations closest to you and make a plan.<br/><br/><i>Clear Your Cabinet is an initiative of New York Attorney General Eric Schneiderman.</i>"
}
}
,
Expand All @@ -29,39 +29,39 @@
"pk": 4,
"fields": {
"keyword": "WELCOME_EMAIL_NO_LOCATION",
"message": "Hi! Thank you for taking part of Take Back Day. We will send you an email reminder on [DATE_OF_TBD] so you'll know when and where you can drop your unused drugs."
"message": "Friend --<br/><br/>America’s opioid crisis is a national emergency. Thank you for taking an incredibly important step to address the crisis in New York.<br/><br/>The next National Prescription Drug Take Back Day is on April 28th. We will send you a reminder a day before so you can find the locations closest to you and make a plan.<br/><br/>Clear Your Cabinet is an initiative of New York Attorney General Eric Schneiderman."
}
},
{
"model": "twilio_mgr.Message",
"pk": 5,
"fields": {
"keyword": "CANCEL_SMS",
"message": "You have cancelled your subscription from Take Back Day! Drop-off your unused drugs anytime at your nearby pharmacy. To resubscribe, text TAKEBACKDAY to this number"
"message": "You have cancelled your subscription to Clear Your Cabinet! Drop-off your unused drugs anytime at your nearby pharmacy."
}
},
{
"model": "twilio_mgr.Message",
"pk": 6,
"fields": {
"keyword": "CANCEL_EMAIL",
"message": "You have unsubscribed from the email reminders. WE will no longer send you a reminder."
"message": "You have unsubscribed from email reminders for Clear Your Cabinet. Drop-off your unused drugs anytime at your nearby pharmacy."
}
},
{
"model": "twilio_mgr.Message",
"pk": 7,
"fields": {
"keyword": "DAY_OF_TBD_SMS",
"message": "Today's the day! Drop-off your unused prescription drugs at [ADDRESS]! Having trouble? Go to 347-443-9"
"message": "Tomorrow is Prescription Drug Take Back Day. Find a drop-off site near you: clearyourcabinet.com Reply STOP to cancel txt msgs"
}
},
{
"model": "twilio_mgr.Message",
"pk": 8,
"fields": {
"keyword": "DAY_OF_TBD_EMAIL",
"message": "Today's the day! Drop-off your unused prescription drugs at [ADDRESS]!"
"message": "Friend --<br/><br/>Tomorrow is National Prescription Drug Take Back Day, and New Yorkers from across the state will be heading to drop-off sites near their homes or workplaces to safely dispose of unused medication.<br/><br/><a href='clearyourcabinet.com'>Click here to find your nearest drop-off site</a>.<br/><br/>Once you’ve found a nearby site, we recommend calling them before you head out, and confirming their availability and hours.<br/><br/>Thank you for clearing your cabinet. Together we can make a crucial difference in combatting the opioid crisis in New York State.<br/><br/><i>Clear Your Cabinet is an initiative of New York Attorney General Eric Schneiderman.<i>"
}
}
]
6 changes: 3 additions & 3 deletions twilio_mgr/management/commands/send_confirmation.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ def twilio_send(self, number, message):
def sendgrid_send(self, email, message):

sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))
from_email = Email("TakeBackDay Team <do-not-reply@takebackday.org>")
from_email = Email("Clear Your Cabinet New York <do-not-reply@clearyourcabinet.ag.ny.gov>")
to_email = Email(email)
subject = "[TakeBackDay] Subscription Confirmation"
content = Content("text/plain", message)
subject = "Thank you for signing up for a take-back reminder."
content = Content("text/html", message)
mail = Mail(from_email, subject, to_email, content)
response = sg.client.mail.send.post(request_body=mail.get())

Expand Down

0 comments on commit 3c17806

Please sign in to comment.