login about faq


sorry for maybe silly question, but http://www.chilkatsoft.com/refdoc/pythonCkEmailRef.html

strVal is a string # ckStr is a CkString email.get_From(ckStr); strVal = email.from(); email.put_From(strVal);

The combined name and email address of the sender, such as "John Smith" . This is the content that will be placed in the From: header field. If the actual sender is to be different, then set the Sender property to a different email address.

in python "from" will cause syntax error since it's reserved word

asked Dec 28 '15 at 09:10

iz65535's gravatar image


edited Dec 28 '15 at 09:10

The documentation is wrong and needs to be updated. The lowercase "from" property is actually named "ck_from" because of this problem. Your code should be:

strVal = email.ck_from();

It is correct in the actual module/lib, but not correct in the documentation..


answered Dec 28 '15 at 09:18

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: Dec 28 '15 at 09:10

Seen: 1,369 times

Last updated: Dec 28 '15 at 09:18

powered by OSQA