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

Attach PDF from base64 URI? #156

Open
niharikaprasad opened this issue Aug 5, 2020 · 2 comments
Open

Attach PDF from base64 URI? #156

niharikaprasad opened this issue Aug 5, 2020 · 2 comments

Comments

@niharikaprasad
Copy link

I am working on making a React app and send email via frontend only. I don't mean to use backend api such as nodemailer. Hence I need react native solution. In attachments, can I add base64 string, instead of the path?

@evansendra
Copy link

@niharikaprasad were you able to achieve this?

@evansendra
Copy link

evansendra commented Apr 26, 2022

Oh I was able to do it just by adding

...
attachments: {uri: MY_BASE64_URI, type: 'pdf', name: 'myname.pdf'}
...

But without name and just the uri, it threw an error

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

No branches or pull requests

2 participants