Click here to Skip to main content
15,913,773 members
Home / Discussions / C#
   

C#

 
Generaladding attachments to an email Pin
Aviv Halperin4-Feb-05 6:05
Aviv Halperin4-Feb-05 6:05 
GeneralRe: adding attachments to an email Pin
Heath Stewart4-Feb-05 6:31
protectorHeath Stewart4-Feb-05 6:31 
As covered on this forum many times before (which is why the "Search comments" link above exists), not all MAPI clients support every syntax. It wasn't even that long ago that most MAPI clients like Outlook, Outlook Express, Netscape, and others supported the "Body" parameter. This also means that a client must have a MAPI client registered.

Rather than relying on what's installed - which gives you little to no control as you've found - send the mail yourself using SMTP. There are many articles here on Code Project as well as on this forum. You can also get third-party libraries like IP!Works[^].

Using the System.Web.Mail namespace is also a bad idea because it requires a CDO library for the system. Only Win2K and above have this client library. NT4 uses something else, IIRC, and Windows 98/Me have nothing.

True SMTP support is being added to the .NET Framework for "Whidbey" (.NET 2.0) to replace this hazardous namespace.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
QuestionHow to have MenuItems not show arrow when it has submenu Pin
VPMahank4-Feb-05 5:28
VPMahank4-Feb-05 5:28 
GeneralSocket and Multithreading Pin
sameerhanda4-Feb-05 5:05
sameerhanda4-Feb-05 5:05 
GeneralRe: Socket and Multithreading Pin
Heath Stewart4-Feb-05 6:24
protectorHeath Stewart4-Feb-05 6:24 
GeneralFilestream issue Pin
Esmo20004-Feb-05 4:43
Esmo20004-Feb-05 4:43 
GeneralRe: Filestream issue Pin
Esmo20004-Feb-05 4:46
Esmo20004-Feb-05 4:46 
GeneralRe: Filestream issue Pin
Anonymous4-Feb-05 4:57
Anonymous4-Feb-05 4:57 
GeneralRe: Filestream issue Pin
Heath Stewart4-Feb-05 6:20
protectorHeath Stewart4-Feb-05 6:20 
GeneralBeep() without using Windows.Forms Pin
Tim Gilbert4-Feb-05 4:32
Tim Gilbert4-Feb-05 4:32 
GeneralRe: Beep() without using Windows.Forms Pin
Anonymous4-Feb-05 4:39
Anonymous4-Feb-05 4:39 
GeneralRe: Beep() without using Windows.Forms Pin
Tim Gilbert4-Feb-05 4:48
Tim Gilbert4-Feb-05 4:48 
GeneralRe: Beep() without using Windows.Forms Pin
Dave Kreskowiak4-Feb-05 6:33
mveDave Kreskowiak4-Feb-05 6:33 
GeneralRe: Beep() without using Windows.Forms Pin
Nick Parker4-Feb-05 6:13
protectorNick Parker4-Feb-05 6:13 
GeneralRe: Beep() without using Windows.Forms Pin
Heath Stewart4-Feb-05 6:16
protectorHeath Stewart4-Feb-05 6:16 
GeneralRe: Beep() without using Windows.Forms Pin
Dave Kreskowiak4-Feb-05 6:35
mveDave Kreskowiak4-Feb-05 6:35 
GeneralLinkLabel size Pin
gantww4-Feb-05 3:39
gantww4-Feb-05 3:39 
GeneralRe: LinkLabel size Pin
Anonymous4-Feb-05 4:45
Anonymous4-Feb-05 4:45 
GeneralRe: LinkLabel size Pin
gantww4-Feb-05 7:54
gantww4-Feb-05 7:54 
GeneralImage Rectify or Panorama algorithm Pin
pxp4-Feb-05 3:15
pxp4-Feb-05 3:15 
GeneralRe: Image Rectify or Panorama algorithm Pin
pxp6-Feb-05 23:15
pxp6-Feb-05 23:15 
QuestionHow can I controle by resource in C# Pin
students552 university4-Feb-05 2:51
students552 university4-Feb-05 2:51 
AnswerRe: How can I controle by resource in C# Pin
Judah Gabriel Himango4-Feb-05 6:38
sponsorJudah Gabriel Himango4-Feb-05 6:38 
GeneralListView grouping Pin
dpmIris4-Feb-05 2:49
dpmIris4-Feb-05 2:49 
GeneralRe: ListView grouping Pin
Heath Stewart4-Feb-05 6:07
protectorHeath Stewart4-Feb-05 6:07 

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.