Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 23
Registered: ‎08-09-2010
My Device: 9800
My Carrier: Airtel

sending email with pdf attachment in blackberry

Hi all, I need to integrate mail service in my application. My application should send the email, which has to attach a .pdf file (detailed report). PDF file is now at remote server.

Can anyone help me to understand how to send mail with pdf attachment in blackberry? If, it is feasible to implement then how would i go with this?

Below are the links, I have got from Blackberry knowledge base forum for sending mail in blackberry

How To - Create an attachment

How To - Create and send messages

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: sending email with pdf attachment in blackberry

Just follow the create an attachment sample.  You'll need to change the mime type to application/pdf.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 225
Registered: ‎09-29-2010
My Device: Limited Edition Z10, Playbook
My Carrier: Airtel

Re: sending email with pdf attachment in blackberry

You can fetch the contact following the post

 

http://supportforums.blackberry.com/t5/Java-Development/Launch-the-Address-Book-and-return-a-contact...

 

then create attchement and send email.

 

I am also using similar approach, yet to test my code Smiley Happy

 

Hope this help you Smiley Happy

Abhinav Tyagi

 

Blackberry Z10-Limited Edition
Blackberry Playbook (won in free playbook offer)
My Apps : pAinT, HealthMeter, Shoot
Highlighted
Contributor
Posts: 23
Registered: ‎08-09-2010
My Device: 9800
My Carrier: Airtel

Re: sending email with pdf attachment in blackberry

I will try both of the approaches.
Thanks,

Nilanchala

Install BlackBerry Smart Screenshot Capture, It's a free application designed to take screen shot of your current BlackBerry smartphone screen.

Follow Bifocals on Twitter