SMS or Email from max

Mar 16, 2009 at 12:02am

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

#42873
Mar 16, 2009 at 4:01am

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.

#153468
Mar 16, 2009 at 8:21am
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.

#153469
Mar 16, 2009 at 1:17pm

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.

#153470
Mar 16, 2009 at 1:44pm
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

#153471
Mar 16, 2009 at 7:44pm

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.

#153472
Mar 17, 2009 at 1:45am
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

#153473
Mar 17, 2009 at 9:59am
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.

#153474
Mar 17, 2009 at 9:05pm
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

#153475
Mar 17, 2009 at 9:34pm

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.

#153476
Mar 17, 2009 at 9:44pm

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.

#153477
Mar 17, 2009 at 9:46pm

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

#153478
Mar 19, 2009 at 2:36am
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

#153479
Mar 20, 2009 at 2:04am
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 :-)”

#153480
Apr 1, 2010 at 5:49pm

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.

#153481
Apr 3, 2010 at 12:46am

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

#153482
Apr 3, 2010 at 3:07pm

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.

#153483
Apr 13, 2010 at 9:19am

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?

#153484
Apr 13, 2010 at 9:22am

nevermind, I’ve made it…!

#153485
Jun 14, 2010 at 3:53pm

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

#153486
Jun 15, 2010 at 6:39pm

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

#153487
Jun 15, 2010 at 8:46pm

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’

#153488
Oct 4, 2010 at 11:45am

Ad, This is great!!!

Thank you!

#153489

You must be logged in to reply to this topic.