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

Native Development

Reply
Developer
Posts: 123
Registered: ‎01-11-2013
My Device: BlackBerry z10
My Carrier: Docomo

How to send email with attachment

Hello guys, I am new to programming in bb10. I am making sample app That will be able to Send email with attachment. After searching documentation I have found Attachment class and message class. But I am confuse about how will I do it? If it is possible with one of thsese class? Please provide me some link or it would be a great help if anyone provide a soure code. I am stuck for many days.

 

        Thanks

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: How to send email with attachment

[ Edited ]

This sample might help:

http://blackberry.github.com/Cascades-Samples/messages.html

 

There's MessageBuilder class. This page has an example of adding attachment to the message but I did not try this myself:

https://developer.blackberry.com/cascades/reference/bb__pim__message__messagebuilder.html

 


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 123
Registered: ‎01-11-2013
My Device: BlackBerry z10
My Carrier: Docomo

Re: How to send email with attachment

Thanks  Zmey  for an answer.

                  I think message builder class can be used for an attachment part.But the main part is about email .How would I  achieve email functionality?There is no sample source code  available even in the documentation.Any help would be appriciated.

                                                                                                                                                                                               Thanks

                                                                                                                                                                                             capQNX

Contributor
Posts: 12
Registered: ‎01-21-2013
My Device: BB10
My Carrier: BB10

Re: How to send email with attachment

Message Api D'osent work also ...

Highlighted
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: How to send email with attachment

I was able to send email message using the sample in first link. Make sure the email is configured on device.

Andrey Fidrya, @zmeyc on twitter
Contributor
Posts: 12
Registered: ‎01-21-2013
My Device: BB10
My Carrier: BB10

Re: How to send email with attachment

Hi Zmey,

how can i verify or configured the email on device !!!

thks.

New Member
Posts: 1
Registered: ‎01-18-2014
My Device: porsche design
My Carrier: 2268683149

Re: How to send email with attachment

Were you able to get attachement working?

 

I followed the Sample Apps for Messages to send email but dont know how to add attachement, I have been stuck on it for days now. Help will be greatly appreciated.