carbon-copy

sendgrid : add cc in email

隐身守侯 提交于 2021-01-27 14:21:00
问题 I am sending email using sendgrid from my app. Now I want to add cc or bcc if user reply to my mail. How Do I do this. let me explain first. I am sending answer of user's feedback comes on my web application using my application let say I am sending email via 'noreply@mydomain.com', and user receive this mail in his/her inbox in gmail/yahoo or any other email service. In this case user may click reply to this mail. so now, yours 'To:' has contain 'noreply@mydomain.com' default reply address.

PHP insert cc into mail function [duplicate]

天大地大妈咪最大 提交于 2019-12-20 03:28:33
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: PHP Mail, CC Field I am using the following php to send an email. I need to add cc to my email. When I try to insert into header the html message show the raw html. What is the best way to handle a cc? Thanks $headers = "From: $from_email\r\nReply-To: $from_email"; $headers .= "Return-Path: <info@premierinspectiontn.com>"; //add boundary string and mime type specification $headers .= "\r\nContent-Type: multipart

PHP insert cc into mail function [duplicate]

☆樱花仙子☆ 提交于 2019-12-02 02:35:52
Possible Duplicate: PHP Mail, CC Field I am using the following php to send an email. I need to add cc to my email. When I try to insert into header the html message show the raw html. What is the best way to handle a cc? Thanks $headers = "From: $from_email\r\nReply-To: $from_email"; $headers .= "Return-Path: <info@premierinspectiontn.com>"; //add boundary string and mime type specification $headers .= "\r\nContent-Type: multipart/mixed; boundary=\"PHP-mixed-".$random_hash."\""; Shawn Barratt just tested this, and it worked as expected: $headers .= 'Cc: test@test.com\r\n'; $headers .= 'Bcc: