Jump to content
Server Maintenance This Week. ×

ScriptMaster email with authentication


This topic is 5911 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Is it possible to do this? I found a site (http://java.sun.com/products/javamail/FAQ.html#smtpauth) that says that this can be done by changing Transport.send(msg); into

String protocol = "smtp";

props.put("mail." + protocol + ".auth", "true");

...

Transport t = session.getTransport(protocol);

try {

t.connect(username, password);

t.sendMessage(msg, msg.getAllRecipients());

} finally {

t.close();

}

but when I try this I just get an error message about an unexpected token.

Crispin

Link to comment
Share on other sites

It's certainly possible to do (our email plugin does this and a lot more, http://www.360works.com/emailplugin/)

Can you enter your script in the scriptmaster example file, click the 'copy to clipboard' button and paste the result in here?

Link to comment
Share on other sites

This topic is 5911 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.