Package de.xima.fc.api.system
Class MailAPI
- java.lang.Object
-
- de.xima.fc.api.ASubAPI
-
- de.xima.fc.api.system.MailAPI
-
public class MailAPI extends ASubAPI
API class for sending of system mails.- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description MailAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleansendClientMail(Mandant client, IBaseMailData mailData)Sends an email as the given clientbooleansendFeedbackMail(UserContext uc, Mandant client, IFeedbackMailData feedbackMailData)Send a feedback mail from the given client.booleansendInviteMail(UserContext uc, Vorgang vorgang, String mailTo, DefaultReplacerParameters params)booleansendLoginChangedMail(UserContext uc, Benutzer user, String password)Method for sending a mail with changed login data.booleansendOptInMail(UserContext uc, Vorgang vorgang)Sends an email as the given clientbooleansendResetPasswordMail(UserContext uc, Benutzer user, String url)Sends an email to theBenutzerfor resetting their password.booleansendSupportMail(UserContext uc, Mandant client, ISupportInquiryData supportInquiryData)Send a support mail from the given client.-
Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
-
-
-
Method Detail
-
sendLoginChangedMail
public boolean sendLoginChangedMail(UserContext uc, Benutzer user, String password)
Method for sending a mail with changed login data.- Parameters:
uc-UserContextthe user context in which the action is to be performed.user-Benutzerto which the mail should be sent.password-Stringthe new password ofBenutzers.- Returns:
Booleanwhether the action was successful or not.- Since:
- 2.4.3
-
sendResetPasswordMail
public boolean sendResetPasswordMail(UserContext uc, Benutzer user, String url)
Sends an email to theBenutzerfor resetting their password.- Parameters:
uc-UserContextin which the operation should be performed.user-Benutzerwhich should receive the email.url-StringURL for resetting the password.- Returns:
Booleanwhether the operation was successful or not.
-
sendClientMail
public boolean sendClientMail(Mandant client, IBaseMailData mailData)
Sends an email as the given client- Parameters:
client-Mandantsending the emailmailData-IBaseMailDatacontent of the mail- Returns:
Booleanwhether or not the email could be sent successfully- Since:
- 6.0.0
-
sendOptInMail
public boolean sendOptInMail(UserContext uc, Vorgang vorgang)
Sends an email as the given client- Parameters:
uc-UserContextthe user context in which the action is to be performed.vorgang-Vorgangsending the email- Returns:
Booleanwhether or not the email could be sent successfully- Since:
- 6.0.0
-
sendSupportMail
public boolean sendSupportMail(UserContext uc, Mandant client, ISupportInquiryData supportInquiryData)
Send a support mail from the given client. If no client is given tries using the system mail settings- Parameters:
uc-UserContextthe user context in which the action is to be performed.client-Mandantfor which to send the mailsupportInquiryData-SupportInquiryDatacontaining support inquiry information- Returns:
- Whether or not the email was sent successfully
- Since:
- 6.0.0
-
sendFeedbackMail
public boolean sendFeedbackMail(UserContext uc, Mandant client, IFeedbackMailData feedbackMailData)
Send a feedback mail from the given client. If no client is attempt to use the system mail settings- Parameters:
uc-UserContextthe user context in which the action is to be performed.client-Mandantfor which to send the mailfeedbackMailData-SupportInquiryDatacontaining feedback information- Returns:
- Whether or not the email was sent successfully
- Since:
- 6.0.0
-
sendInviteMail
public boolean sendInviteMail(UserContext uc, Vorgang vorgang, String mailTo, DefaultReplacerParameters params)
-
-