Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

How to call mobile app using Email/Telegram?

Completed

Comments

2 comments

  • Norman
    • Network Optix team

    Hi Miguel Dina,

    Not sure if I can help you, but can you share some more details?
    For example, a sample email? You can send it to amsterdam@networkoptix.com.

    Have you tried adding the link as: 

    <a href=nx-vms://nxvms.com/client/ef18a181-d40a-404f-adbe-5fdbded3232e/view?auth=bm9ybWFuZ0BuZDR3b3Jrb3B0aXguY29tOlYxZDMwUDB3M3IzZA==>link_text</a>
    0
  • Miguel Dina

    Yes, we have tried adding the link like that but managers are keeping removing the links. Just now we sent the email to the provided address.

    Here is a C# sample of our code:

               //appUrl = "nx-vms://nxvms.com/client/ef18a181-d40a-404f-adbe-5fdbded3232e/view?auth=bm9ybWFuZ0BuZDR3b3Jrb3B0aXguY29tOlYxZDMwUDB3M3IzZA=="
    public string GetMailHTML(string? appUrl)
                {
                    StringBuilder builder = new StringBuilder();
                    builder.Append("<div style=3D\"padding-bottom: 50px;\">");
                    builder.Append("<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">");
                    builder.Append($"<tr> <td> <div> TITLE </div> </td> </tr>");
                    builder.Append($"<tr> <td> <div> 17-11-2022 • 09:56:00 </div> </td> </tr>");
                    builder.Append($"<tr> <td> <div> DESCRIPTION </div> </td> </tr>");

                    if (appUrl != null)
                    {
                        //Our code
                        builder.Append($"<tr> <td> <div style=3D\"font-size: 11px;\"> <a href=3D\"{appUrl}\" style=3D\"color: #168cf5;text-decoration: underline;cursor: pointer;\" target=3D\"_blank\">Click to view in mobile app</a> </div> </td> </tr>");
                        //Norman sample
                        builder.Append($"<tr> <td> <div style=3D\"font-size: 11px;\"> <a href={appUrl} style=3D\"color: #168cf5;text-decoration: underline;cursor: pointer;\" target=3D\"_blank\">Click to view in mobile app - Norman sample </a> </div> </td> </tr>");
                    }
                    builder.Append("</table>");
                    builder.Append("</div>");
                    return builder.ToString();
                }
    0

Please sign in to leave a comment.