Sendgrid提供两个响应代码......不寻常

时间:2017-03-12 22:21:26

标签: php http-headers sendgrid

我正在尝试通过sendgrid API发送邮件,但我看到不寻常的是它给了我两个响应代码而不是一个。它不发送邮件。为什么?

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="ibas.locatix_teamviewer.mapFragment">

<com.google.android.gms.maps.MapView
    android:layout_width="match_parent"
    android:layout_height="200dp"
    android:layout_marginTop="12dp"
    android:id="@+id/mapView"
    android:layout_alignParentTop="true"
    android:layout_alignParentLeft="true"
    android:layout_alignParentStart="true" />

我已经下载了sendgrid代码并编写了一个包装类array(16) { [0]=> string(22) "HTTP/1.1 100 Continue" [1]=> string(1) "" [2]=> string(25) "HTTP/1.1 400 Bad Request" [3]=> string(14) "Server: nginx" [4]=> string(36) "Date: Sun, 12 Mar 2017 22:08:03 GMT" [5]=> string(31) "Content-Type: application/json" [6]=> string(20) "Content-Length: 507" [7]=> string(23) "Connection: keep-alive" [8]=> string(22) "X-Frame-Options: DENY" [9]=> string(58) "Access-Control-Allow-Origin: https://sendgrid.api-docs.io" [10]=> string(35) "Access-Control-Allow-Methods: POST" [11]=> string(87) "Access-Control-Allow-Headers: Authorization, Content-Type, On-behalf-of, x-sg-elas-acl" [12]=> string(28) "Access-Control-Max-Age: 600" [13]=> string(75) "X-No-CORS-Reason: https://sendgrid.com/docs/Classroom/Basics/API/cors.html" [14]=> string(1) "" [15]=> string(0) "" } 来使用sendgrid

我想要实现这样的目标。

Mailer

0 个答案:

没有答案