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

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -29,10 +29,11 @@ def send_email(from_email, name, notes):
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
  )
38
 
 
29
  'Authorization': f'Basic {auth}'
30
  },
31
  data={
32
+ 'from': f'Website Contact <mailgun@{os.getenv("MAILGUN_DOMAIN")}>',
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
+ 'h:Reply-To': from_email
37
  }
38
  )
39