Add here:

    connection.transaction.notes.using_lmtp = true;