MAIL TO BLOG
With a little setup you can post to a Blogger weblog through email.
To set it up, jump to blogger.mailToBlog and run the install script. It installs a background thread, a script contained in the same table called checkMail. That script runs once a minute, and checks the mailbox you specify in user.blogger.mailPosting, which the install script opens.
In user.blogger.mailPosting, enter a mail address that you want to use only for blog posting. Do not use your normal mail account because the script will discard any email that is not destined for your blog. Be forewarned. Create a new mail account for this purpose.
You may want to change secretSubject to something like "blogger" -- in order for a mail message to be routed to your blog it must have this subject. This is something you should only share with people who you want to let post to your blog via email. If we didn't have this feature anyone could post simply by sending a mail message to your blog mailbox.
Finally, set enabled to true. If you ever want to disable this feature, just turn the boolean off, by setting it to false.
This function also supports callbacks. You can run a script when a blog post arrives by placing it in user.blogger.callbacks.mailToBlog. It will receive an address of a table containing all the elements of the incoming mail message. You can change the message if you want, or route it to a different destination. All callbacks run, errors are ignored.
Saturday, September 09, 2006
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment