cancel
Showing results for 
Search instead for 
Did you mean: 

how to send email to particular person with default subject and body message in sapui5?

0 Kudos

hi,

please tel me how to send email in sapui5 using xml view.

my case is to send mail to person xyz at email abc@gmail.com  with subject and body just by taping on a  particular button  and also to send screenshot as attachment.

i am trying to use this link https://sapui5.hana.ondemand.com/sdk/docs/guide/TriggeringTel-SMS-Email.html.

but i don't know how to using triggeremail function which present in

sap.m.URLHelper.

Thanks And Regards,

abul

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can do this:

sap.m.URLHelper.triggerEmail(<insert email>, <insert subject>, <insert content>);

Add it like this when pressing a button:

function () {

                                                                              sap.m.URLHelper.triggerEmail(<insert email>, <insert subject>, <insert content>);

                                                                              }

0 Kudos

how to attach any print screen ?

Former Member
0 Kudos

Hi  Pieter,

how to attach any file in the same mail .

thank in advance.

Answers (3)

Answers (3)

Hvshal4u
Active Participant
0 Kudos

Hi,

What are the prerequisite or the configurations required to send the SMS/Email from UI5?

Regards-

Vishal

ChrisKuehne
Explorer
0 Kudos

Hi

is there any solution for this issue?

I am also interested to know how to add an attachment to a mail via UI5

Thanks in advance

Former Member
0 Kudos

There is no direct way to include the attachment, using the API sap.m.URLHelper. However attaching a file can be done after opening the mail using sap.m.URLHelper.

JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.m.URLHelper

i.e.,

1. Call the triggerEmail() method of sap.m.URLHelper in your event

2. Attach the Image from Gallery(Screenshot must be taken already).

Even outlook/IOS/Android platform has the same functionality, i mean you have to take the screenshot/snap first, then include that into an e-mail.

Regards,

Meganadhan S

Former Member
0 Kudos

can we add attachments to this using triggerEmail function? I cannot see the attachment option.

thanks

A

Former Member
0 Kudos

Hi Ashish,

Did you find a way to add attchments?

Thanks,

Rashmi