Welcome to WebmasterWorld Guest from 54.158.51.150

Forum Moderators: bakedjake

Message Too Old, No Replies

How to change subject and message body using Qmail

Mailing list manager

     
6:04 am on Jun 17, 2008 (gmt 0)

5+ Year Member



Hi guys,

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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month