From 3c1780649ab4a3ab98e26dba212ace05ee67b6de Mon Sep 17 00:00:00 2001 From: Eric Steinborn Date: Fri, 20 Apr 2018 11:14:00 -0400 Subject: [PATCH] update sign up messages --- twilio_mgr/fixtures/message.json | 16 ++++++++-------- .../management/commands/send_confirmation.py | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/twilio_mgr/fixtures/message.json b/twilio_mgr/fixtures/message.json index 75114db..44ee7a3 100644 --- a/twilio_mgr/fixtures/message.json +++ b/twilio_mgr/fixtures/message.json @@ -4,7 +4,7 @@ "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." } }, { @@ -12,7 +12,7 @@ "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." } }, { @@ -20,7 +20,7 @@ "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 --

America’s opioid crisis is a national emergency. Thank you for taking an incredibly important step to address the crisis in New York.

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.

Clear Your Cabinet is an initiative of New York Attorney General Eric Schneiderman." } } , @@ -29,7 +29,7 @@ "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 --

America’s opioid crisis is a national emergency. Thank you for taking an incredibly important step to address the crisis in New York.

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.

Clear Your Cabinet is an initiative of New York Attorney General Eric Schneiderman." } }, { @@ -37,7 +37,7 @@ "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." } }, { @@ -45,7 +45,7 @@ "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." } }, { @@ -53,7 +53,7 @@ "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" } }, { @@ -61,7 +61,7 @@ "pk": 8, "fields": { "keyword": "DAY_OF_TBD_EMAIL", - "message": "Today's the day! Drop-off your unused prescription drugs at [ADDRESS]!" + "message": "Friend --

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.

Click here to find your nearest drop-off site.

Once you’ve found a nearby site, we recommend calling them before you head out, and confirming their availability and hours.

Thank you for clearing your cabinet. Together we can make a crucial difference in combatting the opioid crisis in New York State.

Clear Your Cabinet is an initiative of New York Attorney General Eric Schneiderman." } } ] diff --git a/twilio_mgr/management/commands/send_confirmation.py b/twilio_mgr/management/commands/send_confirmation.py index 24b773d..943e0d8 100644 --- a/twilio_mgr/management/commands/send_confirmation.py +++ b/twilio_mgr/management/commands/send_confirmation.py @@ -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 ") + from_email = Email("Clear Your Cabinet New York ") 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())