Hello all
Both my incoming and outgoing mail server is mail.mydomain.com, I used imap_open function to open a stream but it says couldn't open the mail stream but when i use my other email address which is imap.otheremail.com it works perfect.
Is there a separate function for mail servers starting with mail. instead of imap. ?? Or is there any other way to receive mails from this address??
This is the code which i'm using to open a stream to my mail box
imap_open("{mail.mydomain.com:143}Inbox","myemail@mydomain.com","password");
But this returns error:
imap_open(): Couldn't open stream {mail.mydomain.com:143}Inbox in /var/www/html/path/tomy/mailpage.php on line 35
any suggestions?
Many Thanks