add body-plain alias to properly get text body
This commit is contained in:
parent
a716bb40ac
commit
3bc6687df5
2
app.py
2
app.py
@ -33,7 +33,7 @@ async def mailgun_webhook(
|
||||
request: Request,
|
||||
recipient: str = Form(...), # 'recipient' field from Mailgun webhook, e.g. 14155551212@yourdomain.com
|
||||
subject: str = Form(""),
|
||||
body_plain: str = Form(""),
|
||||
body_plain: str = Form("", alias="body-plain"),
|
||||
):
|
||||
print(f"RECIPIENT: {recipient}\nSUBJECT: {subject}\nBODY: {body_plain}")
|
||||
# Extract phone number from recipient email
|
||||
|
||||
Loading…
Reference in New Issue
Block a user