Jump to content

(Archived) Add a note containing checkboxes by email


RVD

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 ?

Link to comment

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.

Link to comment
  • Level 5*

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.

Link to comment
  • 2 weeks later...

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.

Link to comment
  • 4 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...