I want to send this mail without using PHPMailer But I need to use smtp authentication.
Here is my code
config.php
function reg_verify($code, $email)
{ $subject = "Your Verification Code At example.com";
$message = "Your Verification Code is <b>".$code."</b>";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= 'From: <admin@example.com>' . "\r\n";
mail($email, $subject, $message, $headers);
return $code;
}
register.php
$code = reg_verify("Ycd4123", "user@example.com");
Can I do it from ini_set()