Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
📝 update javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
venusdrogon committed Oct 15, 2019
1 parent 3f6df9d commit 94ceaae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@
public abstract class AbstractMailSenderTest{

/** The Constant folder. */
private static final String folder = "/Users/feilong/Development/DataCommon/Files/Java/config/";
private static final String folder = "/Users/feilong/Development/DataCommon/Files/Java/config/";

//---------------------------------------------------------------

/** The mail sender config. */
protected MailSenderConfig mailSenderConfig;

static final String toEmail = "xin.jin@baozun.com";

//---------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public class EmailCalendarTest extends AbstractMailSenderTest{
@Test
public void testEmailTest() throws Exception{
String from = "feilongtestemail@163.com";
String to = "xin.jin@baozun.com";
Properties prop = new Properties();
prop.put("mail.smtp.host", "smtp.163.com");

Expand All @@ -33,6 +32,7 @@ public void testEmailTest() throws Exception{
message.addHeaderLine("component=VEVENT");

message.setFrom(new InternetAddress(from));
String to = AbstractMailSenderTest.toEmail;
message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
message.setSubject("Outlook Meeting Request Using JavaMail");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public void send() throws Exception{

//---------------------------------------------------------------
String fromEmail = "feilongtestemail@163.com";
String toEmail = "xin.jin@baozun.com";
Session session = SessionFactory.createSession(mailSenderConfig);
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(fromEmail));
Expand Down

0 comments on commit 94ceaae

Please sign in to comment.