I am planning to connect to our incoming mail server i.e mail.xyz.com, from their i want to extract mail attachment i.e word document files(candidate resumes). For this I written code in php ( i copied from the net), but i am getting the following errors
Warning: imap_open() [function.imap-open]: Couldn't open stream \{mail.abrahamandbettadpur.com/pop3:110}INBOX in D:\wamp\www\test\extract_mail_content.php on line 9
Connection to server failed
My code goes like this
Expand|Select|Wrap|Line Numbers
- <?php
- $server = "mail.abc.com";
- $user = "xyz@abc.com";
- $pass = "********";
- $conn = imap_open("\{$server/pop3:110}INBOX", $user, $pass)
- or die("Connection to server failed");
- ?>
Thank you,