Skip to content

Conversation

midori-no-risu
Copy link
Contributor

public function getNewInstance()
{
$email = parent::getNewInstance();
$email->setSendDate(new \DateTime());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm not sure this will work. When you set sendDate to "now", then we will send this info to sendgrid, but when it will be received by sendgrid, "now" will be already in the past and i'm not sure sendgrid will ever send that email.
This field is used when you need to send email in the future. If you don't set it, email will be send immediately.

…nto 6329-update-send-email-screen

Conflicts:
	Resources/views/Admin/CRUD/email_send.html.twig
…nto 6329-update-send-email-screen

Conflicts:
	Validator/Constraints/EmailSendConstraintValidator.php
@@ -58,8 +58,11 @@ protected function configureFormFields(FormMapper $formMapper)
'expanded' => false,
'required' => false,
))
->add('isHtmlContent', 'checkbox', array(
'required' => false
->add('sendImmediately', 'checkbox', array(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i believe all emails by default will be sent immediately, except when you set schedule date

@AlexKovalevych
Copy link
Contributor

You have some mistakes in validator logic, please figure it out and fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants