I have HTML form with a textbox where user enter his email - let say to register for a newsletter and a button to join.
When clicking the button I'd like to send myself an email with a constant subject like: 'a new user joined your newsletter' and in the body of the email have the text entered by the user.
So with PHP and Javascript code its possible - i'm looking for a pure html code that does the same (in my index.html file)
using <a href: mailto...>
or <form action=mailto:... method=post>
or <button onclick:mailto...>
opens my mail application :(
- Is there a way to send that email in the background (without opening the mail application) with the data from textbox in the email body?
- if Yes to Q.1 then is there a way to add a fixed subject
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…