Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #337677

    Hi there,

    Is there a solution to show the senders email address as “From” in emails?
    Currently it shows the defaults website email as “from”.
    Which files do I have to modify to achieve that?

    Thanks in advance,
    Darneson

    #338827

    Hey Darneson!

    Try adding this at the very end of your theme / child theme functions.php file:

    function change_cf_from() {
    	return " (Email address hidden if logged out) ";
    }
    add_filter('avf_form_from', 'change_cf_from', 10);

    Cheers!
    Josue

    #338958

    Hi Josue,

    thanks for your reply, but it’s actually not a static email address I want as the “From” in the emails sent to “Admin (Siteowner)”.
    What I’m trying to achive is, that the email sent to the admin/siteowner through the form shows the email address of the customer which he entered into the form.
    Any solution for that?

    Thanks in advance.
    Best,

    Dominik

    #338975

    For me, the Contact form element of the ALB in it’s default state does this. Inside the Contact form configuration screen, the element that captures the email address Form Element Label is ‘E-mail’, the Element Type is ‘Form Element: Text Input’ and the Form Element Validation is ‘Valid E-Mail address’. Why don’t you try with the default element, and if that’s not working, deactivate all plugins, check you’re on current versions of WordPress, the theme, etc.

    This could also be down to how your email client interprets the information sent to it.

    • This reply was modified 10 years, 2 months ago by Sandie.
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Email from Contact form show Sender's mail address’ is closed to new replies.