How Can I Change Default Reply ToEmail
I want to set the SMTP settings manually instead of using a plugin. I did this using this resource. However, there is a problem. If the user clicks Reply, a different e-mail appears. Probably I've described this before with the plugin. However, I cannot remove it. If I make a new definition as below, it creates a new reply e-mail. Therefore, the past is not erased. What I want: If the user clicks to reply to the incoming e-mail, only smtp_from e-mail should appear.
My Codes:
wp-config.php
define ('SMTP_FROM', '[email protected]');
...
function.php
add_action ('phpmailer_init', 'my_phpmailer_example');
function my_phpmailer_example ($phpmailer) {
$phpmailer- From = SMTP_FROM;
//My new definition.
$phpmailer-addReplyTo('[email protected] ',' Information ');
...
}