Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #793050

    Hi Kriesi team,

    I got another issue. I searched the forum but didn’t get to a solution that fits my problem.

    Here’s what I got now:

    • SMTP Plugin with static e-mail adress
    • Your contact form
    • e-mails don’t go to spam, but the recipient can’t use “reply to” function with his e-mail client

    And that’s what I want to achieve:

    • No more using of SMTP Plugin
    • Your contact form
    • static “from” e-mail adress which has the same domain as the website itself
    • “reply to” line in e-mail header with the value of the user’s e-mail address, which allows the recipient to directly reply to the mail

    I hope I didn’t overlooked that in the forum and that you can help me with my problem.

    Thank you in advance and best wishes,

    Andreas

    #793206

    Hey andreasobermeier,

    Well, you can use other plugins to accomplish the email function like the Mailchimp..

    Best regards,
    John Torvik

    #793346

    Hey John,

    thanks for your answer.

    Isn’t it possible to do that without another plugin? Like adding some code to my child theme’s function.php?

    Using this code snippet here https://kriesi.at/support/topic/contact-form-messages-not-sent/#post-389784 didn’t work unfortunately.

    So for me it would be fine to have a hard coded “from” mail, but a “reply to” function in the e-mail header which is filled with the e-mail adress of the user’s input.

    Still hope there’s a possibility to do this.

    Best wishes,

    Andreas

    #793829

    Hi Andreas,

    Here are the thread you might want to look into:
    https://kriesi.at/support/topic/change-the-from-email-on-a-contact-form/#post-251496

    https://kriesi.at/support/topic/how-to-change-email-sender-name/

    I’m not sure about this part “a “reply to” function in the e-mail header which is filled with the e-mail adress of the user’s input”, why do you need the “reply to” to the user?

    Best regards,
    Victoria

    #793851

    Hi Victoria,

    thanks for the links. I’ll have a look at it later today.

    Here’s the thing: e mails, which are sent directly from enfold contact form without using SMTP are getting to junk email folder and so mostly lost.
    When there is a static “from mail” (like (Email address hidden if logged out) ), emails get to the regular income folder, but I cannot directly reply to the customer, which is annoying. If there would be a “reply to” to the user, emails would get to me and I can directly reply to the customer without having to copy-paste the email address from the message content area.

    Hope you get my point.

    Best wishes,

    Andreas

    #793981

    Hi Andreas,

    Thank you for the explanation :) We normally recommend using SMTP plugins because Enfold uses WordPress mail functionality, which often gets blocked or to emails go to junk folder like you know. Some plugins provide better configuration options and might be better to use them.

    Best regards,
    Victoria

    #794099

    Hi Victoria,
    yeah I got that and am using a SMTP plugin. But since we’re getting a lot of mails, it’s pretty annoying to loose track of them, because we have to create a new mail instead of just replying to them.

    I found the code lines below, but they did not work. (They are from this thread: https://kriesi.at/support/topic/contact-form-messages-not-sent/#post-389784).

    add_filter( 'avf_form_from', 'enfold_customization_contact_form_etc', 10, 3 );
    function enfold_customization_contact_form_etc( $from, $p1, $p2 ) {
    	global $enfold_custom_from_header;
    	$enfold_custom_from_header = $from;
    }
    add_filter( 'avf_form_mail_header', 'enfold_customization_contact_form_etc2', 10, 3 );
    function enfold_customization_contact_form_etc2( $header, $p1, $p2 ) {
    	global $enfold_custom_from_header;
    	$header .= 'Reply-To: ' . $enfold_custom_from_header . '\r\n';
    	return $header;
    }

    Is there any chance to get this working or don’t you provide this kind of support (which would be okay)?

    Best regards,

    Andreas

    #794518

    Hi,

    add_filter( 'avf_form_from', 'enfold_customization_contact_form_etc', 10, 3 );
    function enfold_customization_contact_form_etc( $from, $p1, $p2 ) {
    	global $enfold_custom_from_header;
    	$enfold_custom_from_header = $from;
    }
    add_filter('avf_form_mail_header', 'avia_change_autoresponder_from', 10, 3);
    function avia_change_autoresponder_from($header, $new_post, $form_params){
    global $avia_config;
    if(!empty($avia_config['autoresponder_active']))
    {
            global $enfold_custom_from_header;
            $header .= 'Reply-To: ' . $enfold_custom_from_header . "\r\n";
    }
    else
    {
            $avia_config['autoresponder_active'] = true;
    }
    return $header;
    }

    Try that one, let us know if it is working for you.

    Best regards,
    Basilis

    #794522

    Hi Basilis,

    thank you for your answer.

    Unfortunately with this code, the email even fails to send at all.

    Although it would be a real pity, it’s okay if that’s not going to work.

    Just let me know if you have another idea.

    In the meantime, thanks for your support.

    Best wishes,

    Andreas

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.