我正在使用curl 发送到sendgrid 邮件程序。
我试图让它在“发件人”中显示我的公司名称,而不是电子邮件地址。
我已经尝试过这个:
'from' => 'Name <<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="395c41585449555c795c41585449555c175a5654" rel="noreferrer noopener nofollow">[email protected]</a>>'
那是行不通的。有人有什么想法吗?
感谢您的帮助。
最佳答案
您需要使用fromname
参数。 https://sendgrid.com/docs/API_Reference/Web_API/mail.html
关于sendgrid - 使用curl 和sendgrid 显示发件人姓名而不是电子邮件地址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36658720/