<![CDATA[ ActiveationEmail - display username and fullname in email - My Forums]]> https://forums.modx.com/thread/?thread=95179 <![CDATA[ActiveationEmail - display username and fullname in email]]> https://forums.modx.com/thread/95179/activeationemail---display-username-and-fullname-in-email#dis-post-515295
Try as I might I can not work out how I address the email to the person with their full name but also include the username as a reminder.

thanks

Jake]]>
shepo Nov 20, 2014, 09:14 AM https://forums.modx.com/thread/95179/activeationemail---display-username-and-fullname-in-email#dis-post-515295
<![CDATA[Re: ActiveationEmail - display username and fullname in email]]> https://forums.modx.com/thread/95179/activeationemail---display-username-and-fullname-in-email#dis-post-515420
]]>
BobRay Nov 21, 2014, 09:28 PM https://forums.modx.com/thread/95179/activeationemail---display-username-and-fullname-in-email#dis-post-515420
<![CDATA[Re: ActiveationEmail - display username and fullname in email]]> https://forums.modx.com/thread/95179/activeationemail---display-username-and-fullname-in-email#dis-post-515355
This works for me!

I tried adding it to the array but your first line is the one I could not get right!

Thanks again

Jake]]>
shepo Nov 21, 2014, 02:39 AM https://forums.modx.com/thread/95179/activeationemail---display-username-and-fullname-in-email#dis-post-515355
<![CDATA[Re: ActiveationEmail - display username and fullname in email (Best Answer)]]> https://forums.modx.com/thread/95179/activeationemail---display-username-and-fullname-in-email#dis-post-515351
Around line 128 of the plugin:

replace this

$fields = array(
    'username' => $name,
    'sitename' => $siteName,
    'activationURL' => $activeURL,
    'deactivationURL' => $deActiveURL,
);


with this:

$fullName = $profile->get('fullname');

$fields = array(
    'fullname' => $fullName,
    'username' => $name,
    'sitename' => $siteName,
    'activationURL' => $activeURL,
    'deactivationURL' => $deActiveURL,
);


Be sure to put this in the tag: &useFullname=`0` otherwise you may get the full name twice.]]>
BobRay Nov 21, 2014, 02:13 AM https://forums.modx.com/thread/95179/activeationemail---display-username-and-fullname-in-email#dis-post-515351
<![CDATA[Re: ActiveationEmail - display username and fullname in email]]> https://forums.modx.com/thread/95179/activeationemail---display-username-and-fullname-in-email#dis-post-515318
Yes tried +fullname +firstname (custom field) I just assumed like you it would work

Cheers Bob

Jake]]>
shepo Nov 20, 2014, 11:56 AM https://forums.modx.com/thread/95179/activeationemail---display-username-and-fullname-in-email#dis-post-515318
<![CDATA[Re: ActiveationEmail - display username and fullname in email]]> https://forums.modx.com/thread/95179/activeationemail---display-username-and-fullname-in-email#dis-post-515313 Let me know if that doesn't work.]]> BobRay Nov 20, 2014, 11:26 AM https://forums.modx.com/thread/95179/activeationemail---display-username-and-fullname-in-email#dis-post-515313