Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email attachment

Status
Not open for further replies.

99mel

Programmer
Oct 18, 1999
379
GB
I've managed to open a compose e-mail using shell now but am wanting to put an attachment to it.<br>Karl suggested before to look at the message code in outlook but seems a bit wierd.<br><br>Anyone know of attaching an file to a compose message through code?<br><br>thanks
 
it is normally be to reply to your own thread so you dont keep making a new thread everytime, but you can always do <br><br>something like<br><br>Dim something as TextStream<br>Dim fs as new FilesystemObject<br><br>something = fs.OpenTextFile(filename, forwriting)<br><br>for j = 1 to UBound(yourmessage)<br>&nbsp;&nbsp;something.writeline yourmessage(j)<br>next<br>(however you want to loop your message)<br><br>then when it comes to file, write line for the appropiate information<br>then end the line like it does in the message source, and start reading the file byte by byte and use<br>Something.write(...) to write a single byte to the textstream(I belive you can write multiple bytes at a time but I forget)<br>then end it off with the usual lines like it does in the EMail , this is my guess, might work, might not,but I assume it wraps text around the actual file then the client just decodes it out of the file. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top