none
Sending Mail RRS feed

  • Question

  • Hi, I am using Logic app to send mail, and I need to add hyperlink to text present in body of mail, can you Please suggest, How can I add Hyperlink in EMAIL body.

    In below ticket no, i need a add a hyperlink.

    -------------------------------------------

    sample EMAIL Body:

    Hello Abhishek,

    Your ticket : INC0123456789 has now been escalated, IT Support Team will be reaching out to you within defined SLA.
    Thanks for your patience and support.

    Thanks and Regards,
    ---------------------------

    Friday, September 13, 2019 8:24 AM

All replies

  • Hello Abhishek,

    Can you confirm which connector you are using to send email? If it is Office 365 Outlook connector, you can simply create a Html tag in the Email Body as shown below:

    "Send_an_email": {
                    "inputs": {
                        "body": {
                            "Body": "Hello Abhishek,\n\nYour ticket : <a href=\\\"https://docs.microsoft.com\\\">INC0123456789 </a> has now been escalated, IT Support Team will be reaching out to you within defined SLA.\nThanks for your patience and support.\n\nThanks and Regards,",
                            "IsHtml": true,
                            "Subject": "testv1",
                            "To": "<ToEmail>"
                        },
                        "host": {
                            "connection": {
                                "name": "@parameters('$connections')['office365']['connectionId']"
                            }
                        },
                        "method": "post",
                        "path": "/Mail"
                    },
                    "runAfter": {
                        "HTTP": [
                            "Succeeded"
                        ]
                    },
                    "type": "ApiConnection"
    }            
    
    
    
    
    

                "Send_an_email_(V2)": {
                    "inputs": {
                        "body": {
                            "Body": "<p>Hello Abhishek,<br>\n<br>\nYour ticket : <a href=\"https://docs.microsoft.com\">INC0123456789 </a>&nbsp;has now been escalated, IT Support Team will be reaching out to you within defined SLA.<br>\nThanks for your patience and support.<br>\n<br>\nThanks and Regards,</p>",
                            "Subject": "testv2",
                            "To": "<ToEmail>"
                        },
                        "host": {
                            "connection": {
                                "name": "@parameters('$connections')['office365']['connectionId']"
                            }
                        },
                        "method": "post",
                        "path": "/v2/Mail"
                    },
                    "runAfter": {
                        "Send_an_email": [
                            "Succeeded"
                        ]
                    },
                    "type": "ApiConnection"
                }


     

    Monday, September 16, 2019 8:31 AM
    Moderator