|
Posted by Marek Kilimajer on 04/11/05 23:39
Ryan A wrote:
> Hey,
> Thanks for replying.
>
>
>>>some other way of uploading a pic from the users mobile to the
>
> profile...
>
>>email, but be aware of the security. Users should input some token in
>>the subject.
>
>
> How with email? other than sending email using mail() i have never worked
> with any email functions in php.
> Do you have any code, classes or functions I can start reading up on?
User sends email from his mobile with the picture attached. Then you can
either:
1. Pipe all incoming emails to a script (php or whatever), parse it and
write the image to a file and update database. There are classes that
can parse emails, just search.
2. Use php's imap functions to regularly (or at the user's request)
check the email account for new emails. Read the attachement, etc.
Navigation:
[Reply to this message]
|