Forums > MaxMSP

SMS or Email from max

March 16, 2009 | 12:02 am

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


March 16, 2009 | 4:01 am

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.


March 16, 2009 | 8:21 am
Drkovorkian wrote on Mon, 16 March 2009 01:02
I 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.


March 16, 2009 | 1:17 pm

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.


March 16, 2009 | 1:44 pm
Jean-Francois Charles wrote on Mon, 16 March 2009 14:17
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

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 Smile

p


March 16, 2009 | 7:44 pm

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.


March 17, 2009 | 1:45 am
Drkovorkian wrote on Sun, 15 March 2009 17:02
Hello!

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.

http://www.maxobjects.com/?v=objects&id_objet=1194&requested=shell&operateur=&id_plateforme=&id_format=&PHPSESSID=f5e6adb64b07dbe30d12166e02b3dbcb

mz


March 17, 2009 | 9:59 am
mzed wrote on Tue, 17 March 2009 02:45
I’ve used the shell object to send email.

But what about portability? Drkovorkian didn’t tell us on what platform he’s working.


March 17, 2009 | 9:05 pm
Patrick Delges wrote on Tue, 17 March 2009 02:59
mzed wrote on Tue, 17 March 2009 02:45
I’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 said

what he said
Can’t use it on my PowerBook G4.

I assumed he was running OSX.

mz


March 17, 2009 | 9:34 pm

Hi.

Some good responses cheers!

I had a go with mxj net.mail.send and this Mxj program for gmail.

http://www.cycling74.com/forums/index.php?t=msg&th=31732&start=0&rid=0&S=3765cce8dca5456100fa8f1e87f7586a

neither of which i got to work yet! But mainly cause i realised i’m supposed to giving a presentation on ambisonics tomorrow! Smile

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.


March 17, 2009 | 9:44 pm

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?):

http://forums.sun.com/thread.jspa?threadID=150292

Haven’t had time to look into it in much detail, but perhaps it will be useful to you after your presentation is over.


March 17, 2009 | 9:46 pm

Maybe http://en.wikipedia.org/wiki/SMS_gateway
could be useful.
J-F.


March 19, 2009 | 2:36 am
Jean-Francois Charles wrote on Tue, 17 March 2009 16:46
Maybe 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 Smile


March 20, 2009 | 2:04 am
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 :-)"


April 1, 2010 | 5:49 pm

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.


April 3, 2010 | 12:46 am

I kind of doubt that’s possible, but I’m not totally sure. You can use jit.uldl to send files though.


April 3, 2010 | 3:07 pm

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.


April 13, 2010 | 9:19 am

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?


April 13, 2010 | 9:22 am

nevermind, I’ve made it…!



Ad.
June 14, 2010 | 3:53 pm

>;
>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.


June 15, 2010 | 6:39 pm

That’s right, it just opens an email with those contents in your default email program.



Ad.
June 15, 2010 | 8:46 pm

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’


October 4, 2010 | 11:45 am

Ad, This is great!!!

Thank you!


Viewing 23 posts - 1 through 23 (of 23 total)