Support » Plugin: Email Users » Group Emails – custom greeting with varaibles

  • zehriya


    Is there a way to custom the greeting to the person receiving it to see their own name.

    So instead – Dear group,
    it will say – Dear YOUR NAME

    • This topic was modified 3 years ago by zehriya.
Viewing 1 replies (of 1 total)
  • Plugin Author Mike Walsh


    No, this isn’t possible UNLESS you set the BCC limit to one (1) and create a filter with some custom code in it.

    By default Email Users tries to send as few messages as possible so when an email is actually sent, there are many, potentially hundreds, email addresses in the BCC header. There isn’t anyway to do this and send each user a unique email.

    IF you set the BCC limit to one (1) then each recipient receives a separate email. This isn’t recommended but it is possible and when sending email this way, the lone recipient appears int the TO header instead of the BCC header with other email addresses.

    It may be possible to use the mailusers_before_wp_mail filter combined with the BCC limit set to one (1). The filter could examine the TO header and then query the WordPress user data for the email address to get the username or first/last names and update the email body as part of the filter. This doesn’t exist right now but I think it would be possible.

    • This reply was modified 3 years ago by Mike Walsh.
Viewing 1 replies (of 1 total)
  • The topic ‘Group Emails – custom greeting with varaibles’ is closed to new replies.