html button to send email

前端 未结 8 1503
耶瑟儿~
耶瑟儿~ 2020-12-24 02:00

How do I send an email with specified initial values for the headers subject and message from a button in html, such as this



        
8条回答
  •  悲&欢浪女
    2020-12-24 02:40

    @user544079

    Even though it is very old and irrelevant now, I am replying to help people like me! it should be like this:

    Here $emailID, $MySubject, $MyMessageText are variables which you assign from a FORM or a DATABASE Table or just you can assign values in your code itself. Alternatively you can put the code like this (normally it is not used):

提交回复
热议问题