Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 04, 2017 at 11:41 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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)