Hooking SMTP Server

Reply

Join Date: Apr 2007
Posts: 136
Reputation: dr4g is an unknown quantity at this point 
Solved Threads: 5
dr4g's Avatar
dr4g dr4g is offline Offline
Junior Poster

Hooking SMTP Server

 
0
  #1
Jun 8th, 2008
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.
GardCMS :: Open Source CMS :: Gardcms.org
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 71
Reputation: Belrog is an unknown quantity at this point 
Solved Threads: 4
Belrog's Avatar
Belrog Belrog is offline Offline
Junior Poster in Training

Re: Hooking SMTP Server

 
0
  #2
Jul 31st, 2008
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.
Last edited by Belrog; Jul 31st, 2008 at 10:43 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the *nix Software Forum
Thread Tools Search this Thread



Tag cloud for *nix Software
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC