|
Hoschl - 2012-05-28 20:32:15
Sorry, I am completely new with PHP, but need to automatically save attachments from my emails on my NAS.
PHP is installed.
I saved the
attachmentread.class.php and readattachment.php within a subfolder of my synology WEB folder.
I updated the readattachment.php with my login data:
open stream {imap.googlemail.com:993/imap/ssl/novalidate-cert}INBOX
I get the following error message:
Warning: imap_open(): Couldn't open stream {imap.googlemail.com:993/imap/ssl/novalidate-cert}INBOX in /volume1/web/Mailattachmentreader/attachmentread.class.php on line 44 can't connect: Can't open mailbox {imap.googlemail.com:993/imap/ssl/novalidate-cert}INBOX: invalid remote specification
I probably did as wrong as possible, but there's little dummy info how to start (unless I am too dummy to find).
Thanks for your help
Best regards
Holger
Jijomon Thottungalthara - 2012-05-28 22:37:56 - In reply to message 1 from Hoschl
Hello,
try to connect with {imap.gmail.com:993/ssl/novalidate-cert}INBOX (removing /imap/)
Hoschl - 2012-05-28 22:52:07 - In reply to message 2 from Jijomon Thottungalthara
Hello Jijomon,
thanks for the fast feedback. I doesn't work, neither.
Currently I think something won't work on my Synology.
Even phpinfo(); works fine, I think that its a port problem or something similar.
Wheras I can connect to googlemail by my macbook with
telnet imap.googlemail.com 993
it will not connect when trying from my diskstation.
I can ping imap.googlemail.com (so DNS seems to work) but thats it.
I continue debugging ... any hints ?
Jijomon Thottungalthara - 2012-05-29 08:32:18 - In reply to message 3 from Hoschl
Yes , it could probably due to firewall setting , since you can't also connect to port 993 : so please check your local firewall settings . This is the first time some one reporting kind of error with this script.
Hoschl - 2013-01-22 19:01:52 - In reply to message 1 from Hoschl
I finally got it to work, with an almost endless try of incorrect logins.
However, I realize quite a problem.
I have an ICS file attached to the mail I would like to detach and save on my server to use the calendar abo function in my smartphone.
However, when I save the ics manually to the directory, it fine and UTF formated.
When the script does the job it results in a binary which cannot be read.
However, I have no clue at all, where to look up the problem and to fix it.
Any hints ?
|