PostUp Mail

Categories

Component ID

2855313

Component name

PostUp Mail

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

84

Component created

Component changed

Component body

PostUp Mail module provides a integration with PostUp.com service.
This module is only for developers.

How to use:

Drupal::service('postup_mail.sender')->send_mail_template('example@example.com');

or dinamyc

/**
 * {@inheritdoc}
 */
public static function create(ContainerInterface $container) {
  return new static(
    $container->get('postup_mail.sender')
  );
}

/**
 * Constructs a new RegisterForm.
 *
 * @param Drupalpostup_mailSenderInterface $sender
 *   The PostUp mail sender.
 */
public function __construct(Connection $database, RequestStack $request_stack, PreRegistrationInfo $pre_registration_info, SenderInterface $sender) {
  $this->sender = $sender;
}

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this->sender->send_mail_template($email);
}