Sending Email From Max MSP

    Mar 12 2012 | 4:41 pm
    I've encountered an interesting problem of sending emails with an attachement from Max MSP. Although there are various forum threads* on the subject using the mxj net.mail.send object, I had no luck making it work with it.
    But, I came up with an extremely simple solution that doesn't require any java and programming magic. If you have a mac computer then you have the Automator application.
    You can than make a simple automator workflow/application that sends an email with an attachement (see the attached picture). It doesn't matter what the attachement is, it can be a picture that you export from jit.matrix or a sound file. The automator will attach it to the email and send the email to a specified address. Now all you need to do is to run the application from max msp once you've exported an image or the sound file. You can do that by simply sending a message to max like so:
    ; max launchbrowser "file:///"
    Max msp will run your app and the email will be sent.
    Hope it helps solve your problem Have Fun

    • Nov 18 2013 | 2:20 am
      Please can you explain a little more it seams very intresting but I dont arrive to do all the proces
    • Jun 02 2020 | 12:50 am
      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("", 465)
      server.login("", "yourpassword")
      server.sendmail("", "", "This is a test of the automated email system")