我收到Gmail Rest API发送部分的工作,但电子邮件不包括签名,并且在收件人的收件箱中,“从”标签是发件人的用户标识不是用户的名称.
原文链接:https://www.f2er.com/php/132734.html这是在PHP.
$mime = new Mail_mime(); $mime->setFrom("ABCD"); //This doesn't work.... $mime->setSubject('Testing'); $mime->setTXTBody('This is a demo mail'); $mime->addTo('a@a.com'); $message_body = $mime->getMessage(); $encodeMessage = base64url_encode($message_body); $message = new Google_Service_Gmail_Message(); $message->setRaw($encodeMessage); $send = $service->users_messages->send('me',$message);
有没有包括签名和改变’从’?