Chilkat Examples

ChilkatHOMEAndroid™Classic ASPCC++C#Delphi ActiveXDelphi DLLVisual FoxProJavaMFCObjective-CPerlPHP ActiveXPHP ExtensionPowerShellPythonRubySQL ServerUnicode CUnicode C++Visual Basic 6.0VB.NETVBScript

PHP Extension Examples

Certificates
Email Object
Encryption
FTP
HTML-to-XML/Text
Gzip
HTTP
IMAP
MHT / HTML Email
POP3
RSA Encryption
MIME
SMTP
Socket/SSL/TLS
SSH Key
SSH
SFTP
Tar Archive
XML
XMP
Zip

More Examples...
Amazon S3
Bounced Email
CSV
Diffie-Hellman
NTLM

 

 

 

 

 

 

 

(PHP Extension) IMAP NOOP Command

Demonstrates how to send an IMAP NOOP command using SendRawCommand.

Chilkat PHP Downloads

PHP Extension for Linux and MAC OS X

<?php

// The "chilkat_9_5_0.php" is included in the Chilkat PHP Extension download
// The version number (9_5_0) should match version of the Chilkat extension used.
include("chilkat_9_5_0.php");

$imap = new CkImap();

//  Anything unlocks the component and begins a fully-functional 30-day trial.
$success = $imap->UnlockComponent('Anything for 30-day trial');
if ($success != true) {
    print $imap->lastErrorText() . "\n";
    exit;
}

//  Connect to an IMAP server.
$success = $imap->Connect('mail.chilkatsoft.com');
if ($success != true) {
    print $imap->lastErrorText() . "\n";
    exit;
}

//  Login
$success = $imap->Login('****','****');
if ($success != true) {
    print $imap->lastErrorText() . "\n";
    exit;
}

//  Send a NOOP command

$response = $imap->sendRawCommand('NOOP');
print $response . "\n";

//  Disconnect from the IMAP server.
$imap->Disconnect();
?>

 

© 2000-2014 Chilkat Software, Inc. All Rights Reserved.