C# Programming
03-19-2013, 02:02 PM
Hello all!
I have a couple of questions, half C# related, the other half, less C# related, but more related to embedding URL in C#, thank you for your attention.
I'm writing a console app (in C#) that is supposed to pop up the default mail software, fill in the recipients, subject and body.
this data is acquired from a txt file the app processed.
To do that I start a process (IEXPLORE)
and give it the @"mailto:...", A regex I created from the processed data.
problem is, the body of the text does not take \n seriously and well, basically I have one long line where five should be.
one of my questions is, how do I get a URL to produce a line break?
A second issue is that the app is also supposed to attach the attachments, whose full local path has been processed from the latter mentioned txt file.
i used the &attachments="c:\..." and well, no attachments..
Now for the more C# related part...
the app has two bi-products :
It opens a console windows which needs to be manually closed
IT opens an explorer window that needs to be manually closed
I am a novice programmer and still do not know much about threads.. I understand that I will have to use them somehow, could someone point me in the right direction?
Thank you in advance
I have a couple of questions, half C# related, the other half, less C# related, but more related to embedding URL in C#, thank you for your attention.
I'm writing a console app (in C#) that is supposed to pop up the default mail software, fill in the recipients, subject and body.
this data is acquired from a txt file the app processed.
To do that I start a process (IEXPLORE)
and give it the @"mailto:...", A regex I created from the processed data.
problem is, the body of the text does not take \n seriously and well, basically I have one long line where five should be.
one of my questions is, how do I get a URL to produce a line break?
A second issue is that the app is also supposed to attach the attachments, whose full local path has been processed from the latter mentioned txt file.
i used the &attachments="c:\..." and well, no attachments..
Now for the more C# related part...
the app has two bi-products :
It opens a console windows which needs to be manually closed
IT opens an explorer window that needs to be manually closed
I am a novice programmer and still do not know much about threads.. I understand that I will have to use them somehow, could someone point me in the right direction?
Thank you in advance