Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Send Email wAuthentication Freezes on Port 465

Featured Replies

I am trying to smtp thru Zimbra, which requires port 465, and SSL

but when I edit the groovy code to use Port 465, it freezes ( beach ball )

It does work thru Outlook Express, so the account info is correct

greg

  • 2 weeks later...

scriptmaster's built-in email module doesn't support SSL. You will need to use our Email plugin, which I think i responded to your question about already.

  • Author

Thanks. I wasted a *lot* of time on this, but did learn something

Scriptmaster is an amazing tool, if you have the patience to find the right code

I found the Groovy code for Gmail also works for Zimbra thru Scriptmaster, and appears to use SSL

greg

import javax.mail.*;

import javax.mail.internet.*;

Properties props = new Properties();

props.put("mail.transport.protocol", "smtps");

//props.setProperty("mail.smtp.host", smtpHost);

props.put("mail.smtps.host", smtpHost);

props.put("mail.smtps.auth", "true");

MimeMessage msg = new MimeMessage(Session.getInstance(props));

Multipart content = new MimeMultipart();

// first the message body

MimeBodyPart bodyPart = new MimeBodyPart();

bodyPart.setContent(htmlBody, "text/html");

content.addBodyPart(bodyPart);

// then the attachment

if (attachmentPath) {

MimeBodyPart attachmentPart = new MimeBodyPart();

attachmentPart.attachFile(attachmentPath);

content.addBodyPart(attachmentPart);

}

msg.setContent(content);

msg.setSubject(subject);

msg.setFrom(new InternetAddress(from));

msg.setRecipient(Message.RecipientType.TO, new InternetAddress(to));

//Transport transport = Session.getDefaultInstance(props).getTransport("smtp");

Session mailSession = Session.getDefaultInstance(props);

mailSession.setDebug(true);

Transport transport = mailSession.getTransport();

//int port = -1; // use the default port

//int port = 587; // use the alt port, e.g. AOL

int port = 465; // use the Zimbra port

//int port = 25;

transport.connect(smtpHost, port, username, password);

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

transport.close();

return true

>scriptmaster's built-in email module doesn't support SSL. You will need to use our Email plugin, which I think i responded to your question about already.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.