To send an email in WordPress without using plugins, you can use the native PHP function
wp_mail() which is available in WordPress. Here are the steps to send an email:
1 2 3 4 5 6 7 8 9 10
<?php $to = '[email protected]'; $subject = 'Email Subject'; $body = 'Email Body'; $headers = array('Content-Type: text/html; charset=UTF-8'); // Send email wp_mail( $to, $subject, $body, $headers ); ?>
[email protected] with the email address where you want to send the email. Adjust the subject and body of the email as per your requirements.
Note: Ensure that your WordPress installation has proper email configuration, such as SMTP settings, to ensure successful email delivery.