wp_mail not sending email on custom function
I have updated my wordpress to the new 5.7 version, I have a function in my functions.php file to send an email.
The thing is, i have used this function before and it all worked well. Now after upgrading, i am unable send email from my custom function send_email()
Custom email function in functions.php
function send_email(){
$from = Admin [email protected];
$to = [email protected];
$subject = Lamza Activation;
$activationEmail = '';
$headers = From: . $from . PHP_EOL;
$headers = array('Content-Type: text/html; charset=UTF-8');
wp_mail($to, $subject, $activationEmail, $headers);
}
I keep getting false value.
I am able to send test email using Easy WP SMTP but I can not on my function.
I need to know what I need to change, configurations or is it my human error.
Thanks yall