Send Mail with attachment using Gmail new API, but it is not displayed for receiver's inbox

后端 未结 1 698
醉酒成梦
醉酒成梦 2020-12-17 00:55

We are integrating GMail using the latest API provided by them as a part of developing email client within our application. We are using PHP client library provided by Googl

1条回答
  •  北海茫月
    2020-12-17 01:46

    Replace your:

    $strRawMessage .= 'Content-type: Multipart/Alternative; boundary="' . $boundary . '"' . "\r\n";
    

    with:

    $strRawMessage .= 'Content-type: Multipart/Mixed; boundary="' . $boundary . '"' . "\r\n";
    

    0 讨论(0)
提交回复
热议问题