Creating and sending an invoice