login about faq

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";

asked Sep 21 '12 at 07:45

RootTag's gravatar image

RootTag
35121623


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

link

answered Sep 21 '12 at 08:53

RootTag's gravatar image

RootTag
35121623

edited Sep 21 '12 at 08:55

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.

link

answered Sep 21 '12 at 10:21

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×175
×36

Asked: Sep 21 '12 at 07:45

Seen: 1,490 times

Last updated: Sep 21 '12 at 10:42

powered by OSQA