954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Hooking SMTP Server

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.

dr4g
Junior Poster
136 posts since Apr 2007
Reputation Points: 35
Solved Threads: 5
 

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.

Belrog
Junior Poster in Training
76 posts since Nov 2007
Reputation Points: 11
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: