Hi I created a sendemail task that passes all the parameters but when I use tasker run script after few seconds get a popup : SL4A ABORTED.
I put sendemaiA.py in sl4a folder, but if I open sl4a app, It doesn't recognize the script... could you help me? regards
My tasker does not refresh the CNUM and the CNAME values. It is stuck on a old set of values. How do I solve this ?
It works great! When I lay the phone on it's left side it records audio. When I pick it up, it stops recording and emails me the audio file.
Have you tried removing and reinstalling SL4A and Python as described. In the Wiki links?
http://tasker.wikidot.com/email
When you install Python open it from the app drawer and install the interpreters.
Hope that helps. If not, then try reinstalling SL4A.
I had this working a few weeks a little while ago, but now for some reason it has stopped. When i enable terminal in the run SL4A script, i get the errorno module named _socket after it tries to import mimetypeswhat could of gone wrong in that time? Possibly an update or something I've done?Thanks for hints
Great! Glad to help!
First off I would download the file from the web straight to your phone. Then move it from the downloads folder to sl4a scripts folder using something like root explorer (free on the play store)
Line 85 is going to be around the mail code, are you sending it to a Gmail account? Also check your variables a typo will break the whole thing.
Dale
i'm desperate...I followed all steps...have Python, SL4A.....sendemailA.py is in the SL4A script folder, sena ll the correct parameters, but I can't get Tasker to email the pic. Double-checked everything. The only thing I was wondering if it matters how the sendemailA.py script looks like..for instance, wrapped or does it have the be in a line by line format? I copied the line by line script from wordpad to my phone via my computer, and I get a syntax error in line 85, but the script is exactly as the sendemailA.py script you find on the web. Any suggestions?
I downloaded the file now directly to my phone and getting the same error. I am sending it from a gmail account to another gmail account. My phone is not rooted. Not sure if that is needed.
Don't think it has to be rooted. Maybe baudi will correct me.
I had issues when trying to set it the first time turned out to be an error in my variable.
What exactly throws the error sl4a?
You do have python installed correctly? After you download it you have to find it in your app drawer and install the interpreters.
Dale
Here's a pic of mine.
Perhaps you should only include the user name not the complete email (@gmail.com) on the user variable.
Also make sure the attached file location is indeed in /mnt/sdcard...
and not /sdcard.....
I can zoom in and read it. I will try to reproduce the error on mine...
But gotta go fix the kids some pancakes right now.....
Dale
This is where I have mine. See the location path at the top.
I installed Python 3
Thanks Baudi and Dale. Looks like installing 2.62 did the trick. Still messing around with it, si I might call on you later! :-)
Would having special characters like ", !, $, £, % etc. in your Gmail password stop the script from working?
Also, I have added these as variables in Tasker but the script doesn't come up. I have had to edit the actual 'sendemailA.py' script in SL4A, is that a good idea?
I used the script and it works perfectly for me but I recently enabled Google's 2-step verification which stopped the script from working automatically. I turned it off and it's working fine again but my question is is there a way to send the email from another account besides gmail or should I create a dummy account for this? anything besides changing the script?
Profile: Backup Profile (26)
Time: From 23:23 Till 23:24
Enter: Send Backup (31)
A1: Run SL4A Script [ Name:sendemailA.py Terminal:Off Pass Variables:Pete, GmailAddress, passcode, em...@gmail.com, tablet, backup, /Tasker/userbackup.xml ]
Matt
Same thing happens with me
On Wednesday, May 8, 2013 6:03:09 PM UTC+3, Brian Myers wrote:I'm good with tasker and SL4A. The scripts, variables, and everything else haven't given me any trouble.I get the email, but with no attachment. I have triple checked my photo locations on my phone and then in tasker's %EMAIL_ATTACH. Still no luck.Any ideas?
On Monday, October 25, 2010 10:28:39 AM UTC-4, baudi wrote:
I've written an SL4A Python script that lets you send an email with
attachments without going through the compose prompt.
Details here: http://tasker.wikidot.com/sl4a
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/5b5PFQ2fqqs/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
That is exactlynwhat mine looks like, exactly, have spent the last three days working it, looking for extra spacing, spelling, anything that could be wrong.
But is the senemailA.py ok if it is in the script as a long run on code, or is it supposed to be set up on seprit lines with tabing and spacing? I had to copy past the code and that is what it did when I pasted. I keep reading on threads that you are supposed to download it but I don't see an actual download file or script.
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/5b5PFQ2fqqs/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker?hl=en.
I don't know if the pic will show up or not but its a screen shot of the code after pasting it into the sl4 script creater. And the file shows up in the list of scripts.
When I run the tasker it runs and I get notification at top of screen that sl4 is running the sendemailA.py script. I'm just not getting anything sent or receved.
Yes python and sl4 is installed. Fallowed the instuctions on that, the link you posted for the script takes me to the script that I copy/pasted. But it won't past in the same format. No spacing were the lines are supposed to end and everything is one long line when I turn wraping off.
I am on my tab 2 7.0. On the 4g LTE I will try doing Iit on the computer and moving Iit over. Am I going to be able to do that with out rooting the tablet? I will try. Be back to update after kids go to bed.
Thank you for the help
I had two files saved, one spelled wrong one right, checked and they bot had same content.
Idea......
Seing as how I just realysed that the only computer we have is junk... won't open the web page were the script is,
Could someone email me the file in the right formate so I can just put it in the sl4a script location.
Or is there an andriod ap that will allow this to keep its structure when pasting.
At this point I know I could just pay for an app that does what this will and probably more. But this has gotten to be a battle and I must win...
I was looking at the code after it pasted into sl4a. I noticed that because it did not hold its structure (one long run on code now) there are no spaces between some of the code.
Code looks like this after I past it into any text edit application. You will notice that there is no space for "import mimetypes for email" when the "types for email" is supposed to be on the next line....
import os import glob import mimetypes from email import encoders from email.mime.audio import MIMEAudio from email.mime.base import MIMEBase from email.mime.image import MIMEImage from email.mime.
I hope this makes moe sense, having problems explaining, but that is the first part of the code I pasted from the clipboard on my tablet.
I was able to save it in .pdf format. So I printed it and am going to take the time to fix it using the papper as a guide. This should work...... in theory.
If there is a better way of doing this with out having to manualy fix this code please let me know. Not looking forword to the this,
Thanks
Adam
Hey Adam, Sorry but I never realized that I posed in the 'with attachments' thread. I never needed to send attachments. I'm not really sure what part you're getting stuck at. Here is my wiki entry on how to create automatic email sending.Once you get that, I assume you'll need to code the program in your profile to attach a file. Sorry I don't really know how to do that part, though. Good luck!
On Sunday, June 2, 2013 2:37:22 AM UTC-4, Adam Qualmann wrote:On Tuesday, January 8, 2013 3:43:09 PM UTC-6, joe wrote:
> How is it that after 2 years the instructions on the wiki are still horrible?
>
>
> it says "include the parameters? What parameters? The variable names or the variable values? How should we put them in there? Should we use commas? Do we fill in the variables with our own values? Should we be editing the script. How about one simple example? I would be happy to change the wiki if I even knew how we should be putting these parameters into tasker, then maybe people won't waste an hour of their time like I have so far.
1 hour? I got 2 days on this and still stuck. And yes after 3 years you would think there would be, or at least a youtube vid. (When i get it working i might just do that)
Ok, that makes a lot of sense, I will find a computer that will work, (not my moms) looks like I'm gonna get to dust off my baby. (Asus desktop with lots of upgrades)
Thank you so much for the help,
After I get it working I am thinking about making a dumb dumb video for it and posting it to youtube. Well, maybe when I learn a lil more about python and sl4.
Could you help me with this?
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/5b5PFQ2fqqs/unsubscribe.
Visit this group at http://groups.google.com/group/tasker.
I gave up on the scrip and got an app called gotcha pro. MUCH easyer to set up but don't have ths bragging rights
I've written an SL4A Python script that lets you send an email with
attachments without going through the compose prompt.
Details here: http://tasker.wikidot.com/sl4a
Matt