× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
ivangron reported 2010-05-14T21:53:32Z  · last modified 2010-05-19T16:21:01Z

aqua.mail.getDefaultServerSMTP()


Dev
Fun Fun
funfun
QA
Niels Gron
NielsGron
Priority Low
Complexity Unknown
Component Open API - General
Version 09.0

I try the following script:

try {

var cryptoobj = aqua.crypto.getSecureField('ieg');
var smtpserver = aqua.mail.getDefaultServerSMTP();
smtpserver.setUserName('ivangron@gmail.com');
smtpserver.setPassword(cryptoobj);
var msg1 = aqua.mail.newMessage();
msg1.addTo("ivangron@aquafold.com");    // set email address
msg1.setFrom("ivangron@aquafold.com");  // set email address
msg1.setSubject("Test - Default MAIL QUEUE SMTP");
msg1.setText("This is a test");
smtpserver.sendMail(msg1);

} catch ( e ) {
    print(e);
    aqua.exit();
}

I get the following exception:

JavaException: javax.mail.SendFailedException: Sending failed;
  nested exception is:
    class javax.mail.AuthenticationFailedException

Under file->options->E-mail->I don't put the username and password here.  So when I create aqua.mail.getDefaultServerSMTP() object, my question is should i be able to change the value of username and password?

if not, when i try and setUserName or any set method that wont actually except the value, should i get an exception to console so that I know it didn't work?

Issue #4130

Closed
Fixed
Resolved 2010-05-19T16:21:01Z
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017