Launch from webbrowser to email... 
Author Message
 Launch from webbrowser to email...

 how do u launch from webbrowser to email specified  by url to email. I
simply lost code but didn't saved it.
  nResult = Shell("start.exe " & "mailto:" & "")....this one launch to
email address. that fine.
but i can't get url into email.
Any help of this?

regards,



Fri, 09 Aug 2002 03:00:00 GMT  
 Launch from webbrowser to email...
The following is purely an excerpt from another post on the newsgroup, never
tried it myself:

'''''''''''''''''''''''''''''''''''''''

a = Shell("start http://www.site.com/dir/webpage.html") '
opens the file webpage.html in the defult browser (INTERNET)

In a BAS module:

Public Const SW_SHOWMAXIMIZED = 3
Public 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

Public Sub LinkTo(szUrl As String, hFormHandle As Long)
ShellExecute hFormHandle, _
"open", _
szUrl, _
"", _
"", _
SW_SHOWMAXIMIZED
End Sub

Then, in your form (such as a click_event of a label):

'To open the default browser with an Url
Linkto "http://yoursite.com", Me.Hwnd

or
'To open the default mailer

'''''''''''''''''''''''''''''''''''''''''''

Quote:

> how do u launch from webbrowser to email specified  by url to email. I
>simply lost code but didn't saved it.
>  nResult = Shell("start.exe " & "mailto:" & "")....this one launch to
>email address. that fine.
>but i can't get url into email.
>Any help of this?

>regards,



Fri, 09 Aug 2002 03:00:00 GMT  
 Launch from webbrowser to email...
but how you do in  specified URL into  mail body
Quote:

> The following is purely an excerpt from another post on the newsgroup, never
> tried it myself:

> '''''''''''''''''''''''''''''''''''''''

> a = Shell("start http://www.site.com/dir/webpage.html") '
> opens the file webpage.html in the defult browser (INTERNET)

> In a BAS module:

> Public Const SW_SHOWMAXIMIZED = 3
> Public 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

> Public Sub LinkTo(szUrl As String, hFormHandle As Long)
> ShellExecute hFormHandle, _
> "open", _
> szUrl, _
> "", _
> "", _
> SW_SHOWMAXIMIZED
> End Sub

> Then, in your form (such as a click_event of a label):

> 'To open the default browser with an Url
> Linkto "http://yoursite.com", Me.Hwnd

> or
> 'To open the default mailer

> '''''''''''''''''''''''''''''''''''''''''''


> > how do u launch from webbrowser to email specified  by url to email. I
> >simply lost code but didn't saved it.
> >  nResult = Shell("start.exe " & "mailto:" & "")....this one launch to
> >email address. that fine.
> >but i can't get url into email.
> >Any help of this?

> >regards,



Fri, 09 Aug 2002 03:00:00 GMT  
 Launch from webbrowser to email...
don't worry. I got it fixed that displayed url in email body
regards
Quote:

> but how you do in  specified URL into  mail body


> > The following is purely an excerpt from another post on the newsgroup, never
> > tried it myself:

> > '''''''''''''''''''''''''''''''''''''''

> > a = Shell("start http://www.site.com/dir/webpage.html") '
> > opens the file webpage.html in the defult browser (INTERNET)

> > In a BAS module:

> > Public Const SW_SHOWMAXIMIZED = 3
> > Public 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

> > Public Sub LinkTo(szUrl As String, hFormHandle As Long)
> > ShellExecute hFormHandle, _
> > "open", _
> > szUrl, _
> > "", _
> > "", _
> > SW_SHOWMAXIMIZED
> > End Sub

> > Then, in your form (such as a click_event of a label):

> > 'To open the default browser with an Url
> > Linkto "http://yoursite.com", Me.Hwnd

> > or
> > 'To open the default mailer

> > '''''''''''''''''''''''''''''''''''''''''''


> > > how do u launch from webbrowser to email specified  by url to email. I
> > >simply lost code but didn't saved it.
> > >  nResult = Shell("start.exe " & "mailto:" & "")....this one launch to
> > >email address. that fine.
> > >but i can't get url into email.
> > >Any help of this?

> > >regards,



Sun, 11 Aug 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. is there any way to send email through a formal without launching the email client

2. How to launch webbrowser from VB6?

3. Launching applications with webbrowser control

4. How to launch webbrowser from VB6?

5. How to launch Browser App from WebBrowser control?

6. newbie: launch default webbrowser?

7. How to launch webbrowser from VB6?

8. Add-in causes Outlook crash when Outlook launches as a result of email hyperlink

9. launch default email client with a new message

10. Malicious Email now launches IE, where is file ?

11. Launching email from VB

12. Launch emails from VB

 

 
Powered by phpBB® Forum Software