Forum Moderators: bakedjake
I have installed qmail on linux redhat 9.
I am able to send email using .qmail file.
I created a .qmail file: .qmail-softb having following content:
¦preline /usr/bin/procmail procmail-test ¦¦ exit 111
&bounce@localhost.localdomain
Then I created procmail-test file containg following code:
:0 c
! test@localhost.localdomain
I used the following command in command line:
#mail softb
Subject: test sub
test msg body
Cc:
^D
As a result the mail was send to bounce@localhost.localdomain email as well as forwarded to test@localhost.localdomain.
But when I try to change the content in subject and message body, the content is not changing.
My sample requirement as followiing below:
.qmail file content:
---------------------
&james@xyz.com
¦ preline /usr/bin/procmail /var/qmail/test/procmail-test
[u]Sample mail[/u:
---------------------------------------------
To: james@xyz.com
From: Mosiur
Subject: Hi #firstName#
Body:
This is a test message for #firstName#
Username: #userName#
Password: #password#
Regards,
Admin test
---------------------------------------------
And I want to send this message as
----------------------------------------
To: james@xyz.com
From: Mosiur
Subject: Hi James
Body:
This is a test message for James
Username: james123
Password: flowers
Regards,
Admin test
---------------------------------------
How to do it. Kindly help me.