Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

520
Views
How to Send Pdf as MMS by Twilo Using Nodejs?

I have a Test Twilio Number which is capable to send SMS,MMS,Voice Call . I am Successful in sending SMS and Voice call .

I am facing a challenge to send PDF as MMS .. As per the TwilioDocs Accepted-mime-types PDF is a Supported Type.

While am trying to Send by using the Syntax :-

var accountSid = '<accountSid >';   
var authToken = '<authToken>';       
var client = require('twilio')(accountSid, authToken);
         client.messages.create({
            to: "<validnum>",
            from: "<validFrom>",  
            body: "Test Message ",
            mediaUrl: "http://docdro.id/GAak2pV"
            mediaContentType:"pdf"
        }, function(err, message) {
            if(err){
                console.log('Error Alert For Message '+JSON.stringify(err));
            }else{
                console.log(message.sid);
            }
        });

With the Above Code i can able to send JPG/PNG but PDF is being Failed by an Error:-

(Error: 30008) Unknown error. None

I have no clue Totally !! Somebody help me with a Saving Suggestion Thanks, Prasad.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Twilio developer evangelist here.

As Andy is pointing out in the comments, the URL to DropBox that you are using is actually pointing towards an HTML page that contains your PDF. You need the direct link to the PDF file itself, Twilio does not do any work to discover the PDF file within pages.

If you can host the file on S3, or anywhere else publicly, yourself then you will have more luck with this.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!