Search code examples
phpimapopenshift

How Can I install php-imap on openshift


I have a PHP application running on Openshift and I need receive e-mails from gmail using imap protocol. In my local machine I am able to get emails from gmail using the same code, but when I am running from Openshift I can not get emails. I suppose that the problem is the php-imap which I had to install in my local machine. I am not sure if this module is already installed in Openshift. Should I install php-imap or this module is enable for default on server?


Solution

  • The easiest way to integrate email into your app is with Sendgrid from our Oenshift Marketplace here: https://marketplace.openshift.com/apps/9628?1665146903&restoreSearch=true#!overview. For reference, here are the extensions available in the php cartridge as of today:

    $ php -m
    [PHP Modules]
    apc
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    ereg
    exif
    fileinfo
    filter
    ftp
    gd
    gettext
    gmp
    hash
    iconv
    imagick
    intl
    json
    ldap
    libxml
    mbstring
    mcrypt
    memcache
    mhash
    mongo
    mysql
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_pgsql
    pdo_sqlite
    pgsql
    Phar
    posix
    readline
    Reflection
    session
    shmop
    SimpleXML
    soap
    sockets
    SPL
    sqlite3 
    standard
    sysvmsg
    sysvsem
    sysvshm
    tokenizer
    wddx
    xml
    xmlreader
    xmlwriter
    xsl
    zip
    zlib