My email keeps on going to spam folder, I have wp-smtp installed but no luck. Here’s my code,
wp-smtp settings https://postimg.org/image/yry5n2vuf/
<?php
$Input = (object)$_GET;
$Email = $Input->inf_field_Email;
$FirstName = $Input->inf_field_FirstName;
$LastName = $Input->inf_field_LastName;
if ( ! email_exists( $Email )) {
$Password = wp_generate_password( $length=12, $include_standard_special_chars=false );
wp_create_user( $Email, $Password, $Email );
$Domain = preg_replace( "/^www\./" , "" , $_SERVER["SERVER_NAME"] );
$Title = "Welcome : New Member";
$Message = "Hi ". $FirstName .",\n \nTom Cronin here, co-founder of Science of Stillness. \n \nI just wanted to send you a quick message to welcome you to the Science of Stillness community! \n \n Thanks so much for putting your faith in us. \n \nTo get started, simply follow the access details you received in the order confirmation email. Along with the confirmation email, you should have also received a receipt from One Great Find. Save this with your records. \n \nI am ao so excited to have you on board John! \n \nSincerely, \n \nTom \n \nUsername: " . $Email . " \nPassword: " . $Password . " \nClick the following link to visit our member's area, https://stillnessproject.com/";
$headers = "From: [email protected]\r\n";
$headers .= "Reply-To: [email protected]\r\n";
$headers .= "Return-Path: [email protected]\r\n";
$headers .= "CC: {$Email}\r\n";
$headers .= "BCC: {$Email}\r\n";
wp_mail( $Email , $Title , $Message , $headers );
}
?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]