Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want to receive email from users who use my application, but I don't want to log-in my account when users send email to me (i.e. my code doesn't contain my user and my password). I want to protect my account (the C# code is very easy to reverse, so if I put my account in the code then the reversers will reverse it, I will be lost my account). How to do this? Thanks.
Posted
Updated 9-Sep-12 5:41am
v5
Comments
[no name] 9-Sep-12 11:57am    
Just put your email address in the text of LinkedLabel.
When user click on that the user's default program direct him to send you email.
It doesn't need to create such this program; There are many program to do that like outlook.
Andrewpeter 9-Sep-12 12:08pm    
Use LinkedLabel? When I code LinkClick() event of LinkLabel:

private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("mailto:hsacb@yahoo.com");
}
When I run and click to LinkLabel then google mail displays to reqiure log-in google account. You try to know it? Not send email. Another idea? Thanks.
(I want to send email with a subject and a body to me, not log-in any user account).
Sergey Alexandrovich Kryukov 9-Sep-12 13:47pm    
Is it ASP.NET application or what? If this ASP.NET, why would you worry about reverse engineering? -- your code is all on the server side. (And besides, do you think your code is so valuable that anyone would bother to reverse engineer it?)
--SA
Andrewpeter 9-Sep-12 21:06pm    
Thanks for your idea, it is Windows Form app, I am very very worry about reversing my code. My code is not valuable with everyone, but i want to protect it, i think you should give a method to do this, should not comment on value of my code, it is not important. Thanks.
Sergey Alexandrovich Kryukov 10-Sep-12 2:06am    
Then add a tag "Forms".

And please let me have my own opinion what I should provide and how I should comment, ok?
--SA

1 solution

You're not being very specific about what kind of application you're writing or anything else for that matter, but...

In a Windows Forms app, if you launch a URI of the form "mailto:", it'll launch the USERS default email package and use the USERS default email account, NOT YOURS! If the email package is setup to ask for the users credentials, it'll expect the USERS credentials for their email account, NOT YOURS!

The same thing happens if you provide a "mailto:" link in HTML on the client side.

If you're writing some mail sending code on the server-side, then it'll have to have credentials for an email account that the ASP.NET account can use to send emails, NOT THE USERS.
 
Share this answer
 
Comments
Andrewpeter 9-Sep-12 21:09pm    
Thanks you, I have understood my problem when you share your idea, it is very useful for me, your answer is a solution of my problem. Thanks.

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