Bineesh Viswanath

Bineesh Viswanath

  • 1.3k
  • 424
  • 43.3k

How to send Hyperlink sms from MVC c# application

Jan 9 2020 3:56 AM
Hello Friends,
 
I need your help to solve a sms sending functionality in my MVC project with c#.
 
my objective is to send sms from application to given mobile number( sms sending functio is working) with a hyperlink.
 
when user click on the message link from his mobile, the link has to navigate into the mvc page. This navigation is not working. I need your help on this.
 
Please find the sample code i wrote to send SMS with hyperlink
 
var vehicleReturnLink = Url.Action("ReturnVehicle", "VehicleReturn", new {clsCommon.regObj.PhoneNumber }, protocol: Request.Url.Scheme);
string sms = "Your vehicle is in Valet Parking now. You can get it back by clicking Link <a href=\"" + vehicleReturnLink + "\">here</a>";
strPostResponse = obj.SendSMS("username", "XXX", "number", smstext);
 
 

Answers (1)