Title: To User Variable
Last modified: April 26, 2017

---

# To User Variable

 *  [st5uzmloopsqz7dr9egp](https://wordpress.org/support/users/st5uzmloopsqz7dr9egp/)
 * (@st5uzmloopsqz7dr9egp)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/to-user-variable/)
 * I am trying to add a code that would put the to user’s name at the top of the
   body so I could have “Dear User” at the top, for example. I saw your old post
   from a couple years ago about why that isn’t available. I only plan on sending
   to one user at a time, random messages. So is there a way I could pull this off?
   Thanks.!

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

 *  Thread Starter [st5uzmloopsqz7dr9egp](https://wordpress.org/support/users/st5uzmloopsqz7dr9egp/)
 * (@st5uzmloopsqz7dr9egp)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/to-user-variable/#post-9070782)
 * This is for custom emails only if that matters … I’m not using the notification
   emails …
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/to-user-variable/#post-9071702)
 * There isn’t a keyword replacement for the user even when only sending to one 
   user. The only thing which is different when sending to a single user is the 
   recipient’s email address is placed in the “To” header instead of the “Bcc” header.
 *  Thread Starter [st5uzmloopsqz7dr9egp](https://wordpress.org/support/users/st5uzmloopsqz7dr9egp/)
 * (@st5uzmloopsqz7dr9egp)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/to-user-variable/#post-9071792)
 * I wonder if there might be a way to make it happen? I’m not a php developer but
   I know front end code and familiar with php just not an expert. Maybe you can
   give me a pointer in the right direction to write something to add on to this
   for my client? Thanks!
 *  [pdtemplatezone](https://wordpress.org/support/users/pdtemplatezone/)
 * (@pdtemplatezone)
 * [9 years ago](https://wordpress.org/support/topic/to-user-variable/#post-9120633)
 * Hi Guys.
 * First of all, thank you for a great email solution. I know how much time you 
   had to spend creating it and updating it this far. Much appreciated.
 * I modified the script so that it consist now of the %MEMBER_NAME% variable so
   that the email is more “personal”.
 * However, I’m not that good in PHP, so I don’t know if the code is perdect, but
   hey, it’s working for me! 🙂
 *  Thread Starter [st5uzmloopsqz7dr9egp](https://wordpress.org/support/users/st5uzmloopsqz7dr9egp/)
 * (@st5uzmloopsqz7dr9egp)
 * [9 years ago](https://wordpress.org/support/topic/to-user-variable/#post-9128592)
 * Would you mind sharing your code for the rest of us pdtemplatezone. I’m having
   the same issues. Thanks.
 *  [pdtemplatezone](https://wordpress.org/support/users/pdtemplatezone/)
 * (@pdtemplatezone)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/to-user-variable/#post-9566216)
 * Should I upload the complete modified email-users.php? Am I allowed to?
 *  Thread Starter [st5uzmloopsqz7dr9egp](https://wordpress.org/support/users/st5uzmloopsqz7dr9egp/)
 * (@st5uzmloopsqz7dr9egp)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/to-user-variable/#post-9566248)
 * Maybe you could copy and paste the snippet if it’s not that big and where to 
   add it?
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/to-user-variable/#post-9566321)
 * If you want to send it to me at mpwalsh8 at gmail dot com I’ll do a diff against
   the subversion repository and look at adding it in if all looks good and doesn’t
   create a support problem.
 *  [pdtemplatezone](https://wordpress.org/support/users/pdtemplatezone/)
 * (@pdtemplatezone)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/to-user-variable/#post-9579924)
 * Hi Mike
 * I emailed you the two files I modified.
 * Thank you for your great plugin 🙂
 * Cheers
    Godfrey

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

The topic ‘To User Variable’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/email-users_a0e0cf.svg)
 * [Email Users](https://wordpress.org/plugins/email-users/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-users/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-users/)
 * [Active Topics](https://wordpress.org/support/plugin/email-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-users/reviews/)

## Tags

 * [user name](https://wordpress.org/support/topic-tag/user-name/)

 * 9 replies
 * 3 participants
 * Last reply from: [pdtemplatezone](https://wordpress.org/support/users/pdtemplatezone/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/to-user-variable/#post-9579924)
 * Status: not resolved