I am dispatching emails at clients, notifying them for specific content deliveries and I have a problem with the containing ftp uri in mail body. I am constructing the ftp uri alongside with ftp credentials in the following format, but the credentials part is stripped away (the section user:pass@):
ftp://user:pass@server/relativepath/filename
The code is something like that:
mailTemplate += String.Format("<a href=\"{0}\">File FTP URI: {1}</a><br>",
new Uri(ftpBaseLink, filename), filename);
and the email is dispatched with the following matter:
MailMessage message = new MailMessage(
mailSettings.Smtp.From,
mailTo,
subject,
mailMessage) { IsBodyHtml = true };
SmtpClient client = new SmtpClient();
client.Send(message);
Is there any clue how can I override this "normalization"?