Define the standard marketing email logic.
Copyright (C) 2021 Gitcoin Core
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.
send_mail(from_email, _to_email, subject, body, html=False, from_name='Gitcoin.co', cc_emails=None, categories=None, debug_mode=False, zip_path=None, csv=None)
Send email via SendGrid.
Activate the User's language preferences based on their email address.
Args: to_email (str): The email address to lookup language preferences for.