How do I send email using gmail api php

后端 未结 3 1879
-上瘾入骨i
-上瘾入骨i 2021-01-03 17:22

How do I send email using gmail api php

$msg[\'raw\'] = \"This is sample test message\";            
$msg[\'To\'] = \"test.api@gmail.com\";
$msg[\'subject\']         


        
3条回答
  •  庸人自扰
    2021-01-03 17:33

    I am using the same code and it does work fine except that it always sends a plain text email.

    Isn't specifying Content-Type: text/html; enough?

提交回复
热议问题