public final class DelegateSendGridClient extends Object implements SendGridClient
SendGrid
object.Constructor and Description |
---|
DelegateSendGridClient(com.sendgrid.SendGrid delegate)
Constructor.
|
public DelegateSendGridClient(com.sendgrid.SendGrid delegate)
delegate
- the entry point to the SendGrid libraryIllegalArgumentException
- if provided delegate is nullpublic void send(Email email) throws com.sendgrid.SendGridException
SendGridClient
send
in interface SendGridClient
email
- the email to send, cannot be null
com.sendgrid.SendGridException
- an unexpected error occurred when trying to send the emailCopyright © 2021. All rights reserved.