PDA

Click to See Complete Forum and Search --> : URLs in VB .frm


MiDaWe
Nov 24th, 1999, 03:52 PM
Hey,

I'm adding URLs to my program's about form.
My question is this, I want to add a "mailto:" command (code finished) but I also want to fill in the subject line of the email message. Such as,

to: Me@myaddress
subject: Support!

Can anyone help me? Is it even possible to do with VB?

Mark Sreeves
Nov 24th, 1999, 04:00 PM
I think this question is asked every day!!

Here's yesterday's...
http://www.vb-world.net/ubb/Forum1/HTML/010942.html


------------------
Mark Sreeves
Analyst Programmer

Mark.Sreeves@Softlab.co.uk
A BMW Group Company


[This message has been edited by Mark Sreeves (edited 11-25-1999).]

[This message has been edited by Mark Sreeves (edited 11-25-1999).]

Nov 24th, 1999, 10:51 PM
Module Code:

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (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

Button Code:

Call ShellExecute(hwnd, "Open", "mailto:emailaddress?subject=emailtitle", "", App.Path, 1)

------------------
[email=m.ralston@mediavault.co.uk]Matthew Ralston[/URL]
The Blue Link (http://195.89.158.103)
My Home Page (http://mralston.cjb.net)

MiDaWe
Nov 25th, 1999, 02:38 PM
Hey thanks,

I already had all of the code to make the URL's work, that was in my program at the time that I posted the question. All I really needed was,

"mailto:emailaddress?subject=emailtitle"

Thanks again matthewralston.

------------------
Thanks,
MiDaWe