Question

vahidbakhtiary on Sun, 16 Sep 2012 14:55:10


hi

i have a project called MessageConfirm and after compile i have a file exe (MessageConfirm .exe)

now i want show it like a link for example Instead of displaying MessageConfirm.exe

show below like :

Click on this link for Confirm

please help me for solve it

thanks


Sponsored



Replies

Rudedog2 on Sun, 16 Sep 2012 15:01:41


Where do you wish to display the link?

Rudy   =8^D

vahidbakhtiary on Sun, 16 Sep 2012 15:10:56


thanks for your answer

i have a site and clients can register into it and after it i send a email to them below like :

Click on the link to complete membership

now i my project i set it that after click show a messages with get Data Time the client pc here and after that move to my site.

please help me

thanks

Family Tree Mike on Sun, 16 Sep 2012 15:30:02


Why are you emailing an executable to the users, rather than sending them to a link on your website?  If I were to recieve an executable in an email, there is no way I would run it.  Perhaps your users expect this though....

--
Mike

Rudedog2 on Sun, 16 Sep 2012 15:52:07


Why are you emailing an executable to the users, rather than sending them to a link on your website?  If I were to recieve an executable in an email, there is no way I would run it.  Perhaps your users expect this though....

--
Mike

I agree with Mike.  I think most spam filters and virus software quarantine messages that contain exe files by default.  Some corporate email systems reject the email or delete the attached executable.

Rudy   =8^D

vahidbakhtiary on Sun, 16 Sep 2012 16:15:18


thanks for your answer

well, Rudedog said in last post

Where do you wish to display the link?

now i ask form you

Where do you can to display the link?

thanks

Rudedog2 on Sun, 16 Sep 2012 16:30:53


You would send HTML content in the email.

http://www.codeproject.com/Articles/11306/NRTFTree-A-class-library-for-RTF-processing-in-C 

RTF - Send By Email  

Send Formatted Email

Rudy   =8^D

MithileshDubey on Sun, 16 Sep 2012 20:54:34


Yes you can send an email with html content and using 

<a href="file:///file.exe">Open the document</a> to append the exe link.

You can use the above links to see how to send a formatted email.

vahidbakhtiary on Mon, 17 Sep 2012 13:53:35


thanks for your answer

<a href="file:///file.exe">Open the document</a> to append the exe link.

that code is correct in your website

but when put the link into body a mail ,don't work

i said ,i don't want run it in my web site ,i send it with email and i want runt it in mail the client

please help me

thanks

Family Tree Mike on Tue, 18 Sep 2012 00:21:04


The link should not (in my opinion) be of the form file://something.exe, but rather, http://somesite.com/something.exe.  Then when your users click the link the url will begin downloading, and optionally running the executable.
 
Setting up the link on your server is a question for the asp.net forum, but formatting the html email from C# is something possibly on topic here.

--
Mike