Email template/notifications

This topic contains 9 replies, has 6 voices, and was last updated by  ed@dupecreative.com 8 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #32629

    Strong Coffee
    Full Member
    Post count: 124

    I want to be able to see the email address from an inquiry. I added [#user_email#] to the template for the email inquiry in the notifications but what is displayed in my email is the actual shortcode instead of the email address.

    #32646

    Simone
    Expired Member
    Post count: 3515

    I can confirm this is not working, I will put this to the attention of the developers, thanks.

    #32732

    Paolo
    Site Admin
    Post count: 31206

    That shortcode doesn’t work because the person making the enquiry is not always a registered user. Most of the time he’s not, the email is taken from the input field directly.

    For the shortcode to work, the email should be in the database, but it’s not most of the time, cause that’s a contact form that doesn’t save anything in your db.

    The email is present in the reply-to field of the email header so to see it you just need to click reply.

    Let us know,

    Thx

    #39382

    BL Interactive
    Expired Member
    Post count: 83

    I would suggest adding the email to the [#comments#] block as well. I have had to address this with too many clients for it not to be considered an oversight.

    #39403

    BL Interactive
    Expired Member
    Post count: 83

    I had to dig into /geodirectory/geodirectory-functions/custom_functions.php at around line 236

    find:

    $client_message .= '<br>' . __('From :', GEODIRECTORY_TEXTDOMAIN) . ' ' . $yourname . '<br>' . __('Phone :', GEODIRECTORY_TEXTDOMAIN) . ' ' . $inq_phone . '<br><br>' . __('Sent from', GEODIRECTORY_TEXTDOMAIN) . ' - <b><a href="' . get_option('siteurl') . '">' . get_option('blogname') . '</a></b>.';

    Change to:

    $client_message .= '<br>' . __('From :', GEODIRECTORY_TEXTDOMAIN) . ' ' . $yourname . '<br>' . __('Phone :', GEODIRECTORY_TEXTDOMAIN) . ' ' . $inq_phone . '<br>' . __('Email :', GEODIRECTORY_TEXTDOMAIN) . ' ' . $youremail . '<br><br>' . __('Sent from', GEODIRECTORY_TEXTDOMAIN) . ' - <b><a href="' . get_option('siteurl') . '">' . get_option('blogname') . '</a></b>.';
    #45755

    ed@dupecreative.com
    Free User
    Post count: 5

    Can the developers confirm whether this is OK to implement? I’m having similar trouble with my site (surecare.co.uk) and really need the ‘Reply to’ email address to show in the [#comments#] section.

    Thanks!

    #45834

    Paolo
    Site Admin
    Post count: 31206

    this is ok to change, however will be lost after every update.

    Just FYI…

    #45902

    ed@dupecreative.com
    Free User
    Post count: 5

    Gotcha, thanks 🙂

    #46071

    otfordnet
    Expired Member
    Post count: 22

    Stiofan added something for this to GeoTheme:

    you can add this section
    <p>Sender Email : [#sender_email#]</p>
    OR
    just use
    [#sender_email#]

    Not sure if this is already in GeoDirectory.

    #46296

    ed@dupecreative.com
    Free User
    Post count: 5

    Hi,

    Thanks, but sadly this doesn’t work for me 🙁

    Ed

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket