-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmailAction.java
More file actions
71 lines (52 loc) · 1.2 KB
/
EmailAction.java
File metadata and controls
71 lines (52 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package com.nxdcms.action;
import java.util.ArrayList;
import java.util.List;
import com.nxdcms.dao.impl.MailAuthenticator;
import com.nxdcms.entity.Student;
import com.opensymphony.xwork2.ActionSupport;
public class EmailAction extends ActionSupport {
Student student = new Student();
MailAuthenticator mail = new MailAuthenticator();
List<Student> list = new ArrayList<Student>();
String email = null;
String src = null;
public String execute() throws Exception {
System.out.println(email);
System.out.println(src);
if(mail.SendEmail(email, src)){
return SUCCESS;
}else{
return ERROR;
}
}
public MailAuthenticator getMail() {
return mail;
}
public void setMail(MailAuthenticator mail) {
this.mail = mail;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getSrc() {
return src;
}
public void setSrc(String src) {
this.src = src;
}
public Student getStudent() {
return student;
}
public void setStudent(Student student) {
this.student = student;
}
public List<Student> getList() {
return list;
}
public void setList(List<Student> list) {
this.list = list;
}
}