Hiho,

Richard Kurth wrote:
> Hello Alexander,
> This is pretty much what I want to do. I want to have a e-mail script
> in my application and have it so the user can customize the e-mail that
> is sent out in a configure file. Say he wants to send a recurring bill
> to his customers and he wants it to look a certain way. He would design
> the e-mail using placeholders and the it would be processed and the data
> would be filled in. Do you know of any examples of this in any program
> that is out there. I do better when I can see complete examples to be
> able to get the full picture

I, personally, know only one, which you won't be able to look at, unless you 
pay the rather high price, and even then, you'd be buggered by german 
source-comments.
Well, I think what you have to do is clear:
Get a template with the placeholders in, this is what the user has to provide.
Find out who shall recieve this mail, and get data about them (name, how much 
they paid or whatever you use those bills for). Then do the replacements once 
and present the user a preview of the mail, so he can be sure hi didn't 
mispell any placeholders.
If he still wants to send the mails, send each reciever a mail, and do the 
replacements every time. That should do it.

regards
Wagner

-- 
"Isn't it strange? The same people who laugh at gypsy fortune tellers take 
economists seriously."
 - Cincinnati Enquirer   

Reply via email to