Alternate FROM and REPLY-TO email than WordPress Admin Email

WordPress Event Management, Calendars & Registration Forums General Question Alternate FROM and REPLY-TO email than WordPress Admin Email

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

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

    Hello,

    I’ve tried every solution on this forum to no avail. The customers still receive an email that has the WordPress Admin email (which is different because it’s for “admin” purposes rather than “event” purposes).

    I used the plugin that is suppose to set the booking emails. But that plugin only works for the emails sent to people who organize the event (as I set).

    I used the following code in my functions.php of my theme (is this not correct?) which I think forces the bookee’s email to use the admin emails set by the plugin.

    function my_event_admin_email( $email ){
          //Change $email;
          return $email;        
    }
    add_filter( 'eventorganiser_admin_email', 'my_event_admin_email' );
    

    So I’m not sure what else to do, and hopefully you can help!

    Thanks,

    Wes

    Westley Wamsley
    #32439

    Hi Wes,

    That hook will populate the from header of the email sent to bookee. However, those emails are sent through wp_mail() and so any plugin hooking into that could potentially change the headers or over-ride the ‘from’ address.

    In particular, an SMTP plug-in might over-ride the from address if that is configured. Do you have any plug-ins that might be over-riding that?

    The WP Mail Logging plug-in would be very useful here, as it it will show you the details of the email, so you can double check the headers that of the email.

    Stephen Harris
    #32461

    Hi Stephen,

    Thanks for the reply! I currently use the MailGun plugin to handle the sending of emails. It does have a a feature to allow overriding the email address, but it’s currently disabled. I just installed the WP Logging plugin you recommended, so I will report back once more tickets are purchased.

    I’m rusty on my PHP, but what email does that hook pull? Can I modify that hook to a specific email address?

    Thanks,

    Wes

    Westley Wamsley
    #32538

    Not sure I follow your question. By default the email is the admin email, as per WordPress’ settings, but you can use that filter to change it to any email.

    Stephen Harris
Viewing 4 posts - 1 through 4 (of 4 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.