Sender Name Coming as Me in Emails
-
I have written a code for sending server side email without using PHP but not using any plugins.
function custom_wp_mail_smtp( $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host = 'your-smtp-hostname';
$phpmailer->Port = your-smtp-port;
$phpmailer->SMTPAuth = true;
$phpmailer->SMTPSecure = 'your-smtp-encryption';
$phpmailer->Username = '[email protected]';
$phpmailer->Password = 'your-email-password';
}
add_action( 'phpmailer_init', 'custom_wp_mail_smtp' );This code is working perfectly with contact form 7. But when i am receiving emails its showing sender’s name as “Me“. How can i change that with the name of the Sender.
The page I need help with: [log in to see the link]
- The topic ‘Sender Name Coming as Me in Emails’ is closed to new replies.