Hello all,
This is a tricky one (well...for me atleast!!!). Is it possible to save email messages to mysql database directly? So the requirement is, if anyone mails to email@domain.com it gets saved to mysql databse. I think the solution maybe to have a application/code attached to mail server which will save the email into the database on receiving it. Guys any feedback on this will be great.....

thanking you all....

    Yes, you'd likely have to have some sort of application attached to the mail server.

    I think with cPanel hosting, you can "pipe" emails that go to a certain email address to a script (.php, .pl, .cgi, etc...) and you could use that script to save the email to a database.

      You can use imap() functions to access to webmails where you can basically do everything such as read/compose/view attachment etc, if you know how to write.

      or you search for scripts online, such as rymo where you provides the smtp and mail account then you login and you will be able to view your emails and stuff. Not sure if it provides attachment functions a not but looks decent enough for basic usage.

      There isn't really a complete email script outside, except for Webmail and some other.

        Write a Reply...