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

Adds links to media in email when forwarding to SendGrid #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

philnash
Copy link
Contributor

@philnash philnash commented Apr 6, 2020

Description

According to #92 when sending a message consisting of just media content the forward-to-sendgrid function errors. This PR will create an email body out of the message body and any media URLs that have been sent.

More ideal would be downloading and attaching the media. This is a quickish fix for now.

Does this work for you @jeremiahlee?

Checklist

  • I ran npm test locally and it passed without errors.
  • I acknowledge that all my contributions will be made under the project's license.

Related issues

#92

@ghost
Copy link

ghost commented Apr 6, 2020

Yes, @philnash, this works. Thank you. I agree that, ideally, the media would be email attachments. I seem to recall somewhere in Twilio's exhaustive documentation that the media files also have to be explicitly deleted from Twilio's servers, but I could not find the cost or limit on that storage.

Copy link
Member

@dkundel dkundel left a comment

Choose a reason for hiding this comment

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

Looks good but can you add a test for that scenario @philnash? :)

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