Tagged: CONTACT FORM
Hi guys,
I moved my new website from my staging site to the new domain.
When I use the contact form, I receive a mail: New message, send from <old website domain>
Where can I change this?
Sincerely,
Morticka
Hey Morticka,
Enfold gets the setting from WordPress, but I’ve looked at your WordPress > Settings > General > WordPress Address
and it looks correct.
Does the message say “sent from” : “wordpress”@[old website domain]?
Try adding this code to the end of your functions.php file in Appearance > Editor:
add_filter( 'wp_mail_from', 'my_mail_from' );
function my_mail_from( $email ) {
return "change-this-to-your-email-address";
}
Best regards,
Mike
Hi Mike,
I’m so sorry, I made a mistake!! I was checking the wrong email address after 10 hours nonstop work. Checked it again today, everything works fine. You can close this one, or remove it completely.
Again, I’m sorry to have wasted your time :(
Sincerely,
Morticka