Hi Every One Well I m badly stuck in this concept and i didnt find any help. My problem is that I want to log all the emails that employees send in my organization in a database on the server or any other computer in LAN(as all computers are interconnected). I am enough good in php basics but this task is really very advance and I m stuck here. Can sombody plz help me out???? I really need it plzzzzzzzzz if you can do anything.......... Best Regards sohail
look for the function mail() if(mail()) { insert into database } if mail is sent then insert to your logs
thats not that easy. first, which mail server is your company running? second, you need to find out, how you can get your programm executed by the mailserver. for example: i used postfix as a mailserver and wrote a vacation script, which checks if a email-address is on vacation or not (this data was set by the user on a webinterface). all you have to configure is that when a certain circumstance happens, the mailserver should forward it to your external program.
hi bartolay13 the method you told me is very easy for me . and I used it alot like if(mail($to,$subject,$message,$headers)) { $msg = "Mail has been sent . . . !"; } else { $msg = "Sorry , Some unknown error while trying to send mail . . . !"; } but this is not my problem. my problem is "My employees will use 'www.yahoomail.com' to login to thier yahoo accounts and then send mails from that browser. those mails i want to log." And by the way I m not idiot. I am a beginer of PHP but I am very Good according my level. I m fresh graduate worked in php just 2 months. plz if you can help me in my problem. thaks 4 reply sohail
Hello EveryBody...! Let me make the problem very clear the problem is: "I have about 50 computers in my office and all the employees user Iexplorer and Firefox to login to thier email acconts on yahoo , or Gmail etc from www.yahoo.com or www.gamil.com. Now when they send emails after loging In in such a way, I want thier emails to pass through a filter like Emails cant have digits , now if an email has digits the email will not send and will be logged in DB." This is problem. Plz if any one can help. Kind and Best Regards Sohail