Title: Customise from email
Last modified: August 30, 2016

---

# Customise from email

 *  Resolved [jbx](https://wordpress.org/support/users/jbx/)
 * (@jbx)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/customise-from-email/)
 * Is there a way to customise the ‘from’ email address used by the Restaurant Reservation
   plugin?
 * For some reason it uses the admin email from wordpress, which is typically used
   as a destination (notification of updates, new users etc.) not originator. In
   my case this is a completely different domain (a gmail account of the tech admin/
   webmaster), while people who book a table at a restaurant need to receive it 
   from an [info@restaurant-domain.com](https://wordpress.org/support/topic/customise-from-email/info@restaurant-domain.com?output_format=md)
 * From the Notification settings I can see there is a reply-to address, but setting
   this doesn’t change the from address. Is there a way to fix this?
 * [https://wordpress.org/plugins/restaurant-reservations/](https://wordpress.org/plugins/restaurant-reservations/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/customise-from-email/#post-6820979)
 * Hi jbx,
 * I’ve set it this way to ensure wider compatibility with different server environments.
   Many email servers restrict the From email address they’ll use when sending email,
   and the email in WordPress settings tends to be the most reliable.
 * I’ve written a [tiny addon](https://gist.github.com/NateWr/fbbe6f0eafa7359de161)
   to override this if you want to do so.
 * To use it, click the Download Gist button on the top right, open the file in 
   a text editor, and change the email address on [this line](https://gist.github.com/NateWr/fbbe6f0eafa7359de161#file-rtb-override-notification-from-email-php-L32)
   to whatever you’d like. Then save the file, upload it to your `/wp-content/plugins/`
   directory and activate it from the Plugins menu.
 *  Thread Starter [jbx](https://wordpress.org/support/users/jbx/)
 * (@jbx)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/customise-from-email/#post-6821024)
 * Thanks. I presume I can just paste that in my theme’s `functions.php` file instead
   of having another plugin? Its anyway specific to my site (the email is hardcoded)
   and I could actually get that from a field I make configurable in the Theme options.
 *  [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/customise-from-email/#post-6821037)
 * Sure, if you’d prefer. It won’t be any faster than using a plugin. Just make 
   sure you remember to port the code over if you switch themes in a couple years!
   🙂
 *  Thread Starter [jbx](https://wordpress.org/support/users/jbx/)
 * (@jbx)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/customise-from-email/#post-6821150)
 * Yes. Its just that I want it to be configurable and making it configurable through
   my theme’s options makes `functions.php` the best place to have it.
 * Tried it out, seems to be working fine.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Customise from email’ is closed to new replies.

 * ![](https://ps.w.org/restaurant-reservations/assets/icon-128x128.png?rev=2205491)
 * [Five Star Restaurant Reservations - WordPress Booking Plugin](https://wordpress.org/plugins/restaurant-reservations/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restaurant-reservations/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restaurant-reservations/)
 * [Active Topics](https://wordpress.org/support/plugin/restaurant-reservations/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restaurant-reservations/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restaurant-reservations/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [jbx](https://wordpress.org/support/users/jbx/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/customise-from-email/#post-6821150)
 * Status: resolved