Type
magento2-module
Magento 2 Mailjet Module
magento2-module
MIT
None
None
None
None
None
Mailjet Sync
You can save guest subscription :
$factory = $this->subscriberFactory->create();
if (strlen($lastname) > 0) {
$factory->setSubscriberLastname($lastname);
}
if (strlen($lastname) > 0) {
$factory->setSubscriberFirstname($firstname);
}
if (strlen($dob) > 0) {
$factory->setSubscriberDob($dob);
}
$factory->subscribe($email);