daleUSA

I want to build a window application (MS Visual C# 2005 Express Edition) that runs on our users' local PCs.

The window application would allow Users to configure their attached devices via rs232. But the challenge is how the win appl sends the configuration to us by things like email However our users may not know their mail server and how to configure it. So email may be difficult for them. Any other good ways to achieve this

Thanks.




Re: Visual C# Express Edition How to communicate with our server without knowing SMTP server (email) in a win application?

Citizen on the earth

Hi daleUSA,

As I understand, you would like the user to send the client configuration to your server.

My suggestions as follows:

The user can write a configuration file after attaching devices via RS232 on the client side and you provide a email-sending interface in your windows application. Then the user can utilize your windows application to send his configration file to you. Am I right

Based on my understanding, if you can connect to internet, try to use the email proxy server to send emails. The user doesn't need to know what's the email server and only input the recepient's address and the email message(configuration content),then click "Send Email" in your windows application.That's OK.

1) If you do your application development using .NET 2.0, try to refer to this MSDN document about how to send emails for details - http://msdn2.microsoft.com/en-us/library/system.net.mail(VS.80).aspx

The sample codes from here - http://weblogs.asp.net/scottgu/archive/2005/12/10/432854.aspx

2) If you use SQL Server 2005 in your server, you can use an extended stored procedure named "xp_sendmail"in SQL Server to send emails. Try to check out this MSDN document about "xp_sendmail" for details - http://msdn2.microsoft.com/en-US/library/ms189505.aspx

If I have misunderstood you, please correct me and clarify what you are concerning. Thanks.

Regards,

Citizens on the earth





Re: Visual C# Express Edition How to communicate with our server without knowing SMTP server (email) in a win application?

daleUSA

Hi There,

Thank you for your help. Your understanding is correct. I tried your suggestion 1. It did not work based on the above example link. But I got it working based on the following link:

http://www.codeproject.com/useritems/SendMailUsingGmailAccount.asp

.net 2.0 version. I just have a concern. If my application is developed with .net 2.0, could it be used by everyone

1. for windows without .net 2.0 framework, my appl can prompt them to install .net 2.0 framework. -ok

2. for macs and linux, i guess the appl will not work since it will not be able to be installed. Am i right

-Dale







Re: Visual C# Express Edition How to communicate with our server without knowing SMTP server (email) in a win application?

Citizen on the earth

Hi Dale,

Thanks for your update.

For your two questions, my understanding just as follows:

1)Yes. If you developed a windows application based on .NET Framework 2.0, you need to install .NET Framework 2.0 to run it.

2) As I far as I know, if you install Grasshopper, you can deploy your .NET application in Linux. Try to check out this article about "Use the Visual Studio .NET IDE and Grasshopper to Deploy .NET Apps on Linux!" for details - http://dev.mainsoft.com/Default.aspx tabid=45

You can download Grasshopper from this website - http://dev.mainsoft.com/Default.aspx tabid=111

Hope this helps,

Regards,

Citizens on the earth





Re: Visual C# Express Edition How to communicate with our server without knowing SMTP server (email) in a win application?

daleUSA

Hi There,

Your links have good info about how to run .net appl in linux, even mac.

Thank you very much, -dale