|
|
| |
1. how to save subject and body |
|
Reply |
|
|
 rgb | 2013-01-14 16:27:18 |
| I want to save subject and body so I can echo to screen and store in mysql |
| |
2. Re: how to save subject and body |
|
Reply |
|
|
 Manuel Lemos | 2013-01-15 01:18:06 - In reply to message 1 from rgb |
| Just take a look at the existing examples and see how you can obtain what you need from the messages. |
| |
3. Re: how to save subject and body |
|
Reply |
|
|
 rgb | 2013-01-15 21:16:53 - In reply to message 2 from Manuel Lemos |
i am using
test_message_decoder.php
is this the best way to find subject
echo '<br>'.$decoded[$message]['Headers']['subject:']; |
| |
4. Re: how to save subject and body |
|
Reply |
|
|
 Manuel Lemos | 2013-01-16 04:05:07 - In reply to message 3 from rgb |
| That is fine. |
| |
5. Re: how to save subject and body |
|
Reply |
|
|
 rgb | 2013-01-16 05:47:08 - In reply to message 4 from Manuel Lemos |
| then which is email address of sender |
| |
6. Re: how to save subject and body |
|
Reply |
|
|
 Manuel Lemos | 2013-01-16 06:29:09 - In reply to message 5 from rgb |
| Obviously it is in the same array with index 'to:'. |
| |
7. Re: Blackberry Mail |
|
Reply |
|
|
 Dean | 2013-01-17 16:13:27 - In reply to message 6 from Manuel Lemos |
Hi Manuel... firstly, great work on the script.
I've implemented it 100% and everything works fine on standard emails but my Blackberry emails are not being processed. Well they are being processed but neither the message nor the attachments are being saved to the web server. This is however working for my PC emails.
Please could you let me know if I'm being a dope and how to overcome this.
Thanks a lot |
| |
8. Re: Blackberry Mail |
|
Reply |
|
|
 Dean | 2013-01-17 16:17:22 - In reply to message 7 from Dean |
BTW this is the result from running the script for a blackberry email...
Array ( [1] => Array ( [head] => Array ( [from] => AccommodationZA [date] => Thu, 17 Jan 2013 15:11:46 +0000 [subject] => Fw: IMG-20130117-00022.jpg ) [body] => Array ( [0] => Array ( [type] => plain [name] => files/messages/1_0_plain.txt [size] => 235 ) ) ) ) |
| |
9. Re: Blackberry Mail |
|
Reply |
|
|
 Dean | 2013-01-17 16:21:31 - In reply to message 8 from Dean |
| Sorry, I've just noticed that the message is being saved (it overwrote the original) so it's just the image that isn't being saved |
| |
10. Re: how to save subject and body |
|
Reply |
|
|
 Manuel Lemos | 2013-01-18 07:37:16 - In reply to message 8 from Dean |
| What script are you using? It does not seem to be the example scripts provided by the class. |
|