changing settings to match default heroku configs
This commit is contained in:
parent
ab2829a597
commit
6dc415fdaa
|
@ -88,8 +88,8 @@ def _send_email(to=None, subject=None, text=None, html=None, sender=None, cc=Non
|
|||
if None in [to, subject, text, sender]:
|
||||
raise ValueError('to, subject text and sender are required to send email')
|
||||
|
||||
data = {'api_user': settings.SENDGRID_API_USER,
|
||||
'api_key': settings.SENDGRID_API_KEY,
|
||||
data = {'api_user': settings.SENDGRID_USERNAME,
|
||||
'api_key': settings.SENDGRID_PASSWORD,
|
||||
'to': to,
|
||||
'subject': subject,
|
||||
'text': text,
|
||||
|
|
|
@ -13,5 +13,5 @@ CONTACT_EMAIL = os.getenv('CONTACT_EMAIL') or 'team@example.com'
|
|||
DEFAULT_SENDER = os.getenv('DEFAULT_SENDER') or 'Forms Team <submissions@example.com>'
|
||||
API_ROOT = os.getenv('API_ROOT') or '//example.com'
|
||||
|
||||
SENDGRID_API_USER = os.getenv('SENDGRID_API_USER')
|
||||
SENDGRID_API_KEY = os.getenv('SENDGRID_API_KEY')
|
||||
SENDGRID_USERNAME = os.getenv('SENDGRID_USERNAME')
|
||||
SENDGRID_PASSWORD = os.getenv('SENDGRID_PASSWORD')
|
||||
|
|
Loading…
Reference in New Issue