sagarnildass commited on
Commit
e577dc5
·
verified ·
1 Parent(s): abc89b4

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,9 +29,9 @@ def send_email(from_email, name, notes):
29
  'Authorization': f'Basic {auth}'
30
  },
31
  data={
32
- 'from': f'Contact Form <mailgun@{os.getenv("MAILGUN_DOMAIN")}>',
33
  'to': os.getenv("MAILGUN_RECIPIENT"),
34
- 'subject': f'New Contact: {name} ({from_email})',
35
  'text': f'Name: {name}\nEmail: {from_email}\nNotes: {notes}'
36
  }
37
  )
 
29
  'Authorization': f'Basic {auth}'
30
  },
31
  data={
32
+ 'from': f'{from_email}',
33
  'to': os.getenv("MAILGUN_RECIPIENT"),
34
+ 'subject': f'New message from {from_email}',
35
  'text': f'Name: {name}\nEmail: {from_email}\nNotes: {notes}'
36
  }
37
  )