smtpclient - Why ftp credentials are stripped away from email body when using MailMessage in C#? -


I am sending emails to customers, informing them for specific content delivery and I have a mail body containing FTP There is a problem with Yuri. I am creating FTP Yuri with FTP credentials in the following format, but the share of credentials has been stripped (section user: pass @):

The code is something like this. That:

  mail-template + = string.format ("& lt; a href = \" {0} \ "& gt; File FTP URI: {1} & lt; / a & Gt; & lt; br & gt; ", new URI (FTPBLink, filename), file name);  

And the email is sent with the following:

  MailMessage Message = New MailMessage (mailSettings.Smtp.From, mailTo, subject, mailMessage) {IsBodyHtml = true}; SmtpClient Client = New SmtpClient (); Client.Send (message);  

Is there a clue how can I override this "generalization"?

I thinks is that a general "criterion" Was refunded some time back because the people passing through the URL containing the URLs were being used incorrectly so that they were clicking on a link. When linked to http://www.mybank.com:blah@www.adodgysite.com/fake_bank_site for http://www.mybank.com Users are smart now, but it may be that this "lockdown" is affecting you.

Without using my suggestion URI


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -