insert image in mail body

后端 未结 4 1381
没有蜡笔的小新
没有蜡笔的小新 2020-12-10 03:39

How to insert image in mail body when user click on send button. I am using php mail

4条回答
  •  抹茶落季
    2020-12-10 03:59

    The correct is almost as the above marked answer. One most important part omitted is the absolute part of the image as indicated below:

    $message = "";
    $message .= "";
    
    $headers = "From: $from_email";
    $headers .= "Content-type: text/html";
    
    mail($to, $subject, $message, $headers);
    

提交回复
热议问题