change to this code and execute:
Code:<?php error_reporting(E_ALL); if (isset($_POST["Submit"])) { $string = '<?php $name = "'. $_POST["name"]. '";$title = "'. $_POST["title"]. '";$email3 = "'. $_POST["email3"]. '";$description = "'. $_POST["description"]. '";?>'; $fp = fopen("config.php", "w");fwrite($fp, $string);fclose($fp); $emailbody=file_get_contents('newsletter.html'); $emailbody=str_replace('VARIABLE',$name,$emailbody);$emailbody=str_replace('VARIABLE2',$title,$emailbody);$emailbody=str_replace('VARIABLE3',$email3,$emailbody);$emailbody=str_replace('VARIABLE4',$description,$emailbody); echo $_POST["email3"]; mail($_POST["email3"],'Your registration was confirmed ',$emailbody);} ?>
see if your get any email printed out and email sent to the recipient email..
Thanks for your time.
It sends the email now but it sends it like in html code
HTML:
<html>
<head>
<title></title>
</head>
<body>
<p>
 </p>
<table style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);" width="600">
<tbody>
<tr>
<td style="margin: 0px;">
<div style="font-family: Verdana; font-size: 10px; color: rgb(51, 51, 51); text-align: right;">