Class SendSmtpEmailSender

java.lang.Object
software.xdev.brevo.model.SendSmtpEmailSender

public class SendSmtpEmailSender extends Object
**Mandatory if `templateId` is not passed**. Pass name (_optional_) and email or id of sender from which emails will be sent. **`name` will be ignored if passed along with sender `id`**. For example, **{\"name\":\"Mary from MyShop\", \"email\":\"no-reply@myshop.com\"}** **{\"id\":2}**
  • Field Details

  • Constructor Details

    • SendSmtpEmailSender

      public SendSmtpEmailSender()
  • Method Details

    • name

      public SendSmtpEmailSender name(@Nullable String name)
    • getName

      @Nullable public String getName()
      description: Name of the sender from which the emails will be sent. **Maximum allowed characters are 70**. Applicable only when email is passed.
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • email

      public SendSmtpEmailSender email(@Nullable String email)
    • getEmail

      @Nullable public String getEmail()
      Email of the sender from which the emails will be sent. Mandatory if sender id is not passed.
      Returns:
      email
    • setEmail

      public void setEmail(@Nullable String email)
    • id

      public SendSmtpEmailSender id(@Nullable Long id)
    • getId

      @Nullable public Long getId()
      Id of the sender from which the emails will be sent. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). Mandatory if email is not passed.
      Returns:
      id
    • setId

      public void setId(@Nullable Long id)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string