Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-24-2008, 04:06 AM   #1
Senior Member
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
A *surefire* mail server for a on demand site

Assume I have a site where I'm selling say MP3's. Leaving the payment system aside, once the transaction is cleared, I'd like the server to EMAIL the file to the address the user just entered.

*Only* once the emailing is over must the system log the thing as having been sent, i.e. transaction completed.

If it crashes in the middle, of course, the "x" in the "Sent" column won't be there, and there must be a system to do the emailing later, but that is a secondary issue.

How can I do this?

Last edited by resetreset; 05-24-2008 at 04:07 AM.
Old 05-24-2008, 06:19 AM   #2
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Just a shell script should be able to do this.

You could write it in PHP (or any other language)

Basically, get send the mail using the mail command. If the mail sends OK, then write something to your log. If it fails, then log a different message.

You can then process the log in another process, and for each failed transaction do whatever you require.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Surefire Xorg driver/config? grdnpdrsn Debian 2 09-13-2007 11:45 PM
Mail Server and Web Site Migration metallica1973 Linux - Networking 4 03-07-2007 07:37 PM
video on-demand server larynx Linux - Networking 0 03-20-2006 06:38 AM
dial on demand isdn / analog routing server DerBrain Linux - Networking 1 02-13-2004 01:42 PM
A surefire way to crash the sound server. lectraplayer Linux - Newbie 2 04-09-2003 05:09 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration