PHP form send email to multiple recipients

后端 未结 7 1939
無奈伤痛
無奈伤痛 2020-11-27 05:18

I have some PHP code that I\'m using to send a form off to a specific e-mail address. However, I\'d like to include a couple more e-mail addresses in the PHP for when it sen

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-27 05:36

    You can add your receipients to $email_to variable separating them with comma (,). Or you can add new fields to headers, namely CC: or BCC: and put your receipients there. BCC is most recommended

提交回复
热议问题