https://pastein.ru/t/p32

  скопируйте уникальную ссылку для отправки


  private JobParameters createJobParametersBuilder(
      String channelId,
      String senderEmailAddress,
      String senderEmailPassword,
      Map<String, String> senderSmtpProperties
  ) {
    final JobParameters params = new JobParametersBuilder()
        .addString(EmailioProperties.PROPERTY_CHANNEL_ID, channelId)
        .addLong(EmailioProperties.PROPERTY_TIMESTAMP_KEY, System.currentTimeMillis())
        .addString(EmailioProperties.PROPERTY_EMAIL_ADDRESS, senderEmailAddress)
        .addString(EmailioProperties.PROPERTY_EMAIL_PASSWORD, senderEmailPassword)
        .addString(EmailioProperties.PROPERTY_MAIL_SMTP_PORT,
            senderSmtpProperties.get(EmailioProperties.PROPERTY_MAIL_SMTP_PORT))
        .addString(EmailioProperties.PROPERTY_MAIL_SMTP_AUTH,
            senderSmtpProperties.get(EmailioProperties.PROPERTY_MAIL_SMTP_AUTH))
        .addString(EmailioProperties.PROPERTY_MAIL_SMTP_HOST,
            senderSmtpProperties.get(EmailioProperties.PROPERTY_MAIL_SMTP_HOST))
        .addString(EmailioProperties.PROPERTY_MAIL_SMTP_SOCKET_PORT,
            senderSmtpProperties.get(EmailioProperties.PROPERTY_MAIL_SMTP_SOCKET_PORT))
        .addString(EmailioProperties.PROPERTY_MAIL_SMTP_SOCKET_CLASS,
            senderSmtpProperties.get(EmailioProperties.PROPERTY_MAIL_SMTP_SOCKET_CLASS))
        .toJobParameters();
    return params;
  }