Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 1st, 2006, 05:31 AM
Registered User
 
Join Date: Mar 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Imap _open() error

I cannot use imap_open () to connect mail server. Please help me.
With this PHP code I cannot show an email overview and display emails from POP3 accounts.

$conn = imap_open ("{mail. myserver.com:110/pop3/notls}INBOX", “myusername”, “mypassword”) or die ("Connection fail" .imap_last_error ());

if ($conn)
 {
 echo "Success";
 }
else
 {
 echo "Fail ";
 }

If i gave wrong username & password, the result will be “connection fail and check for account “.

When I was giving correct details I get error

 â€œpage cannot be displayed with Cannot find server or DNS Error Internet Explorer “


vibin





Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
Newbie help with imap on wamp with joomla MMS blog 123newbie PHP How-To 1 April 28th, 2007 04:06 AM
PHP IMAP implementation to process attachments azimu Pro PHP 17 December 7th, 2004 11:16 AM
imap streaming error identification... bad_demon Pro PHP 3 December 5th, 2003 03:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.