SMS or Email from max
Hello!
I was wondering if anyone has any idea how i can get max to send me an SMS or an EMAIL.........
Any combination of programming languages is fine.... anyone got any ideas?
fanks!
Drk
I haven't tried it myself, but the first thing I'd probably try is using [jweb] to point some PHP (or some other language, that's just the one I'm comfortable with) page to send an email.
I think there may be some ways you could send an email with java--although I've never done it under any circumstance let alone in an [mxj], but worth a shot.
If you end up exploring any of this or come up with a new idea, let me know.
Drkovorkian wrote on Mon, 16 March 2009 01:02I was wondering if anyone has any idea how i can get max to send me an SMS or an EMAIL
-> [mxj net.mail.send]
It's in the standard distribution.
Can't use it on my PowerBook G4. I get this error in the Max window:
java.lang.NoClassDefFoundError: javax/mail/MessagingException
(mxj) unable to alloc instance of net.mail.send
J-F.
Jean-Francois Charles wrote on Mon, 16 March 2009 14:17Can't use it on my PowerBook G4. I get this error in the Max window:
java.lang.NoClassDefFoundError: javax/mail/MessagingException
(mxj) unable to alloc instance of net.mail.send
Did you read the help file from top to bottom ?
"This class requires the free JavaMail and the JavaBean Activation Framework libraries. Installation instructions can be found in mxj tutorial number 9."
I think I had the same error as you when I first tried to instanciate this class
p
Thanks. As often, "back to the tutorials..." (by the way, "mxj tutorials" are in the "java-doc" Max folder - not in the integrated help, as far as I know.)
J-F.
Drkovorkian wrote on Sun, 15 March 2009 17:02Hello!
I was wondering if anyone has any idea how i can get max to send me an SMS or an EMAIL.........
I've used the shell object to send email.
mz
mzed wrote on Tue, 17 March 2009 02:45I've used the shell object to send email.
But what about portability? Drkovorkian didn't tell us on what platform he's working.
Patrick Delges wrote on Tue, 17 March 2009 02:59mzed wrote on Tue, 17 March 2009 02:45I've used the shell object to send email.
But what about portability? Drkovorkian didn't tell us on what platform he's working.
When he saidwhat he said
Can't use it on my PowerBook G4.
I assumed he was running OSX.
mz
Hi.
Some good responses cheers!
I had a go with mxj net.mail.send and this Mxj program for gmail.
neither of which i got to work yet! But mainly cause i realised i'm supposed to giving a presentation on ambisonics tomorrow!
Quote:
But what about portability? Drkovorkian didn't tell us on what platform he's working.
My main platform is OSX, but actually the computer i want to email me is running XP, so that rules out terminal at least.
I'm sure the mxj implementation will be perfect. Although what i really want to do is send sms, but i suppose thats quite a bit harder.
Some of my googling on the topic of sending an SMS with java seems to imply that you'd have to connect to a phone or GSM modem to send the message.
Perhaps this thread may be of some help (and maybe have some solutions that don't require connecting to a phone over a comm port?):
Haven't had time to look into it in much detail, but perhaps it will be useful to you after your presentation is over.
Maybe http://en.wikipedia.org/wiki/SMS_gateway
could be useful.
J-F.
Jean-Francois Charles wrote on Tue, 17 March 2009 16:46Maybe http://en.wikipedia.org/wiki/SMS_gateway
could be useful.
J-F.
That is great, I didn't know you could do that. Too bad there's not a standardized format for all carriers, but oh well. So using mxj net.mail.send plus the correct SMS recipient formatting (like sprint for example is number@messaging.sprintpcs.com) would work fine. I tested it with my email program and it worked, plus if the SMS recipient replies using their phone, you get the reply as an email.
This could be really handy if there's a big event or large-scale game or something going on where people need to be in contact using their phones. The main messages could be send via Max once you have the numbers and the carriers (and the formatting could be handled with a dropdown or coll or something), and of course you could select who to send to (preset to gates, so simple). Thanks for the info... once again, there are ways to do it with other programs, but done a certain way, it can all be done in Max.
Hopefully people won't start spamming texts out to all their friends.... turn on the metro and forget to turn it off.... oops
Quote:I've used the shell object to send email.
Quote:But what about portability? Drkovorkian didn't tell us on what platform he's working.
Try this one in a message box, click and... enjoy:
;
max launchbrowser "mailto:me@anywhere.blah?subject=blah blah blah&body=Blah, Blah, Blah :-)"
The message to Max version is great - is there a command that can be added to include an attachment, say an audio file from the folder the patch is in?
Several shot-in-the-dark attempts at adding a ...&attach=test.txt don't work, though they don't cause an error either.
I kind of doubt that's possible, but I'm not totally sure. You can use jit.uldl to send files though.
Thanks, I've used jit.uldl quite a bit to pull data from the web, but not send it. Can the upload be used to send a file to an email account?
To be more explanatory: I want to create a standalone that is part of a gallery installation. As visitors record sounds, I'd like for them to be able to send those files to themselves as email attachments. I've seen some ways to do this in Max with Java, but I couldn't figure it out and like a simple standalone that doesn't require any extra pieces to be installed.
I suppose it could upload a file and email a URL to a visitor as well. Not ideal but easy to do.
I can't make [mxj net.mail.send] work.
I've installed JavaMail and the JavaBean Activation Framework libraries. And nothing happens.. it says "sent" but there is no mail at all.. what can I do?
A command line for shell?
nevermind, I've made it...!
>;
>max launchbrowser "mailto:me@anywhere.blah?subject=blah blah blah&body=Blah, >Blah, Blah :-)"
This doesn't send the mail do it ? Just writes it ?
Ad.
That's right, it just opens an email with those contents in your default email program.
Too bad, it would have been just great… Anyway I did it with shell: Here's to fill the message box
osascript -e 'tell application "Mail"' -e 'set theNewMessage to make new outgoing message with properties {subject:"Bonjour",content:"Ceci est un petit essai de text",visible:true}' -e 'tell theNewMessage' -e 'make new to recipient at end of to recipients with properties {address:"xxx@xxx.com"}' -e 'send' -e 'end tell' -e 'end tell'
Ad, This is great!!!
Thank you!
Hi all, found a better solution with python and the shell object. Can just run this python file from shell and works way better, you do have to allow less secure apps to access your email.
import smtplib
server = smtplib.SMTP_SSL("smtp.gmail.com", 465)
server.login("youremail@gmail.com", "yourpassword")
server.sendmail("sendersemail@gmail.com", "receiveremail@gmail.com", "This is a test of the automated email system")
server.quit()