diff --git a/ChangeLog b/ChangeLog
index a5b8e442b9ebfdc7020c42aa4d53a3983894ca22..52840dd2cc265689833a8620306cf98d8bc47270 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -53,6 +53,7 @@ New experimental modules:
 - Fix: No images into product description lines as PDF generation does
   not work with this.
 - Fix: Errors weren't being shown in customer's & supplier's orders
+- Fix: Lastname wasn't being recorded in xinputuser emailing module
 
 For developers:
 - New: Add webservice for thirdparty creation and list.
diff --git a/htdocs/core/modules/mailings/xinputuser.modules.php b/htdocs/core/modules/mailings/xinputuser.modules.php
index 994bac804c42dea89e802905ef3127fe5cd7b701..12648f147fdbb5b190f72ed9cdb4bfb0a3d61641 100644
--- a/htdocs/core/modules/mailings/xinputuser.modules.php
+++ b/htdocs/core/modules/mailings/xinputuser.modules.php
@@ -133,7 +133,7 @@ class mailing_xinputuser extends MailingTargets
 			{
 				$cibles[] = array(
            			'email' => $email,
-           			'name' => $name,
+           			'name' => $lastname,
            			'firstname' => $firstname,
 					'other' => $other,
                     'source_url' => '',