Swift Send Email with MailGun

后端 未结 4 1648
时光说笑
时光说笑 2021-01-15 01:20

Problem

I would like to use the MailGun service to send emails from a pure Swift app.

Research So Far

As I understa

4条回答
  •  没有蜡笔的小新
    2021-01-15 01:37

    requests.post sends an HTTP POST request, encoding key/value pairs as application/x-www-form-urlencoded. You need to do the same.

    • convert the set of key-value pairs into application/x-www-form-urlencoded as per How to escape the HTTP params in Swift
    • compose the request using the resulting string for data & send it as per iOS : http Post using swift

提交回复
热议问题