我了解使用Python和来自我的站点的请求通过mailgunapi发送消息的基本原理,一切都很好。我想从一个HTML表单附加数据使用请求.forms.get(''),但无法找到使其工作的语法。下面的链接正是我需要做的,除了用Python而不是PHP。在
http://www.formget.com/mailgun-send-email/
我如何通过Mailgun发送以下表单数据?在
HTML表单(其中的一部分用于理解要点)
<form action="/send" method="post">
<input name="name" placeholder="Name">
...
<button> ...
路线(其中的一部分用于将点穿过)
^{pr2}$谢谢你
您可以使用requests库:
这对我很有用,但不确定这是不是正确的方法:
相关问题 更多 >
编程相关推荐