How to send image in PHP mail function

后端 未结 2 1813
盖世英雄少女心
盖世英雄少女心 2020-12-10 09:57

I want to send image in mail.How to add image so that it will show in the email I want to add image to the CLIENT MESSAGE BODY. How to use html in client message body?

2条回答
  •  心在旅途
    2020-12-10 10:44

    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    
    $message = "
    Your email at the time
    
    
    
    "
    mail($email_to, $email_subject , $message,$headers);
    

提交回复
热议问题