-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Setup SMTP for Incidents #98
Comments
Last I checked, CF workers do not have the ability to make or receive SMTP requests. You can use an API like mailgun or your own to send and receive mail though. Could be wrong, I haven't checked in a few months so maybe they added something recently? |
Maybe it's possible to use this to send email? https://blog.cloudflare.com/sending-email-from-workers-with-mailchannels/ |
Hope for smtp too |
FWIW, it is not too hard to add email notifications, it goes like this: You can only send emails from a domain that you control, and you need to add a TXT record to that domain's DNS, which looks like this:
where You'd probably also want a secret or a config option for the sender's email. Great project, btw! EDIT: two possible gotchas. First, some mail servers like gmail.com require at least an SPF record, see the example at https://medium.com/@tristantrommer/how-to-send-free-transactional-emails-with-worker-mailchannels-via-cloudflare-workers-818b787b33f9 Second, that SPF record might interfere with an existing one, e.g. if you also set up email forwarding on cloudflare. Then you need both mail servers in the SPF record, e.g.
|
How can we setup SMTP for receiving email for incidents.
The text was updated successfully, but these errors were encountered: