Quantcast
Channel: WordPress.org Forums » [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin] Support
Viewing all articles
Browse latest Browse all 5010

neha on "[Plugin: WP Mail SMTP] wp_maik_smtp with normal html form"

$
0
0

pascal i modified the code tobelow but now when i recieve the mail the $fromemail and $name parts are empty...why dont they show up?

<form>
<input type="name" id="inputName" placeholder="Name">
<input type="name" id="inputEmail" placeholder="Email">
<button type="submit">SUBMIT</button>
</form>

$fromemail=myemail@domain.com;
$name=$_POST['inputname'];
$fromemail=$_POST['inputemail'];

$headers=  'From: '.$fromemail . "\r\n" . 'Reply-To: '.$fromemail;
if(isset($_POST['submit']))
{
wp_mail($toemail,$name,"working",$headers);
}

Viewing all articles
Browse latest Browse all 5010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>