homepage Welcome to WebmasterWorld Guest from 50.19.144.243
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
How to change subject and message body using Qmail
Mailing list manager
mosiur




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

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.

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved