Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Send Email from a given hyperlink in email body to other outlook email ID

Former Member
0 Kudos

I have created a workflow which is sending email with some parameters in URL.In the email content, one table is there with some entries and also in one column,hyperlink is given. So my requirement is, on clicking on Hyperlink one mail should be sent to other outlook email IDs.

How can i achieve this, Please suggest.

1 ACCEPTED SOLUTION

Former Member

Hi Pooja,

Please check if above hyperlink can be maintained as below-

mailto:<EmailId>

Upon maintaining relevant email id in above hyperlink, any click on the hyperlink will open outlook in compose mail window.

Thanks and Regards,

Yugank Arora

4 REPLIES 4

Former Member

Hi Pooja,

Please check if above hyperlink can be maintained as below-

mailto:<EmailId>

Upon maintaining relevant email id in above hyperlink, any click on the hyperlink will open outlook in compose mail window.

Thanks and Regards,

Yugank Arora

0 Kudos

Do you mean the following HTML code :

<a href="mailto:john.doe@sap.com">John Doe</a>

?

0 Kudos

Thanks a lot Yugank. It is working for me.

Also i have added the code below to get subject and body content as well:

data: w_peer type string.
data: subject type string.
data: body_msg type string.
data: l_string1 type string.

Subject = 'Reminder mail'.
body_msg = 'This is body content as a string'.

l_string1 = 'xyz@gmail.com'

CONCATENATE 'mailto:' l_string1 '?subject=' subject into w_peer.

CONCATENATE w_peer '&body=' body_msg into w_peer.

CONCATENATE '<font size = "2.5"><b>' '<a href= "' w_peer '"> Peer Check </a>' into mailtxt.

Now my next requirement is, how can i pass body contents in html codes:

  • for example: i want to add signature in the body content.

Regards,
Pooja Sharma
SAP ABAP

  • I have tried below code:

data: sign type string.

CONCATENATE '<br><tr>' 'Regards,' '</tr>' '</b>''</br>' INTO sign.
CONCATENATE sign '<br>' 'Pooja Sharma' '</br>' INTO sign.

CONCATENATE sign '<br>' 'SAP ABAP' '</br>' INTO sign.

CONCATENATE w_peer '&body=P' sign into w_peer.

  • but in Output: Getting below content

'This is body content as a string'<br><tr>Regards,</tr></b>'</br><br>Pooja Sharma,</br>

email.png

Please suggest how can i achieve the excat output.

Sandra_Rossi
Active Contributor
0 Kudos

What is the "email content" made of ? (Excel, HTML, PDF from Adobe form, PDF from smart form, ...)