Mail merge with attachments

Mail merge sends one mail to each row of a sheet. The subject and text are filled in from the row, and each row can carry its own file. This guide merges four rows with a PDF each and reads the preview.

Applies to VahiWise 0.2.0Last updated 23-11-2026Accountant or CAabout 15 minutes

Step-by-step guide

Before you start

  • A mail account is saved (see Set up the mail account). This guide uses the outbox choice, so mails are saved and not sent.
  • A sheet in Excel or CSV with a header row. It needs a column with Email in its name. Every other column can be used in the text. This guide uses Name, Email, Amount and Attachment.
  • The files to attach, each named exactly as the Attachment column says. The sample files are made up.
  • At most 500 rows at once, and 24 MB of files in all.

Steps

1. Choose the sheet and the files

In the left menu open Connect, then Email, then Mail merge. Under Recipients (Excel / CSV) choose your sheet (marked 1). Under Files to attach choose all the files at once (marked 2). A row of tick boxes appears under "For every mail", one for each file.

Tick a file there only if every mail should carry it. Leave all of them clear when each row has its own file, named in the Attachment column.

The Mail merge card with the sheet marked 1 and three files marked 2.
Sample data. The sheet is marked 1 and the three files are marked 2.

2. Write the subject and text

In Subject (marked 1) and Text (marked 2) write the mail. Put a column name in single curly brackets, for example {Name} or {Amount}, where the row's value should go. Capital letters and extra spaces in the column name do not matter. Then press Preview (marked 3).

The subject and text with the column names in brackets, and Preview marked 3.
Sample data. The subject is marked 1, the text is marked 2 and Preview is marked 3.

3. Read the preview

The grey line (marked 1) counts the rows and says which column gave the addresses and which gave the file names. In the sample it reads "4 rows, 3 ready".

A red box (marked 2) lists each row left out and why. Here the fourth row names Statement - Rajlaxmi.pdf, a file that was not chosen, so it reads "file not uploaded". The table (marked 3) shows each ready mail: the address, the subject and text with the values filled in, and the files attached.

The preview line marked 1, the left-out row marked 2 and the first mail marked 3.
Sample data. The count line is marked 1, the red box is marked 2 and the first mail is marked 3.

To fix the fourth row, choose its file again with the others, or correct the name in the sheet, and press Preview again.

4. Catch a column that is not in the sheet

If the text names a column the sheet does not have, a red line says so: "The text names {Foo}, the sheet has no such column." The button to save or send the mails stays off until you correct the name and press Preview again.

The red line about the missing column, marked 1.
Sample data. The message about the missing column is marked 1. The sample typed {Foo} on purpose.

5. Send the first one as a test

Type an address you own in Test to and press Send the first as a test. Only the first ready row goes, to that address, with "[Test]" in front of its subject. With the outbox choice the green line says it was saved to the outbox.

The green line after the test, marked 1.
Sample data. The result line is marked 1.

Open Sent log. It has one line: the party, the test address, the subject with "[Test]" and the status "saved". The button for all mails reads Save 3 mails with the outbox, and Send 3 mails with a real account. A box asks first whether to go ahead, one mail to each row shown as ready.

Check it worked

  • The preview line shows every row you expect, and the red box is empty or lists only rows you meant to leave out.
  • Each ready row shows its own file in the Attached column.
  • The test appears in the Sent log with the status "saved" (outbox) or "sent".

If something looks wrong

"The sheet needs a header row with an Email column."

VahiWise looks for a header in the first 20 rows that has Email or E-mail in a cell. Add or rename the column.

A row is left out: "no email address" or "not an email address"

The red box names the row. Correct the cell in the sheet and choose the sheet again.

A row is left out: "file not uploaded"

The file name in the Attachment column does not match any chosen file. The match ignores capital letters. Several names in one cell can be separated by a comma or a semicolon.

Next step

Mail from a CA firm to its clients: see Data requests to clients by mail and WhatsApp.

Could not verify

  • Pressing Save 3 mails or Send 3 mails and the "go ahead" box were not run. The capture tool cannot answer a browser box, so only the test send was done.
  • A send through a real mail account was not tried, and no real server was connected.
  • An Excel sheet was not used. Only a CSV was.
  • Opening a saved outbox mail to see its attachment was not done.
  • The limits (500 rows, 24 MB) and the "not an email address" case come from the source.
  • The sheet the app writes for the rows that did not go ("The rows that didn't go") appears only after a full save or send, so it was not seen.

Notices

Questions about this guide: write to us from the contact page. What the notices mean: notices.