Connecting your Salesforce account with Click2Mail Connect
Salesforce needs a little set-up on its own side: an object, a layout field, an outbound message and a flow. Do that once, and saving a record with your trigger word sends the mail.
Salesforce changes its screens often
These steps and videos were recorded on 7 October 2026 in a Salesforce Developer Edition account, using Lightning. Salesforce updates its menus and wording several times a year, so a button may have moved or been renamed. We name each step instead of pointing to a position. If your screen looks different, search Salesforce Setup for the name in bold, or contact support and we will look at it with you. Names and addresses in the videos are samples.
Before you start
Have these ready first. The steps every platform shares - connecting your Click2Mail account, building a template and a mail merge document, and uploading a list - are in Getting started, so they are not repeated here.
- A Click2Mail Connect account with your Click2Mail account connected, and a Click2Mail template built from a mail merge document (see Getting started).
- A Salesforce login that is allowed to create objects, outbound messages and flows, and to approve connected apps. If that is not you, ask your Salesforce admin to help.
- Your mailing data in a CSV file. The first row must hold the column headings (First Name, Last Name, Address1, Address2, City, State, Zip), with no title line above it. Add a column headed c2m_uniqueID: Click2Mail needs it, and you will remove it from Salesforce after the import.
- A trigger word you will type to start a mailing, for example Welcome.
Create an object from your spreadsheet
An object is a table in Salesforce. Importing your CSV creates one with a field for every column.
- In Salesforce, open Setup (the gear icon) and choose Object Manager.
- Choose Create, then Custom Object from Spreadsheet. A new tab opens. Sign in with Salesforce and allow access if it asks.
- Upload your CSV and check the fields it found. A column with no data yet, such as Plus4 or c2m_uniqueID, needs a type: choose Text.
- Give the object a name, for example Mail Contact, and choose Finish. Salesforce tells you how many fields and rows it created.
- Back in Object Manager, open your object, go to Fields & Relationships, and delete the c2m_uniqueID field. Salesforce does not use it.
Good to know
By default each record is named with an automatic ID. The import screen has a Record Name Field setting if you want something more readable. Salesforce keeps a deleted field for 15 days before erasing it for good.
Connect your Salesforce account
Tell Connect which Salesforce account to use.
- Sign in to Click2Mail Connect and open Connected Accounts.
- Choose Add Account, pick Salesforce from the list, and choose Next.
- Sign in to Salesforce if it asks. Salesforce shows an Allow Access screen that lists what Connect is asking for, with a security warning. Salesforce shows that warning for every app. Choose Allow only if you started this connection.
- You come back to Connected Accounts, where Salesforce now appears.
Approving more than once
Salesforce lets one person approve the same app up to five times. A sixth approval quietly cancels the oldest, so avoid reconnecting without a reason.
Create the integration in Connect
The integration tells Connect which object to read, which template to use and how the fields line up.
- In Connect, open Integrations and choose Create Integration.
- Step 1: name the integration, choose your Click2Mail account, choose Salesforce as the data source, and choose your Salesforce account.
- Step 2: choose your object. Salesforce lists hundreds of objects, so pick the one you made (for example Mail Contact), not a similarly named Change Event entry.
- Step 3: choose your Click2Mail template. Its merge fields appear on the right. A template you made just now may not show until you start these screens again.
- Step 4: for each Click2Mail field, choose the matching Salesforce field.
- Step 5: a proof downloads, which can take up to a minute. Check it, type your initials, tick the box and choose Finish. The integration starts switched on.
Connect adds something to Salesforce
When you finish, Connect adds a hidden field called Click2Mail to your object and creates the web address (the endpoint) that Salesforce will send to. The next steps use both. To copy the address, open the integration's information icon and choose Click here for copy Url.
Add the Click2Mail field to your page layout
The Click2Mail field is the switch that starts a mailing, so it has to be on the record page.
- In Salesforce Setup, open Object Manager and choose your object.
- Choose Page Layouts, then open the layout.
- Find Click2Mail in the field list at the top and drag it into the Information section, for example between First Name and Last Name.
- Choose Save.
Create an outbound message
The outbound message sends the record's details from Salesforce to Connect, using the endpoint from step 3.
- In Setup, search for Outbound Messages and choose New Outbound Message.
- Choose your object and select Next.
- Give the message a name, paste the endpoint URL from Connect, and leave User to send as set to yourself.
- Move across the fields to send: the ones you mapped in step 3. We also sent Click2Mail and the record Id.
- Choose Save.
Create a record-triggered flow
The flow watches your object and fires the outbound message when the Click2Mail field holds your trigger word.
- In Setup, open Flows and choose New Flow, then Record-Triggered Flow. The first screen is called New Automation and also offers an Agentforce box; ignore that.
- Set the object to yours. For the trigger, choose A record is created or updated.
- Set the condition: field Click2Mail equals your trigger word, for example Welcome. Choose Only when a record is updated to meet the condition requirements, so ordinary edits do not send mail.
- Keep Actions and Related Records selected. Add an Action and search for your outbound message by name.
- Save the flow with a name, then choose Activate.
Activate it
A flow that is saved but not activated does nothing. The screen should show Active before you test.
Sending mail from Salesforce
Everything is in place. A record whose Click2Mail field holds your trigger word when it is saved sends a piece.
- Open a record from your object.
- Type your trigger word into the Click2Mail field and choose Save.
- Within a minute or so the request appears in Connect, under Order History, in Pending Requests.
Where to check what happened
Look in Order History in Connect, including Failed Requests. Nothing is charged unless the job is valid and your account has enough credit.
Deleting a test request
Testing and do not want the piece to go out? You can remove a request while it is still pending.
- In Connect, open Order History and choose Pending Requests.
- Tick the request and choose Delete Selected.
- Type your initials and choose Yes, Delete.
If something goes wrong
I saved the record and nothing appeared in Pending Requests
Check that what you typed matches the flow's condition, that the flow shows Active, and that the outbound message uses the endpoint from your integration. The flow fires only when a record is updated to meet the condition, so if Click2Mail already held your trigger word, change it to something else, save, and type the trigger word again.
I cannot find the Click2Mail field
Connect adds it when you finish creating the integration (step 3). After that it has to be placed on the page layout (step 4).
My object is not in the list in Connect
Choose the object you made in step 1. If it does not show, check that it was created in the same Salesforce account you connected in step 2.
Connect shows an error about the template
If the message mentions a mapping, the template may not have been saved with its document attached. Open it in Click2Mail, check the document is attached, save it, then start the Create Integration screens again so the list refreshes.
An address or name is empty on the piece
Check that the field is included in the outbound message (step 5) and matched to the template in your Connect integration (step 3).
The request shows as failed
Check Failed Requests in Order History for the record. A common cause is not enough credit, so add credit and try again.
I approved Connect in Salesforce but it stopped working
Salesforce keeps up to five approvals per person for one app, and a sixth cancels the oldest. Open Connected Accounts in Connect and connect Salesforce again.
Still stuck?
Our support team can walk through the set-up with you. Get in touch and we will look at your integration together.
Ready to automate your mail?
Connect Click2Mail to the platform you already run on and start sending in minutes. No monthly software fees.
Sign Up