From 086d6bba0a815303e96d7a405c39c855f5d75a9a Mon Sep 17 00:00:00 2001 From: Dmitry Savransky Date: Fri, 11 Oct 2024 15:50:48 -0400 Subject: [PATCH] adding from input to distributions method --- cornellGrading/cornellQualtrics.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cornellGrading/cornellQualtrics.py b/cornellGrading/cornellQualtrics.py index efc0926..33d7273 100644 --- a/cornellGrading/cornellQualtrics.py +++ b/cornellGrading/cornellQualtrics.py @@ -516,6 +516,7 @@ def createSingleContactDistribution( subject, cmsg="", replyTo="no-reply@cornell.edu", + fromName="A Survey Robot", ): """Create a survey distribution for the given mailing list @@ -535,6 +536,8 @@ def createSingleContactDistribution( Custom message to add to standard email replyTo (str): Reply-to address + fromName (str): + From string Returns: str: @@ -565,7 +568,7 @@ def createSingleContactDistribution( "header": { "fromEmail": "invitation@surveys.mail.cornell.edu", "replyToEmail": replyTo, - "fromName": "A Survey Robot", + "fromName": fromName, "subject": subject, }, "surveyLink": {"surveyId": surveyId, "type": "Individual"},