Admin address problem

This topic contains 7 replies, has 2 voices, and was last updated by  Stephen Harris 4 years, 5 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #36525

    Those who submit events are getting a confirmation e-mail from the first admin who build the site. And hence if the user replies, that’s where the replies go. I can’t seem to find a way to control the “From” address for email to the submitter.

    George Carvill
    #36538

    Hi George,

    By default the plugin uses the site admin email (you can change that in your WordPress site’s general settings).

    They may have over-ridden that using a filter such as eventorganiser_admin_email. Your best bet is to search the code-base for the developer’s email address. (It could be in the theme’s functions.php or a utility plug-in – I would just search the entire wp-content folder.

    Stephen Harris
    #36542

    You are correct that it is using the site admin e-mail. We have changed that as a workaround.

    But in “Event Submission Forms” on the “Notification” tab, the first field is a checkbox labeled “Notify admin.” Immediately below that is a field labeled “”Admin email.” My expectation from these two fields is that (A) the notification will go to the address in that field and that (B) the submitter will get a confirmation e-mail also from that address.

    As a user I would like to have two e-mail fields, one to be used as the address to send notifications of new events to, and the second to be the “from” address of the confirmation e-mail. That way if the submitter wants to reply to the confirmation e-mail the reply will go where I want it to.

    George Carvill
    #36582

    Hi George,

    Yes, that should be what happens.

    The “Your event has been submitted” email should be sent from the admin email (in the settings), and an admin notification email should be sent to that address.

    Is that the behaviour you are seeing. Or are you wanting to have those as two different emails?

    Stephen Harris
    #36630

    The “Your event has been submitted” email should be sent from the admin email (in the settings),

    That is true — the WP master setting

    and an admin notification email should be sent to that address.

    The admin notification is sent to the address on the notification tab on your form.

    I have one person responsible for events. I want that person to get the notifications and I want the “Your Event Has Been Submitted” to come from that address too, so that a reply goes there. All that and have the master site admin address be something else.

    George Carvill
    #36640

    Hi George,

    This should set the ‘from’ address for FES:

    add_filter( 'eventorganiser_fes_admin_email', function($email){
       return 'email@example.com';
    }, 10);
    
    Stephen Harris
    #36661

    Thanks. But I have no idea where to put this code.

    George Carvill
    #36665

    It’s best suited in a utility plug-in, but will work in a (child) theme’s functions.php, see https://wp-event-organiser.com/blog/tutorial/where-should-i-put-code-from-the-tutorials/ for more details.

    Stephen Harris
Viewing 8 posts - 1 through 8 (of 8 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.