def send_portfolio_invitation(invitee_email, inviter_name, token): body = render_template("emails/portfolio/invitation.txt", owner=inviter_name, token=token) send_mail.delay( [invitee_email], translate("email.portfolio_invite", {"inviter_name": inviter_name}), body, )
def send_application_invitation(invitee_email, inviter_name, token): body = render_template("emails/application/invitation.txt", owner=inviter_name, token=token) send_mail.delay( [invitee_email], translate("email.application_invite", {"inviter_name": inviter_name}), body, )
def test_email(): send_mail.delay( [request.args.get("to")], request.args.get("subject"), request.args.get("body") ) return redirect(url_for("dev.messages"))