Hi all, Sorry for the delay...
I have tried to run the "JavaMail" like requested and here is the error ... basically the same as when verifying in the administrator. Type Application Detail 501 5.0.0 HELO requires domain address Tag Context CFSCRIPTJAVA (/workingsites/index.cfm, Line=1, Column=1) Source 1: 2: running "java" email test..... 3: 4: <cfscript language="java" jarlist="mail.jar"> 5: import java.util.*; ^ Snippet from underlying CFML source I'm guessing this means there is something wrong with the java engine Vs OpenBD? Any guesses? Thanks, Alan Cole (PGP Key ID: 0x82D8E0C7) Begin forwarded message: > From: Matthew Woodward <[email protected]> > Subject: Re: [OpenBD] Mail server connection issue > Date: March 29, 2012 12:26:49 AM EDT > To: [email protected] > Reply-To: [email protected] > > On Wed, Mar 28, 2012 at 1:58 PM, Alan Cole <[email protected]> wrote: > How would I test the use of "JavaMail"? > > Just replace "your.mail.server" and the email addresses in the example below. > > <cfscript language="java" jarlist="mail.jar"> > import java.util.*; > import javax.mail.*; > import javax.mail.internet.*; > > Properties props = new Properties(); // Properties props = > System.getProperties(); > props.put("mail.smtp.host", "your.mail.server"); > > Session session = Session.getDefaultInstance(props, null); > > Message msg = new MimeMessage(session); > msg.setFrom(new InternetAddress("[email protected]")); > msg.addRecipient(Message.RecipientType.TO, new > InternetAddress("[email protected]")); > msg.setSubject("Test from JavaMail"); > msg.setContent("This is the message body", "text/plain"); > > Transport.send(msg); > </cfscript> > -- > Matthew Woodward > [email protected] > http://blog.mattwoodward.com > identi.ca / Twitter: @mpwoodward > > Please do not send me proprietary file formats such as Word, PowerPoint, etc. > as attachments. > http://www.gnu.org/philosophy/no-word-attachments.html > -- > online documentation: http://openbd.org/manual/ > google+ hints/tips: https://plus.google.com/115990347459711259462 > http://groups.google.com/group/openbd?hl=en -- online documentation: http://openbd.org/manual/ google+ hints/tips: https://plus.google.com/115990347459711259462 http://groups.google.com/group/openbd?hl=en
