Giter VIP home page Giter VIP logo

Comments (4)

anton6 avatar anton6 commented on August 10, 2024 1

Answer is here http://stackoverflow.com/questions/38141637/react-native-send-photo-per-mail/38182998#38182998

from react-native-mail.

tarun29061990 avatar tarun29061990 commented on August 10, 2024

Can we send a video as an attachment?

from react-native-mail.

geirman avatar geirman commented on August 10, 2024

The answer @anton6 links to requires react-native-camera, but I'm trying to use this with react-native-image-picker and it's failing on iOS. I submitted a question on stack overflow.

https://stackoverflow.com/questions/47086300/attach-image-to-email-in-react-native

But the fundamental issue seems to be that I'm getting back a uri value that looks like this (doesn't work as the full path)...

file://var/mobile/Containers/Data/Application/983938D-5304-463C-BD05-D033E55F5BEB/Documents/images/224CA6DD-5299-48C3-A7CF-0B645004535F.jpg

Instead of something that looks like this

/Users/anton/Library/Developer/CoreSimulator/Devices/9A15F203-9A58-41C5-A4FC-EA25FAAE92BD/data/Containers/Data/Application/79FF93F9-BA89-4F4C-8809-277BEECD447D/Documents/EFFF0ECE-4063-4FE5-984E-E76506788350.jpg

which would apparently work. If anyone has a clue how to resolve this, I would appreciate it.

UPDATE

I have a working example implementation here (geirman/react-native-photo-emailer) for anyone interested. It's dated, but I expect it would still work

from react-native-mail.

ebouJ avatar ebouJ commented on August 10, 2024

+1

from react-native-mail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.