Author: pmouawad
Date: Sun Feb 5 13:27:02 2012
New Revision: 1240725
URL: http://svn.apache.org/viewvc?rev=1240725&view=rev
Log:
Bug 52603 - MailerVisualizer : Enable SSL , TLS and Authentication
Javadocs+fix to missing case
Modified:
jmeter/trunk/src/components/org/apache/jmeter/reporters/MailerModel.java
Modified: jmeter/trunk/src/components/org/apache/jmeter/reporters/MailerModel.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/reporters/MailerModel.java?rev=1240725&r1=1240724&r2=1240725&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/reporters/MailerModel.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/reporters/MailerModel.java Sun Feb 5 13:27:02
2012
@@ -231,7 +231,9 @@ public class MailerModel extends Abstrac
try {
sendMail(getFromAddress(), addressList, getSuccessSubject(), "URL Restarted:
"
- + sample.getSampleLabel(), getSmtpHost());
+ + sample.getSampleLabel(), getSmtpHost(),
+ getSmtpPort(), getLogin(), getPassword(),
+ getMailAuthType());
} catch (Exception e) {
log.error("Problem sending mail", e);
}
@@ -314,6 +316,12 @@ public class MailerModel extends Abstrac
* the message-body.
* @param smtpHost
* the smtp-server used to send the mail.
+ * @param smtpPort the smtp-server port used to send the mail.
+ * @param user the login used to authenticate
+ * @param password the password used to authenticate
+ * @param mailAuthType {@link MailAuthType} Security policy
+ * @throws AddressException
+ * @throws MessagingException
*/
public void sendMail(String from, List<String> vEmails, String subject,
String attText, String smtpHost,
@@ -381,6 +389,11 @@ public class MailerModel extends Abstrac
Transport.send(msg);
}
+ /**
+ * Send a Test Mail to check configuration
+ * @throws AddressException
+ * @throws MessagingException
+ */
public synchronized void sendTestMail() throws AddressException, MessagingException {
String to = getToAddress();
String from = getFromAddress();
|