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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Contributor
CapQNX
Posts: 40
Registered: ‎01-11-2013
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

Please use plain text.
Developer
Zmey
Posts: 979
Registered: ‎12-18-2012

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
Please use plain text.
Contributor
CapQNX
Posts: 40
Registered: ‎01-11-2013
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

Please use plain text.
Contributor
mahdouch950
Posts: 12
Registered: ‎01-21-2013
My Carrier: BB10

Re: How to send email with attachment

Message Api D'osent work also ...

Please use plain text.
Developer
Zmey
Posts: 979
Registered: ‎12-18-2012

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
Please use plain text.
Contributor
mahdouch950
Posts: 12
Registered: ‎01-21-2013
My Carrier: BB10

Re: How to send email with attachment

Hi Zmey,

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

thks.

Please use plain text.