Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 954007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:08:32+00:00 2026-05-16T00:08:32+00:00

I was using the code, <?php $mbox = imap_open(https://myserver.in, developer@myserver.in, 123456, OP_HALFOPEN) or die(can’t

  • 0

I was using the code,

<?php
 $mbox = imap_open("https://myserver.in", "developer@myserver.in", "123456", OP_HALFOPEN)
    or die("can't connect: " . imap_last_error());

$list = imap_getmailboxes($mbox, "https://myserver.in", "*");
if (is_array($list)) {
foreach ($list as $key => $val) {
    echo "($key) ";
    echo imap_utf7_decode($val->name) . ",";
    echo "'" . $val->delimiter . "',";
    echo $val->attributes . "<br />\n";
}
} else {
echo "imap_getmailboxes failed: " . imap_last_error() . "\n";
}

imap_close($mbox);
?>

but it is giving the error

Warning: imap_open() [function.imap-open]: Couldn't open stream https://myserver.in in /home/myserver/public_html/vforms/mailtest.php on line 2
 can't connect: Can't open mailbox https://myserver.in: no such mailbox

The error is due to the parameter in imap_open() function, that i am not able to configure. so please help. Is there any PHP Class to fetch data from Inbox, and receive Email messages like PHPMailer Class.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T00:08:32+00:00Added an answer on May 16, 2026 at 12:08 am

    Have you had a look at the documentation? The mailbox address needs to be in a very specific format.

    // To connect to an SSL IMAP or POP3 server, add /ssl after the protocol
    // specification:
    $mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "user_id", "password");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I get last year's start and end date using PHP code? Is
How can i remove or delete a zip folder using php code? In my
How can I determine using PHP code that, for example, I have a variable
How to write a PHP code (using public id) that can embed into HTML
I am using php code to query to a database and the results will
I'm trying to parse a php code using some regex and I'm stuck at
I'm trying to parse through a bunch of PHP code using ack . I'm
How do I delete a file on the filesystem using PHP code? <?php if
I'm accessing http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php using code generated by http://sudzc.com The SOAP message is being sent
I am using this PHP code: if (isset($_GET['c'])) { $pages = array(home, upload, signup);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.