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

  • Home
  • SEARCH
  • 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 4022644
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:30:03+00:00 2026-05-20T10:30:03+00:00

Here is a strange one for you. I am using the Ipipi SMS to

  • 0

Here is a strange one for you.

I am using the Ipipi SMS to email service to send control commands to a PHP script.

I can send email messages to my mailbox, then read and display them using PHP-IMAP commands as in this code segment:

$overview = imap_fetch_overview($inbox,$email_number,0);
$message = imap_fetchbody($inbox,$email_number,2);
echo $message;

If I send a sms message to the mailbox imap_fetchbody, it returns empty.

However, if I then read the mailbox with a email client the message is there. I do not think it is an Ipipi issue.

If I do a var_dump($message) I get string(0) "".

  • 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-20T10:30:04+00:00Added an answer on May 20, 2026 at 10:30 am

    When you issue

    $message = imap_fetchbody($inbox,$email_number,2);
    

    you’re asking for the content of part 2 of the message. (That’s what the third argument to imap_fetchbody means.)

    string imap_fetchbody ( resource $imap_stream , int $msg_number ,
                            string $section [, int $options = 0 ] )
    

    It’s hard to know without being able to see a sample message from the SMS gateway, but I’d guess that your message isn’t a multipart and thus it doesn’t have a part 2. What happens if you substitute a 1 for the 2 when fetching this particular message?

    (In general, you’ll want to look at the message structure before deciding which body part to fetch. You can use imap_fetchstructure for this.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Strange one here. My MVC Web Application's version number is not printing correctly to
Strange one here, hoping to get some feedback to point me in the right
Tackling a strange scenario here. We use a proprietary workstation management application which uses
I'm having a strange problem here... I have an ASP.NET 3.5 application that has
I have a strange problem with mod_rewrite, the rules that are relevant here are:
This is a really strange one. I've created my own CustomTextField class which I
I simply can not get Visual Studio 2005 to find the System.Configuration.ConfigurationManager class. Here
I am seeing a very strange problem on one of my production boxes. We
Here's a basic regex technique that I've never managed to remember. Let's say I'm
Here's a problem I ran into recently. I have attributes strings of the form

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.