Send emails in Mailgun for new payments in Xero
Stay updated on your financial status with this streamlined workflow. When a new payment is recorded in Xero, an email is swiftly dispatched via Mailgun, alerting you or the intended recipient about the transaction. This automation not only eliminates the need for constant manual checks but also ensures you never miss an update about your payments. Save time, maintain financial precision and keep your communication relevant and timely using this workflow.
- When this happens...

New PaymentTriggers when you receive a new payment.TriggerPolling - automatically do this!

Send EmailSends an email using your Mailgun account.ActionWrite
- Free forever for core features
- 14 day trial for premium features & apps
More things you can do with Xero and Mailgun
Discover other triggers and actions you can use with Xero and Mailgun
- OrganizationRequired
- Days_overdueRequired
Try ItTriggerThis is the start of your ZapPollingZapier checks for new data every 15 min on the Free plan- Trigger_info
- OrganizationRequired
- PayRun Status
- PayRun Period Start Date
- PayRun Period End Date
Try ItTriggerThis is the start of your ZapPollingZapier checks for new data every 15 min on the Free plan- OrganizationRequired
- Purchase Order Status
Try ItTriggerThis is the start of your ZapPollingZapier checks for new data every 15 min on the Free plan- OrganizationRequired
- Payment_type
Try ItTriggerThis is the start of your ZapPollingZapier checks for new data every 15 min on the Free plan- OrganizationRequired
- Status
- Change
- Contact
- Trigger_preference
- Copy
Try ItTriggerThis is the start of your ZapInstantThis event starts a Zap instantly.- OrganizationRequired
- InvoiceRequired
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Item CodeRequired
- NameRequired
- Description
- Is SoldRequired
- Sales Unit Price
- Sales Account
- Sales Tax Type
- Is PurchasedRequired
- Purchase Description
- Purchase Unit Price
- Purchase Account
- Purchase Tax Type
- Is TrackedRequired
- Inventory Asset Account
- Cost of Goods Sold Account
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Transaction_typeRequired
- ContactRequired
- Bank AccountRequired
- Date
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Contact NameRequired
- Account_number
- Sales Default Account Code
- Purchases Default Account Code
- Contact Requirements
- Primary Person - First Name
- Primary Person - Last Name
- Primary Person - Email
- Secondary Person - First Name
- Secondary Person - Last Name
- Secondary Person - Email
- Include secondary person in emails sent to contact?
- Phone - Country Code
- Phone - Area Code
- Phone Number
- Fax - Country Code
- Fax - Area Code
- Fax - Number
- Mobile - Country Code
- Mobile - Area Code
- Mobile - Number
- Direct Dial - Country Code
- Direct Dial - Area Code
- Direct Dial - Number
- Address__type_of
- Address - Attention
- Address - Line 1
- Address - Line 2
- Address - City/Town
- Address - State/Region
- Address - Postal/Zip Code
- Address - Country
- Tax_number
- Bank Account Number
- Groups
- Contact_number
- Company_number
- Payment Terms - Invoice Due (days)
- Payment Terms - Type for Sales Invoices
- Payment Terms - Bill Due (days)
- Payment Terms - Type for Purchase Invoices
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- ContactRequired
- Date
- Expiry
- Quote Number
- Reference
- Theme
- Title
- Summary
- Currency
- Amounts Are
- Terms
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Warning_message
- Credit Note IDRequired
- Allocation IDRequired
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- Info
- OrganizationRequired
- First NameRequired
- Middle Names
- Last NameRequired
- Date of BirthRequired
- Title
- EmailRequired
- Gender
- Phone Number
- Mobile Number
- Twitter Username
- Job Title
- Classification
- Termination Date
- Termination Reason
- Income Type
- Employment Type
- Status
- CopyEmployment
- Employment Basis
- Start Date
- Payroll Calendar
- Employee Group Name
- Is Authorised to Approve Leave
- Is Authorised to Approve Timesheets
- Super Fund
- Employee Number
- CopyTaxDeclaration
- Tax File Number
- TFN Exemption Type
- Residency Status
- Tax Scale Type
- Tax Offset Estimated Amount
- Upward Variation Tax Withholding Amount
- Approved Withholding Variation Percentage
- CopyBankAccount
- Statement Text
- Account Name
- BSB Number
- Account Number
- Remainder
- CopyAddress
- Address Line 1
- Address Line 2
- City/Suburb
- State/Region
- Postal Code
- Country
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Contact_nameRequired
- Email_address
- Status
- Date
- Due_date
- Currency
- Url
- Attachment
- Branding_theme
- Reference
- Line_items_type
- Item Code
- Description
- QuantityRequired
- Unit Price
- Account
- Tax Rate
- Tracking
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Document Type
- Document ID or NumberRequired
- Paid ToRequired
- Date
- Currency_rate
- AmountRequired
- Reference
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Contact (supplier)Required
- Date
- Delivery_date
- Order Number
- Reference
- Theme
- Currency
- Tax_type
- Delivery_address
- Attention
- Telephone
- Delivery_instructions
- Attachments
- Purchase Order Status
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- Info
- OrganizationRequired
- EmployeeRequired
- First NameRequired
- Middle Names
- Last NameRequired
- Date of BirthRequired
- Title
- EmailRequired
- Gender
- Phone Number
- Mobile Number
- Twitter Username
- Job Title
- Classification
- Termination Date
- Termination Reason
- Income Type
- Employment Type
- Status
- CopyEmployment
- Employment Basis
- Start Date
- Payroll Calendar
- Employee Group Name
- Is Authorised to Approve Leave
- Is Authorised to Approve Timesheets
- Super Fund
- Employee Number
- CopyTaxDeclaration
- Tax File Number
- TFN Exemption Type
- Residency Status
- Tax Scale Type
- Tax Offset Estimated Amount
- Upward Variation Tax Withholding Amount
- Approved Withholding Variation Percentage
- CopyBankAccount
- Statement Text
- Account Name
- BSB Number
- Account Number
- Remainder
- CopyAddress
- Address Line 1
- Address Line 2
- City/Suburb
- State/Region
- Postal Code
- Country
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Quote IDRequired
- Quote Number
- Status
- ContactRequired
- Date
- Expiry
- Reference
- Theme
- Title
- Summary
- Currency
- Amounts Are
- Terms
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Resource typeRequired
- FileRequired
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Search_byRequired
ActionThis is an event a Zap performs.SearchFind existing data in your app- OrganizationRequired
- Email
ActionThis is an event a Zap performs.SearchFind existing data in your app- OrganizationRequired
ActionThis is an event a Zap performs.SearchFind existing data in your app- OrganizationRequired
- Invoice IDRequired
ActionThis is an event a Zap performs.SearchFind existing data in your app- OrganizationRequired
- Search_byRequired
ActionThis is an event a Zap performs.SearchFind existing data in your app- OrganizationRequired
- Search_byRequired
- Contact NameRequired
- Account_number
- Sales Default Account Code
- Purchases Default Account Code
- Contact Requirements
- Primary Person - First Name
- Primary Person - Last Name
- Primary Person - Email
- Secondary Person - First Name
- Secondary Person - Last Name
- Secondary Person - Email
- Include secondary person in emails sent to contact?
- Phone - Country Code
- Phone - Area Code
- Phone Number
- Fax - Country Code
- Fax - Area Code
- Fax - Number
- Mobile - Country Code
- Mobile - Area Code
- Mobile - Number
- Direct Dial - Country Code
- Direct Dial - Area Code
- Direct Dial - Number
- Address__type_of
- Address - Attention
- Address - Line 1
- Address - Line 2
- Address - City/Town
- Address - State/Region
- Address - Postal/Zip Code
- Address - Country
- Tax_number
- Bank Account Number
- Groups
- Contact_number
- Company_number
- Payment Terms - Invoice Due (days)
- Payment Terms - Type for Sales Invoices
- Payment Terms - Bill Due (days)
- Payment Terms - Type for Purchase Invoices
ActionThis is an event a Zap performs.Search or writeFind existing data in your app, or create a new record if no data is found
New Log DataTriggers when new log entries are found in Mailgun. Because this trigger uses polling, multiple log entries may be returned at once during each polling interval.
Try ItTriggerThis is the start of your ZapPollingZapier checks for new data every 15 min on the Free plan
New Bounce EventTriggers when an email permanently or temporarily fails in Mailgun.
Try ItTriggerThis is the start of your ZapInstantThis event starts a Zap instantly.
New Delivery EventTriggers when an email is successfully delivered in Mailgun.
Try ItTriggerThis is the start of your ZapInstantThis event starts a Zap instantly.- Route Expression (Advanced)
- Route Identifier
- Route Priority
Try ItTriggerThis is the start of your ZapInstantThis event starts a Zap instantly.
New Unsubscribe EventTriggers when a recipient unsubscribes in Mailgun.
Try ItTriggerThis is the start of your ZapInstantThis event starts a Zap instantly.- Job List NameRequired
- CSV FileRequired
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- Job IDRequired
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- Email AddressRequired
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.
- OrganizationRequired
- Status
- Type
Try ItTriggerThis is the start of your ZapPollingZapier checks for new data every 15 min on the Free plan- OrganizationRequired
- Report TypeRequired
Try ItTriggerThis is the start of your ZapPollingZapier checks for new data every 15 min on the Free plan- OrganizationRequired
- Payment_type
Try ItTriggerThis is the start of your ZapPollingZapier checks for new data every 15 min on the Free plan- OrganizationRequired
- Project State
Try ItTriggerThis is the start of your ZapPollingZapier checks for new data every 15 min on the Free plan- OrganizationRequired
- Quote Status
Try ItTriggerThis is the start of your ZapPollingZapier checks for new data every 15 min on the Free plan- OrganizationRequired
- Status
Try ItTriggerThis is the start of your ZapInstantThis event starts a Zap instantly.- OrganizationRequired
- Invoice IDRequired
- NoteRequired
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Credit Note IDRequired
- Invoice IDRequired
- AmountRequired
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- From AccountRequired
- To AccountRequired
- AmountRequired
- Date
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- CodeRequired
- NameRequired
- TypeRequired
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- TypeRequired
- ContactRequired
- Date
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Invoice IDRequired
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Mark Item as a Sales Item?
- Mark Item as a Purchase Item?
- Item Name
- Item CodeRequired
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Contact_nameRequired
- Email_address
- Contact_account_number
- Primary Person - First Name
- Primary Person - Last Name
- Phone - Country Code
- Phone - Area Code
- Phone Number
- Fax - Country Code
- Fax - Area Code
- Fax - Number
- Mobile - Country Code
- Mobile - Area Code
- Mobile - Number
- Direct Dial - Country Code
- Direct Dial - Area Code
- Direct Dial - Number
- Contact Address Type
- Address - Attention
- Address - Line 1
- Address - Line 2
- Address - City/Town
- Address - State/Region
- Address - Postal/Zip Code
- Address - Country
- Contact_tax_number
- Bank Account Number
- Contact Number
- Status
- Date
- Due_date
- Currency
- Url
- Attachment
- Branding_theme
- Number
- Reference
- Sent_to_contact
- Line_items_type
- Item Code
- Description
- QuantityRequired
- Unit Price
- Discount %
- Discount Amount
- Account
- Tax Rate
- Tracking
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- ContactRequired
- Project NameRequired
- Deadline for the project
- Project Estimate
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- ContactRequired
- Repeated Invoice Schedule
- Invoice Creation: Frequency TypeRequired
- Invoice Creation: Frequency (Period)Required
- Due Date Type: Payment TermsRequired
- Set Due Dates (Days)Required
- Start Date:Required
- End Date
- StatusRequired
- Currency
- Branding_theme
- Reference
- Mark as approved for sending?
- Email a copy to Sender?
- Include PDF
- Line Amount Types
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Purchase OrderRequired
- Contact
- Update Method for Line Items
- Date
- Delivery_date
- Line Amount Types
- Purchase Order Number
- Reference
- Branding Theme
- Currency
- Status
- Sent to Contact
- Delivery Address
- Attention To
- Telephone
- Delivery Instructions
- Expected_arrival_date
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- Info
- OrganizationRequired
- Invoice_idRequired
- Contact
- Status
- Date
- Due_date
- Expected_payment_date
- Reference
- Branding_theme
- Url
- Currency
- Sent_to_contact
- Attachments
- Invoice_number
- Line_amount_types
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- Stop on errorRequired
- HTTP MethodRequired
- URLRequired
- Query string parameters
- Additional request headers
- Body
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- OrganizationRequired
- Search_byRequired
ActionThis is an event a Zap performs.SearchFind existing data in your app- OrganizationRequired
- Invoice IDRequired
- Include PDF File
- Include Online Invoice URL
ActionThis is an event a Zap performs.SearchFind existing data in your app- OrganizationRequired
- Contact ID
- Quote Number
- Status
ActionThis is an event a Zap performs.SearchFind existing data in your app- OrganizationRequired
- Search_byRequired
- Include Online Invoice URL
ActionThis is an event a Zap performs.SearchFind existing data in your app- OrganizationRequired
- Search_byRequired
ActionThis is an event a Zap performs.SearchFind existing data in your app- OrganizationRequired
- Search_byRequired
- Mark Item as a Sales Item?
- Mark Item as a Purchase Item?
- Item Name
- Item CodeRequired
ActionThis is an event a Zap performs.Search or writeFind existing data in your app, or create a new record if no data is found
New Complaint EventTriggers when a recipient reports an email as spam in Mailgun.
Try ItTriggerThis is the start of your ZapInstantThis event starts a Zap instantly.
New Failed Delivery EventTriggers when an email fails to deliver in Mailgun.
Try ItTriggerThis is the start of your ZapInstantThis event starts a Zap instantly.
New Open/Click EventTriggers when a recipient opens an email or clicks a tracked link in Mailgun.
Try ItTriggerThis is the start of your ZapInstantThis event starts a Zap instantly.
New ListTriggers when a new mailing list is added to your account.
Try ItTriggerThis is the start of your ZapPollingZapier checks for new data every 15 min on the Free plan- From Email AddressRequired
- To Email AddressRequired
- CC Email Address
- BCC Email Address
- Reply-To Email Address
- Email SubjectRequired
- Email Body (HTML)
- Email Body (Text)
- Attachment
- Tags
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- ListRequired
- AddressRequired
- UpdateRequired
- Member Name
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.- Stop on errorRequired
- HTTP MethodRequired
- URLRequired
- Query string parameters
- Additional request headers
- Body
ActionThis is an event a Zap performs.WriteCreate a new record or update an existing record in your app.







