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!

An Email

Status
Not open for further replies.

99mel

Programmer
Oct 18, 1999
379
GB
Does anyone know how to bring up a compose email message?<br><br>Like in HTML u've got mailto: whoever.&nbsp;&nbsp;All i'm wanting to do is the user to click on a button and that brings up a compose message with certain attached files.<br><br>Any help much appreciated<br><br>Mel
 
In windows most of the time if you run at command line like<br>Shell(&quot;mailto:<A HREF="mailto:kb@kb.com">kb@kb.com</A>&quot;) it'll do the same, since I know windows98 will do it, execute it as if it were an exectuable, and the system should pick up from there. <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)
 
Mel,<br><br>I don't think Karl got that quite right (sorry Karl &lt;grin&gt;) it's <FONT FACE=monospace><b>ShellExecute</font></b> and not <FONT FACE=monospace><b>Shell</font></b>. You might like to try this:<br><br><FONT FACE=monospace><b><br>' in the declarations section of the form<br>Private Declare Function ShellExecute Lib &quot;shell32.dll&quot; Alias &quot;ShellExecuteA&quot; (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long<br><br>' then, when you want to send the email<br>Dim File, Result<br><br>File = &quot;mailto:mailto:<A HREF="mailto:kb@kb.com">kb@kb.com</A>&quot;<br><br>Result = ShellExecute(0, &quot;OPEN&quot;, File, &quot;&quot;, App.Path & &quot;\&quot;, 0)<br><br><br></font></b><br> <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
um same principles, and Shell does work, try it yourself. <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)
 
That works fine.<br><br>I'm wondering can i place an attachment in that e-mail now? through the code?<br><br>thanks for ya help<br><br>mel
 
well the attachement is usally just rawwrite, in outlook, try looking at the mails source by right clicking, properties, then next tab, and there should be a source, or advance button at the bottom, it'll give you an idea how to setup the textual part of the email, then where to just start writing the raw binary information. <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