+ 2
How to send email using html, without open email app?
If a button clicked, the email is directly sent to us, without opening email app, in user's device. The email will directly sent to us Please answer!!
2 ответов
+ 3
To solve your problem you need to stop thinking "send email = use email app" but "send email = content need to be send".
From that you can send an email by using for example a simple HTML form like :
<input type="text" value="" placeholder="Your name"/>
<input type="email" value="" placeholder="Your email"/>
<input type="submit" value="" placeholder="Send"/>
and when the user click on "Send", a PHP is trigger which will request to send an email to you.
There are plenty of tutorials about that. Don't forget to learn a while about forms security to prevent users send you some spams or hack your website for example ;)
+ 1
You can use function in php called 'mail'
<?php
$mailto = 'someone@gmail.com';
$subject = 'subject';
$message = 'message';
mail ($mailto, $subject, $message);