Interface EmailClient
Deprecated, for removal: This API element is subject to removal in a future version.
Klient pocztowy, służący do wysyłania wiadomości
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.mail.internet.MimeMessagecreateMimeMessage(String[] to, String[] cc, String[] bcc, String subject, String content, String[] asFilePaths, String[] asFileNames, boolean isHtml) Deprecated, for removal: This API element is subject to removal in a future version.jakarta.mail.SessionDeprecated, for removal: This API element is subject to removal in a future version.Zwraca sesje klientagetUser()Deprecated, for removal: This API element is subject to removal in a future version.Zwraca użytkownika klientabooleanDeprecated, for removal: This API element is subject to removal in a future version.Sprawdza, czy klient posiada stworzoną sesjevoidsendMessage(jakarta.mail.internet.MimeMessage mimeMessage) Deprecated, for removal: This API element is subject to removal in a future version.Wysyła wiadomość email na podany adresvoidsendMessage(String[] to, String[] cc, String[] bcc, String subject, String content, String[] asFilePaths, String[] asFileNames, boolean isHtml) Deprecated, for removal: This API element is subject to removal in a future version.Wysyła wiadomość email na podany adresvoidDeprecated, for removal: This API element is subject to removal in a future version.Wysyła wiadomość email na podany adresvoidsendMessage(String to, String subject, String content, String[] asFilePaths, String[] asFileNames, boolean isHtml) Deprecated, for removal: This API element is subject to removal in a future version.Wysyła wiadomość email na podany adresvoidsetSourceAddress(String sourceAddress) Deprecated, for removal: This API element is subject to removal in a future version.Ustawia adres źródłowy klientowi
-
Method Details
-
sendMessage
void sendMessage(String to, String subject, String content, String[] asFilePaths, String[] asFileNames) Deprecated, for removal: This API element is subject to removal in a future version.Wysyła wiadomość email na podany adres- Parameters:
to- Adresat wiadomościsubject- Temat wiadomościcontent- Zawartość wiadomościasFilePaths- Ścieżki do plikówasFileNames- Nazwy plików
-
sendMessage
void sendMessage(String to, String subject, String content, String[] asFilePaths, String[] asFileNames, boolean isHtml) Deprecated, for removal: This API element is subject to removal in a future version.Wysyła wiadomość email na podany adres- Parameters:
to- Adresat wiadomościsubject- Temat wiadomościcontent- Zawartość wiadomościasFilePaths- Ścieżki do plikówasFileNames- Nazwy plikówisHtml- Czy ustawić typ zawartości na html
-
sendMessage
void sendMessage(String[] to, String[] cc, String[] bcc, String subject, String content, String[] asFilePaths, String[] asFileNames, boolean isHtml) Deprecated, for removal: This API element is subject to removal in a future version.Wysyła wiadomość email na podany adres- Parameters:
to- Adresat wiadomościcc- Adresy, na które ma zostać wysłana kopiabcc- Adresy, na które ma zostać wysłana ukryta kopiasubject- Temat wiadomościcontent- Zawartość wiadomościasFilePaths- Ścieżki do plikówasFileNames- Nazwy plikówisHtml- Czy ustawić typ zawartości na html
-
sendMessage
void sendMessage(jakarta.mail.internet.MimeMessage mimeMessage) Deprecated, for removal: This API element is subject to removal in a future version.Wysyła wiadomość email na podany adres- Parameters:
mimeMessage- Wiadomość Mime
-
createMimeMessage
jakarta.mail.internet.MimeMessage createMimeMessage(String[] to, String[] cc, String[] bcc, String subject, String content, String[] asFilePaths, String[] asFileNames, boolean isHtml) Deprecated, for removal: This API element is subject to removal in a future version. -
hasSession
boolean hasSession()Deprecated, for removal: This API element is subject to removal in a future version.Sprawdza, czy klient posiada stworzoną sesje -
setSourceAddress
Deprecated, for removal: This API element is subject to removal in a future version.Ustawia adres źródłowy klientowi- Parameters:
sourceAddress- Adres źródłowy
-
getSession
jakarta.mail.Session getSession()Deprecated, for removal: This API element is subject to removal in a future version.Zwraca sesje klienta- Returns:
- Sesja
-
getUser
String getUser()Deprecated, for removal: This API element is subject to removal in a future version.Zwraca użytkownika klienta- Returns:
- Użytkownik
-