RVD 1 Posted October 19, 2013 Share Posted October 19, 2013 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 :Todo for Ann Todo for Bob Todo for Chuckwith 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
Level 5* jefito 5,586 Posted October 19, 2013 Level 5* Share Posted October 19, 2013 If Ann, Bob, and Chuck already can access the shared notebook as you imply, why do you need to send them an email? Link to comment
RVD 1 Posted October 19, 2013 Author Share Posted October 19, 2013 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 :To Ann to take bacon and eggs from the fridge To Bob to cook them To Chuck to eat that stuffEach one has to check his box when his task is madeIt 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* jefito 5,586 Posted October 20, 2013 Level 5* Share Posted October 20, 2013 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
RVD 1 Posted October 29, 2013 Author Share Posted October 29, 2013 Succeeded to do it using a perl script from my linux server: #!/usr/bin/perluse strict;use warnings;use MIME::Lite;# Parametres messagemy $srv_smtp = 'mysmtp.server';my $obj_msg = '@Personnel #nouveau_serveur'; #@Personnel is my notebook and nouveau_serveur is a tagmy $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 Link to comment
Level 5* jefito 5,586 Posted October 29, 2013 Level 5* Share Posted October 29, 2013 Nicely done (in theory, I am not Perl-fluent). Link to comment
TroyC 24 Posted March 6, 2014 Share Posted March 6, 2014 You might try the new IFTTT recipe that makes this a bit easier. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.