Title: Returned Value for Email is adding extra characters
Last modified: March 30, 2023

---

# Returned Value for Email is adding extra characters

 *  Resolved [eli0086](https://wordpress.org/support/users/eli0086/)
 * (@eli0086)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/returned-value-for-email-is-adding-extra-characters/)
 * I have a custom function that returns the email of the post’s author. When I 
   use the “Send Email” action, I’m using the “Function Return Value” option from
   that custom function.
 * When I put it in the body of the email, it returns like expected (example@gmail.
   com). But when I try to use that in the “To” email field, it’s returning like
   this:
 * [pexample@gmail.comp](https://wordpress.org/support/topic/returned-value-for-email-is-adding-extra-characters/pexample@gmail.comp?output_format=md)(
   with a “p” on either side of the email address.
 * Any idea why this is happening and if it can be solved so it only returns the
   email without the extra characters?

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

 *  Thread Starter [eli0086](https://wordpress.org/support/users/eli0086/)
 * (@eli0086)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/returned-value-for-email-is-adding-extra-characters/#post-16619224)
 * Want to update what I’ve found on this issue. If I use the same function to generate
   a coupon code and send an email, the issue does not occur. Meaning, it seems 
   to be unique to the “Send Email” action and integration. Sending an email with
   Woocommerce does not produce the issue of adding the “p” on either side of the
   email address.
 *  Plugin Contributor [Uncanny Automator](https://wordpress.org/support/users/uncannyautomator/)
 * (@uncannyautomator)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/returned-value-for-email-is-adding-extra-characters/#post-16623694)
 * Hi [@eli0086](https://wordpress.org/support/users/eli0086/) ,
 * Thanks for alerting us to the issue. There was a change in the last release that
   could do this with some action tokens related to a formatting change.
 * We have made a fix file available at [https://we.tl/t-mioElbdZJe](https://we.tl/t-mioElbdZJe).
   Download that, then upload it to your site by FTP and replacing the existing 
   version of the file at this path:
 * wp-content/plugins/uncanny-automator/src/core/lib/recipe-parts/actions/trait-
   action-tokens.php
 * After the change, please let us know if you still see the issue. We will include
   the change in the next release.
 *  Thread Starter [eli0086](https://wordpress.org/support/users/eli0086/)
 * (@eli0086)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/returned-value-for-email-is-adding-extra-characters/#post-16630788)
 * That worked perfectly! Thank you for your help!
    -  This reply was modified 3 years, 3 months ago by [eli0086](https://wordpress.org/support/users/eli0086/).
 *  Plugin Contributor [Uncanny Automator](https://wordpress.org/support/users/uncannyautomator/)
 * (@uncannyautomator)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/returned-value-for-email-is-adding-extra-characters/#post-16631127)
 * Excellent, thanks for confirming!

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

The topic ‘Returned Value for Email is adding extra characters’ is closed to new
replies.

 * ![](https://ps.w.org/uncanny-automator/assets/icon.svg?rev=2769432)
 * [Uncanny Automator - Easy Automation, Integration, Webhooks & Workflow Builder Plugin](https://wordpress.org/plugins/uncanny-automator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/uncanny-automator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/uncanny-automator/)
 * [Active Topics](https://wordpress.org/support/plugin/uncanny-automator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/uncanny-automator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/uncanny-automator/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Uncanny Automator](https://wordpress.org/support/users/uncannyautomator/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/returned-value-for-email-is-adding-extra-characters/#post-16631127)
 * Status: resolved