Hi there.
All mail sent through the SMTP server, i need to modify the message being sent through.
I already have a PHP script to send MIME emails with embedded images for HTML meails. However this can be re-created in C,bash,perl.
What i need is a script to modify the message being sent to SMTP and return it to SMTP, or stop the SMTP process, and do all the sending from my script.

Purpose of this is to have a pre-defined HTML template, and when users send plain text through, to wrap the HTML template around that.

Maybe i'm going about it all wrong, so i thought i'd get some feedback from someone.

Thanks.

Why don't you just take the user input, add it to the HTML template and send?

I'm missing something, because from your explanation it sounds like you have all the tools you need.

Get the text message. Take HTML template. Search and replace template with text message, sender, receiver, etc. Send.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.