-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Conversation
public function getNewInstance() | ||
{ | ||
$email = parent::getNewInstance(); | ||
$email->setSendDate(new \DateTime()); |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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
You have some mistakes in validator logic, please figure it out and fix it. |
https://exercise.codebasehq.com/projects/development/tickets/6329