Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticket #6329 Update send email screen #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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