Jump to content

Reading received emails with attachment and insert into MySQL


hybmg57

Recommended Posts

if you're on a unix/linux box, it's simple to parse the emails and do whatever you want with them as they arrive. look into .forward files and how to pipe each email to a process. iirc, the .forward would look something like:

 

| php <your email parsing php file>

 

i've used this method before and it works quite well. google .forward files for the proper syntax. there's a lot you can do with them.

Link to comment
Share on other sites

This is very possible with cPanel. I read email messages in a number of my sites.

 

You need a PHP script that will read the incoming email. Here's one tutorial. Another useful script is mime_parser.php which can get the attachment.

 

Then you need to set up a forward email in cPanel (see attachement)

 

Ken

 

 

 

[attachment deleted by admin]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.