• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
reading email and saving csv attachment

#1
[eluser]nigelb[/eluser]
I am currently looking at the imap_pop library with a view to using it to save csv email attachments. Does anyone know if it is possible to do this?

#2
[eluser]sophistry[/eluser]
why, yes it can. ;-)

#3
[eluser]nigelb[/eluser]
i have managed to get it working, although there is stuff in the lib that perhaps is better done elsewhere such as the directory permissions etc.

seems to be working ok though

#4
[eluser]sophistry[/eluser]
yes, thanks for the feedback! in this first version, i dumped everything in one place just for ease of access.

i've got a refactored version that i am still working on which has all the parts separated into different classes and is better organized and commented. i plan to get it out to the world at some point, but just have had no time to bring it to CI standards.

how's shrewsbury this time of year? still flowering?

#5
[eluser]saidai jagan[/eluser]
Hi i used Imap_search(). Which is not working in my server.

PHP Version 5.2.10

Imap version:

IMAP c-Client Version 2004
SSL Support enabled
Kerberos Support enabled

Pls help me Sad

#6
[eluser]sophistry[/eluser]
hi sadaijagan,

it is not clear if your question pertains to imap_pop

please clarify

#7
[eluser]saidai jagan[/eluser]
Oh i m sorry
I used this code below

Code:
$mailbox    =    imap_open("{imap.gmail.com:993/ssl}", $user_mail, $pass_word);
$search_arr    =    imap_search($mailbox,"UNSEEN");
print_r($search_arr);
And my server settings are
PHP Version 5.2.10
IMAP c-Client Version 2004
SSL Support enabled
Kerberos Support enabled

It does not returning anything. Sad
Waiting for u r reply.

#8
[eluser]sophistry[/eluser]
ok, now it is clear this is not an imap_pop library issue... imap_pop is a lib i wrote to make it easier to get email into CI. but, it appears that you are not using it, so i don't know why you posted in this thread. :-)

in fact, the imap_pop library does not support imap_search().

i'm sorry, but you'll probably find better help in another thread or on a forum dedicated to PHP IMAP functions.

#9
[eluser]saidai jagan[/eluser]
I m sorry to post this issue.

I downloaded and checked u r code, it is very good. U have done it by sending the msg id to a function.. i want to take the msg id from a unseen message through u r code.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.