# If sending the task succeeds, deliver a success message to the user.
ifemail_to_option=="all":
email_msg='<div class="msg msg-confirm"><p class="copy">Your email was successfully queued for sending. Please note that for large public classes (~10k), it may take 1-2 hours to send all emails.</p></div>'
email_msg='<div class="msg msg-confirm"><p class="copy">Your email was successfully queued for sending. Please note that for large classes, it may take up to an hour (or more, if other courses are simultaneously sending email) to send all emails.</p></div>'
else:
email_msg='<div class="msg msg-confirm"><p class="copy">Your email was successfully queued for sending.</p></div>'
send_to=gettext("everyone who is staff or instructor on this course")
else
send_to=gettext("ALL (everyone who is enrolled in this course as student, staff, or instructor)")
success_message=gettext("Your email was successfully queued for sending. Please note that for large public classes (~10k), it may take 1-2 hours to send all emails.")
success_message=gettext("Your email was successfully queued for sending. Please note that for large classes, it may take up to an hour (or more, if other courses are simultaneously sending email) to send all emails.")
subject=gettext(@$subject.val())
confirm_message=gettext("You are about to send an email titled \"#{subject}\" to #{send_to}. Is this OK?")
${_("Please try not to email students more than once a day. Important things to consider before sending:")}
<pclass="copy">${_("Please try not to email students more than once per week. Important things to consider before sending:")}</p>
<ulclass="list-advice">
<liclass="item">${_("Have you read over the email to make sure it says everything you want to say?")}</li>
<liclass="item">${_("Have you sent the email to yourself first to make sure you're happy with how it's displayed?")}</li>
<liclass="item">${_("Have you sent the email to yourself first to make sure you're happy with how it's displayed, and that embedded links and images work properly?")}</li>
${_("Please try not to email students more than once a day. Before sending your email, consider:")}
<pclass="copy">${_("Please try not to email students more than once per week. Before sending your email, consider:")}</p>
<ulclass="list-advice">
<liclass="item">${_("Have you read over the email to make sure it says everything you want to say?")}</li>
<liclass="item">${_("Have you sent the email to yourself first to make sure you're happy with how it's displayed?")}</li>
<liclass="item">${_("Have you sent the email to yourself first to make sure you're happy with how it's displayed, and that embedded links and images work properly?")}</li>