Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I can send a mail adress xxx@hotmail.com with smtp protocol so there is no problem sending code to any mail adress but I open my mail adress inbox so ı see coming message but link cannot look like a link


this is my body part

posta.IsBodyHtml = true;
posta.Body = enter here
Posted
Comments
Ankur\m/ 10-Feb-12 8:50am    
Do you see the plain text version of it?
Member-2338430 10-Feb-12 8:58am    
ı try to now
Member-2338430 10-Feb-12 9:01am    
like thisss href:http://localhost:52897/aktivasyon.aspx?userMail=xxx@hotmail.com&id=1
Ankur\m/ 10-Feb-12 9:14am    
I am not sure if that works. Try HTML tags instead.
Member-2338430 10-Feb-12 9:15am    
href:http://localhost:52897/aktivasyon.aspx?userMail=xxx@hotmail.com&id=1
this is not like a link like seeing text ı dont understand

1 solution

you need to do this

HTML
<a href="http://localhost:52897/aktivasyon.aspx?userMail=xxx@hotmail.com&id=1">click here to view</a>
 
Share this answer
 
Comments
Member-2338430 10-Feb-12 9:48am    
ok I did like this but click here to view not look like a link this is my problem
ZurdoDev 10-Feb-12 9:51am    
Well then show us what you have done. You never showed us that you used an tag. Did you use an tag? What did you actually do?
Member-2338430 10-Feb-12 9:52am    
OK Wait PLEASE
Member-2338430 10-Feb-12 9:57am    
MailAddress ma = new MailAddress("xxx@hotmail.com", "my name");
System.Net.Mail.MailMessage posta = new System.Net.Mail.MailMessage();
posta.IsBodyHtml = true;
string x="http://localhost:54897/aktivasyon.aspx?userMail=zzz@hotmail.com&id=1";
posta.Body = "Onaylayın";


posta.Subject = "AKTİVASYON KODU";
posta.To.Add("xxx@hotmail.com");
posta.From = ma;
posta.Priority = System.Net.Mail.MailPriority.High;


SmtpClient smtp = new SmtpClient();
smtp.Credentials = new System.Net.NetworkCredential("xxx@hotmail.com", "xxxx");
smtp.Host = "xxx.xxx.xxx.xxx";
smtp.Send(posta);
ZurdoDev 10-Feb-12 9:58am    
Right, you need to change string x="http://localhost:54897/aktivasyon.aspx?userMail=zzz@hotmail.com&id=1"; to string x="< a href="http://localhost:54897/aktivasyon.aspx?userMail=zzz@hotmail.com&id=1">click here< /a>";

and then
posta.Body = x;

Note: You'll need to remove the extra spaces I added with < a and with < /a> because I could not get this editor to show it right.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900