| | |
Hooking SMTP Server
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Hi there.
All mail sent through the SMTP server, i need to modify the message being sent through.
I thought of making either a C,bash,perl script to take in the message, modify it and return it to SMTP, or stop the SMTP process, and re-call it from the 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.
It would be preferred to have my own file set up the HTML headers and for HTML, and do the sending through that. However killing the initial SMTP process that called the script in the first place.
Maybe i'm going about it all wrong, so i thought i'd get some feedback from someone.
Thanks.
All mail sent through the SMTP server, i need to modify the message being sent through.
I thought of making either a C,bash,perl script to take in the message, modify it and return it to SMTP, or stop the SMTP process, and re-call it from the 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.
It would be preferred to have my own file set up the HTML headers and for HTML, and do the sending through that. However killing the initial SMTP process that called the script in the first place.
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
email client <---> filter <---> SMPT server Rather than connecting directly to mail.myisp.com, you connect to 127.0.0.1 and the filter then connects to mail.myisp.com
Your filter looks like an SMTP server to your normal email client, and looks like an email client to your ISP's mail server.
The filter sees everthing going back and forth, so it can then mess about with the messages as it sees fit.
Start simple with a "logger" filter which just dumps everything to a file, so you get the hang of it.
![]() |
Other Threads in the C Forum
- Previous Thread: compiling linux driver in eclipse
- Next Thread: Replacing argv[0] with a char*
Views: 468 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C
#include * append array arrays bash binarysearch changingto char character cm copyanyfile copypdffile createprocess() database directory drawing dynamic execv feet fgets file floatingpointvalidation fork framework function functions getlogicaldrivestrin givemetehcodez global grade graphics gtkwinlinux histogram homework i/o ide include infiniteloop initialization input interest intmain() iso keyboard kilometer lazy license linked linkedlist linux list looping loopinsideloop. lowest matrix meter microsoft mqqueue oddnumber odf open openwebfoundation overwrite pause pdf pointer pointers posix power process program programming pyramidusingturboccodes radix read recursion recv recvblocked reversing segmentationfault single socket socketprogramming spoonfeeding standard strchr string student suggestions system test testing threads unix urboc user whythiscodecausesegmentationfault win32api windowsapi






