Gmail API not respecting UTF encoding in subject

前端 未结 3 763
不思量自难忘°
不思量自难忘° 2021-01-18 19:29

In an app I\'m helping develop we\'ve added in the ability for a user to invite other users and personalize the invitation email, and then send it via Gmail\'s APIs. I\'m en

3条回答
  •  北海茫月
    2021-01-18 19:56

    Tested the solution of @Oboo Chin and it's currently working.

    For PHP you could use:

    $subject = '=?utf-8?B?' . base64_encode( $subject ) . '?=';
    

提交回复
热议问题