com.ferri.portlet.utils
Class MailUtils
java.lang.Object
com.ferri.portlet.utils.MailUtils
public class MailUtils
- extends Object
Calsse on deleguen les utilitats de mailing.
- Author:
- dferri
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
userAccount
private String userAccount
hashcode
private String hashcode
MailUtils
public MailUtils(String userAccount,
String hashcode)
- Creacio MailUtils
- Parameters:
userAccount
- hashcode
-
envioMail
public boolean envioMail(String from,
String[] to,
String subject,
String body,
File attachment)
- Envia un mail amb una compte gmail preconfigurat
- Parameters:
from
- Stringto
- String[]subject
- Stringbody
- String amb format htmlattachment
- File
- Returns:
- boolean resultat
getUserAccount
public String getUserAccount()
- Returns:
- the userAccount
setUserAccount
public void setUserAccount(String userAccount)
- Parameters:
userAccount
- the userAccount to set
getHashcode
public String getHashcode()
- Returns:
- the hashcode
setHashcode
public void setHashcode(String hashcode)
- Parameters:
hashcode
- the hashcode to set