如何在PHP中使用Amazon SES在电子邮件中添加“from”?
我在他们的SDK中找不到它:
* Keys for the $destination parameter:
* ToAddresses - _string_|_array_ (Optional) The To: field(s) of the message. Pass a string for a single value, or an indexed array for multiple values.
* CcAddresses - _string_|_array_ (Optional) The CC: field(s) of the message. Pass a string for a single value, or an indexed array for multiple values.
* BccAddresses - _string_|_array_ (Optional) The BCC: field(s) of the message. Pass a string for a single value, or an indexed array for multiple values.
答案 0 :(得分:1)
http://docs.amazonwebservices.com/AWSSDKforPHP/latest/#m=AmazonSES/send_email
$ source参数本质上是“From”,如果您的意思是“回复”,您也可以在$ opt参数中设置它。