Skip to Content
0

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

Jul 04, 2017 at 11:06 AM

77

avatar image

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.

10 |10000 characters needed characters left characters exceeded

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

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Yugank Arora Jul 04, 2017 at 11:41 AM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Do you mean the following HTML code :

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

?

0

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.

email.png (8.7 kB)
0