Click here to Skip to main content
15,902,299 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionHow to use drag & drop in DataGridView... Pin
tiasoft5-Sep-07 1:24
tiasoft5-Sep-07 1:24 
QuestionMusical Notes in C# Pin
Vasudevan Deepak Kumar4-Sep-07 20:14
Vasudevan Deepak Kumar4-Sep-07 20:14 
AnswerRe: Musical Notes in C# Pin
originSH4-Sep-07 22:17
originSH4-Sep-07 22:17 
GeneralRe: Musical Notes in C# Pin
Vasudevan Deepak Kumar5-Sep-07 1:38
Vasudevan Deepak Kumar5-Sep-07 1:38 
GeneralRe: Musical Notes in C# Pin
originSH5-Sep-07 1:38
originSH5-Sep-07 1:38 
AnswerRe: Musical Notes in C# Pin
PIEBALDconsult7-Sep-07 10:57
mvePIEBALDconsult7-Sep-07 10:57 
GeneralRe: Musical Notes in C# Pin
Paul Conrad8-Sep-07 4:33
professionalPaul Conrad8-Sep-07 4:33 
QuestionHow to create new e-mail in default e-mail client with an attachment? Pin
Josh Smith4-Sep-07 9:31
Josh Smith4-Sep-07 9:31 
I have been experimenting and searching for quite a while, and decided to finally throw in the towel and ask for help. My requirement is to enable our user to create an e-mail, containing formatted body text and an attachment, and have that e-mail be created in his/her default e-mail client. In other words, the user clicks a "Send E-mail" button and the e-mail editing window of their default e-mail client pops open with a "ready-to-send" e-mail waiting there, with attachments and all.

After investigating numerous possibilities, I've realized that this is not going to be as easy as I once assumed it would be. We cannot use the old "mailto" trick because we must pass an attachment. We cannot use the "roll your own e-mail editor" solution because v1 of our application allowed (some) users to open their default email client -- but the technique used is extremely unreliable and Outlook-centric...hence the rewrite.

Ideally the solution will be ignorant of the various e-mail clients with which it might interact. I'd prefer not to have some horrid code like:

if (defaultEmailClient.IsOutlook2007)
{
  // hack, hack, hack...
}
else if (defaultEmailClient.IsThunderbird)
{
  // hack, hack, hack...
}

Again, the core issues are:

1) Must create a new e-mail in the user's default e-mail client.

2) Must be able to specify one or more attachments for the e-mail.

3) The code should not have direct knowledge of the exact e-mail client with which it interacts.

Any help/tips/pointers/etc. regarding this seemingly simple problem would be greatly appreciated.

:josh:
My WPF Blog[^]
Without a strive for perfection I would be terribly bored.

AnswerRe: How to create new e-mail in default e-mail client with an attachment? Pin
Josh Smith4-Sep-07 10:13
Josh Smith4-Sep-07 10:13 
Questionconvert java.io.FileInputStream to System.IO.Stream Pin
p_s_i_200707303-Sep-07 20:24
p_s_i_200707303-Sep-07 20:24 
AnswerRe: convert java.io.FileInputStream to System.IO.Stream Pin
Dave Kreskowiak4-Sep-07 5:00
mveDave Kreskowiak4-Sep-07 5:00 
QuestionFramework64 Questions Pin
martin_hughes3-Sep-07 5:54
martin_hughes3-Sep-07 5:54 
AnswerRe: Framework64 Questions Pin
Scott Dorman5-Sep-07 6:06
professionalScott Dorman5-Sep-07 6:06 
GeneralRe: Framework64 Questions Pin
martin_hughes5-Sep-07 6:18
martin_hughes5-Sep-07 6:18 
QuestionServer Explorer: Data source not found Pin
xxrono2-Sep-07 11:09
xxrono2-Sep-07 11:09 
AnswerRe: Server Explorer: Data source not found Pin
rihdus3-Sep-07 2:47
rihdus3-Sep-07 2:47 
GeneralRe: Server Explorer: Data source not found Pin
xxrono3-Sep-07 3:41
xxrono3-Sep-07 3:41 
AnswerRe: Server Explorer: Data source not found Pin
Christian Graus3-Sep-07 4:59
protectorChristian Graus3-Sep-07 4:59 
AnswerRe: Server Explorer: Data source not found Pin
rohitsrivastava9-Sep-07 21:20
rohitsrivastava9-Sep-07 21:20 
QuestionRe: Server Explorer: Data source not found Pin
xxrono10-Sep-07 3:39
xxrono10-Sep-07 3:39 
Questionimage inside gridview Pin
aditi0001-Sep-07 18:53
aditi0001-Sep-07 18:53 
AnswerRe: image inside gridview Pin
rihdus3-Sep-07 3:06
rihdus3-Sep-07 3:06 
AnswerRe: image inside gridview Pin
rohitsrivastava9-Sep-07 21:28
rohitsrivastava9-Sep-07 21:28 
QuestionInternetworking question !!! Pin
Mohy_Heidari1-Sep-07 8:31
Mohy_Heidari1-Sep-07 8:31 
AnswerRe: Internetworking question !!! Pin
brucedkyle9-Sep-07 10:00
brucedkyle9-Sep-07 10:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.