Support

Home Forums Event Espresso Premium How do i change the name of the from email?

How do i change the name of the from email?

Posted: November 16, 2022 at 2:25 pm

Viewing 2 reply threads


trainadesign

November 16, 2022 at 2:25 pm

I’m currently editing the “Email Registration Approved Template”.

I would like to change the from field to be the company name “Buck Institute” instead of “Webserver”, when I change the “from” field on the template it only changes the “Reply-to” email and not the “from” email.

example below:
from: Webserver <Webserver@buckinstitute.org>
reply-to: Buck Institute Events <Events@buckinstitute.org>

also when i attempt to change the “from” field, it gives me an error:
An error has occurred:
The From field has at least one string that is not a valid email address record. Valid emails are in the format: "Name <email@something.com>" or "email@something.com" and multiple emails can be separated by a comma.

even when that’s the exact string i’m attempting to use “Buck Institute <webserver@buckinstitute.org>”


Tony

  • Support Staff

November 17, 2022 at 4:07 am

Hi there,

Within EE’s code it sets the FROM and REPLY-TO headers with the exact same value:

$this->_ensure_has_from_email_address();
$from    = $this->_from;
$headers = array(
    'From:' . $from,
    'Reply-To:' . $from,
    'Content-Type:text/html; charset=utf-8',
);

Which means if the above is being changed to Webserver <Webserver@buckinstitute.org>, it’s happening outside of Event Espresso after it has passed the email over to wp_mail() to do its thing.

How is your site set up to send email? I’m assuming using your host mail server? No SMTP plugins etc?

Who is your host?


trainadesign

November 17, 2022 at 9:47 am

you’re right, looks like it was being changed with the SMTP plugin, thank you for the help!

Viewing 2 reply threads

The support post ‘How do i change the name of the from email?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso