How to send an email using only HTML5 and CSS

后端 未结 4 1218
一生所求
一生所求 2021-02-06 09:09

I am trying to write a code which can send an email to a particular address on clicking submit button. Below i am mentioning my HTML code,on clicking submit i am not getting any

4条回答
  •  误落风尘
    2021-02-06 09:55

    The form as such works, to the extent that it is possible to send an e-mail using only HTML (CSS has really nothing to do with it). Clicking on the submit button launches an e-mail client in the user’s computer, but this may be prevented by settings in the browser. The user then needs to use the submit button (or equivalent) in that client. If you did that in your test and did not get e-mail, then abc@mail.com is not your account or the e-mail was filtered out in spam filtering somewhere.

    If the intent is to get the user’s information, then the Email field is useless, since if the sending works at all, the incoming message will appear with the user’s e-mail address (and quite often name, too) in the From field.

提交回复
热议问题