asp.net mvc - Sending hyperlink in the email issue -


mvc 4, c#, visual studio 2015, using smtp server. sending hyperlink in email. few people (out of email sent to) receive not complete hyperlink, part of hyperlink blue-underlined-active (represented in bold below). when clicked on, takes https://abcd.efgh.org , not page whole link points to. few use gmail receive emails.

https://abcd.efgh.org/testone/testtwo/12?enr=12c873%2goyrjmhxsi%2b9g12xsmv1veb%2ccnndj3o23gi7giu5r5ypyb9ldtkqdbavgwzdpk%2kw%3d%3d

---- view sendmyemail.html.cshtml--------------------------------------------------------------------

@using actionmailer.net @model emailsend @{         layout = "~/views/shared/_email_layout.cshtml";      var emailcontent = model.email.emailcontent;  // text     emailcontent = emailcontent.replace("{my_hyperlink}", @viewbag.hyperlink);     }  <!doctype html>  <html>    <head>       <title>mytitle.html</title>    </head>   <body>      <div>         @html.raw(emailcontent)      </div>   </body> </html> 

---- view called controller --------------------------------------------------------------------

using actionmailer.net.mvc;  public myresult sendmyemail(string mailto, string hyperlink) {    .................................     emailsend  emailsend = new emailsend(... params here ...);    viewbag.hyperlink = hyperlink;     return email("sendmyemail", emailsend); } 

i not able replicate issue or find info online similar issue far. why in-complete link delivered users? ideas why may happening or suggestions on how find out why it's happening welcome. many thanks.


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -