Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Wrapper libraries >

Xero API EmailInvoice not working as expected

Started by Margie Caramat -   in Wrapper libraries


I am using the Xero API EmailInvoice via this source code line:


However, we are noticing the following behaviour:

(1) The invoice's sender is "messaging-service@post.xero.com" instead of the Xero Account's email address whom the private application is added onto. When we send invoice from Xero, the from address is something like Margie Caramat <messaging-service@post.xero.com>. But when sent from the API, the sender name is not there.

(2) The resulting email has duplicate To entries, even though the customer has only 1 email address and there is no additional contact, still entries in the To doubles up.

To: test@yahoo.com, test.yahoo.com

Any idea why this is happening? This has not been the case previously.

Any help will be greatly appreciated.