How do I set the name of an email sender via PHP

前端 未结 6 960
自闭症患者
自闭症患者 2020-12-30 03:00

So I want the from field when an email is opened to be something like

\"Jack Sparrow Via somesite\" as opposed to an explicit email address

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-30 03:29

    If you use PHP Mailer from GitHub, then you do it by:

    $mail->SetFrom("info@mibckerala.org", "MIBC");
    

提交回复
热议问题