Send email with PHP from html form on submit with the same script

前端 未结 8 1999
情深已故
情深已故 2020-11-22 01:22

I want to send an email with PHP when a user has finished filling in an HTML form and then emailing information from the form. I want to do it from the same script that disp

8条回答
  •  渐次进展
    2020-11-22 01:26

    You need a SMPT Server in order for

    ... mail($to,$subject,$message,$headers);
    

    to work.

    You could try light weight SMTP servers like xmailer

提交回复
热议问题