fbpx

Free Content Marketing eBook – A Complete How-To Content Marketing Guide for Your Business or Brand


[insert_php]
print ‘‘;

$form= ‘

Name:
Website:
E-mail*:

‘;

print $form;

$to= “content@godotmedia.com”;
$from= $_POST[“email”];
$subject = “e-Book downloaded from godotmedia”;
$body = “”;
if(isset($_POST[“username”])) { $body.= “Name: ” . $_POST[“username”] . ”

“; }
if(isset($_POST[“website”])) { $body.= “Website: ” . $_POST[“website”] . ”

“; }
if(isset($_POST[“email”])) { $body.= “Email: ” . $_POST[“email”] . ”

“; }

$headers = ‘MIME-Version: 1.0’ . “\r\n”;
$headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “\r\n”;
$headers .= ‘From: ‘ . $email . “\r\n”;
$headers .= ‘Reply-To: noreply@godotmedia.com’ . “\r\n”;
wp_mail($to, $subject, $body, $headers);

[/insert_php]