Jump to content
RVD

windows (Archived) Add a note containing checkboxes by email

Recommended Posts

Hi all,
I would like to add by email a note containing check boxes in one of my notebooks.
The wished content should be like this :

  1. Todo for Ann
  2. Todo for Bob
  3. Todo for Chuck

with chek boxes instead of numbers.

The goal is just to add a note in a shared notebook with other users (Ann, Bob, Chuck) who could then check the boxes.

It is important it should be send by email as a result of an automated process.

I can't find a way to perform this (tried attached file or content in enex format)

Is it possible ?

Share this post


Link to post

If Ann, Bob, and Chuck already can access the shared notebook as you imply, why do you need to send them an email?

Share this post


Link to post

I would like an automated process to create a note with checkboxes in a shared notebook, users with rights on this notebook having to then check the boxes.

As an example :

Automate the creation of a note telling :

  1. To Ann to take bacon and eggs from the fridge
  2. To Bob to cook them
  3. To Chuck to eat that stuff

Each one has to check his box when his task is made

It has to be emailed because all of this is to be human-made after a bunch of automated actions, let's say the computer has made its work now it's time for you guys to do the remaining job.

Share this post


Link to post

Don't know how to do this via email. What you could do is write a program that builds an Evernote note in its native .enml format, with the desired to-do checkbox items, and save it into an import folder that is set up to feed into the designated shared notebook.

Share this post


Link to post

Succeeded to do it using a perl script from my linux server:

 

#!/usr/bin/perl
use strict;
use warnings;
use MIME::Lite;

# Parametres message
my $srv_smtp  = 'mysmtp.server';
my $obj_msg   = '@Personnel #nouveau_serveur'; #@Personnel is my notebook and nouveau_serveur is a tag
my $from_msg  = 'myself@from.me';
my $to_msg    = 'my_evernote_address@m.evernote.com';

my $msg_texte = '<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    To do : <br>
    <div class="ennote"><input disabled="true" class="en-todo" type="checkbox">Action1
      <div><input disabled="true" class="en-todo" type="checkbox">Action2 (<b>Ann</b>)</div>
      <div><input disabled="true" class="en-todo" type="checkbox">Action3 (<b>Bob</b> or <b>Chuck</b>)</div>
    </div>
    <br>
  </body>
</html>';

$obj_msg = "My new note $obj_msg";

my $message   = new MIME::Lite
                    From    => $from_msg,
                    To      => $to_msg,
                    Subject => $obj_msg,
                    Type    => 'text/html',
                    Data    => $msg_texte;

MIME::Lite->send( 'smtp', $srv_smtp, Timeout => 60 );
$message -> send;

 

 

The type of the message (text/html) is important

 

See attached screenshot

post-157525-0-45398100-1383042898_thumb.

  • Like 1

Share this post


Link to post

Nicely done (in theory, I am not Perl-fluent).

Share this post


Link to post
Guest
This topic is now closed to further replies.

×
×
  • Create New...