Archived Forum Post

Index of archived forum posts


IMAP using PHP

Sep 21 '12 at 10:42

Testing IMAP now via php extension. I receive:

Fatal error: Call to undefined method CkEmail::from() in /homepages/xxxx/xxxx/htdocs/xxxxx/xxxxx/xxxxx/test.php on line 63

line 63 says:

// email is a Chilkat.Email2

$email = $bundle->GetEmail($i);
print $email->from() . "\n";    <--------LINE 63
print $email->subject() . "\n";
print '--' . "\n";


print $email->ck_from() . "\n"; <--------change to


Yes, the word "from" cannot be used in some programming languages because it is a keyword. Therefore, it becomes "ck_from" in PHP, Perl, Python, Java, C++, etc.

If "from" is mistakenly used in a Chilkat online example, or in Chilkat documentation, please let me know where and I will correct the mistake.