https://github.com/bendudson/mailmerge
Simple mail merging in Perl
https://github.com/bendudson/mailmerge
Last synced: 2 months ago
JSON representation
Simple mail merging in Perl
- Host: GitHub
- URL: https://github.com/bendudson/mailmerge
- Owner: bendudson
- Created: 2011-10-27T12:51:31.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-10-27T12:52:05.000Z (over 14 years ago)
- Last Synced: 2025-02-27T18:31:08.594Z (over 1 year ago)
- Language: Perl
- Homepage:
- Size: 89.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Simple mail merging
mailmerge.pl template data [subject]
Takes a template file and a data file containing a list
of recipients, one per line. The fields are tab separated
user1@host field1 field2 field3 ...
user2@host field1 field2 field3 ...
The template file can use '$1', '$2', ... which will be replaced
with the data in field1, fiel2, ...
e.g.
------------------
Dear $1,
Welcome to York! To log in, your account is:
Username: $2
Password: $3
Regards
Admin
-------------------
The subject argument is optional, but can also use $1,$2 etc.
The difference is that these need to be escaped e.g.
mailmerge.pl template data "account for \$1"
note the extra '\'.