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

Missing send_each_at option #989

Open
prayashm opened this issue May 11, 2021 · 1 comment
Open

Missing send_each_at option #989

prayashm opened this issue May 11, 2021 · 1 comment
Labels
status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap

Comments

@prayashm
Copy link

Issue Summary

Unable to use send_each_at option for scheduled emails as documented here:
https://sendgrid.com/docs/for-developers/sending-email/scheduling-parameters/#send-each-at

I intend to send mails to people at a fixed time in their timezone e.g. 10am IST and 10am GMT.

Steps to Reproduce

  1. Send with mail.send_each_at = [1620766504, 1620767504]
  2. The emails come instantly, instead of at the scheduled time

Code Snippet

mail = Mail(
	from_email=From('[email protected]'),
	to_emails=[To('[email protected]'), To('[email protected]')],
	is_multiple=True,
)

mail.send_each_at = [1620766504, 1620767504]

client.send(mail)

Exception/Log

# no exception, code executes successfully.

Technical details:

  • sendgrid-python version: 6.6.0
  • python version: 3.7.9
@thinkingserious thinkingserious added status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap labels May 17, 2021
@thinkingserious
Copy link
Contributor

Hello @prayashm,

We have not implemented this feature as part of the mail helper, so I'm leaving this open for consideration. This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.

In the mean time, you can build the call without using the mail helper (full example).

With best regards,

Elmer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap
Projects
None yet
Development

No branches or pull requests

2 participants