|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (11 bit)
Join Date: Aug 2002
Location: BC, Canada
Posts: 1,054
|
ActiveX Control Questions
Im working on an ActiveX control in Visual Basic for use in a web page and I have some questions...
1. The control is, or is going to be an order form. I want for when the user hits the submit button, the data that is contained in the fields of the form to be e-mailed to a certain address, How do I do this? 2. How do I make an Active X control display on my webpage. When I run it through the debugger in Visual Basic it automatically opens in my Internet Explorer, so can I just link to it like another web page, or does it require a bit more work? |
|
|
|
|
|
#2 |
|
Member (3 bit)
Join Date: Sep 2003
Posts: 6
|
well if you sign the control then you can use a MAPI control like so:
Public Function send_mail(sendto As String, subject As String, _ text As String) As Boolean 'Add The MAPI Components and 'add a MAPI Session and MAPI mail control to your form On Error GoTo ErrHandler With MAPISession1 .DownLoadMail = False .LogonUI = True .SignOn .NewSession = True MAPIMessages1.SessionID = .SessionID End With With MAPIMessages1 .Compose .RecipAddress = sendto .AddressResolveUI = True .ResolveName .MsgSubject = subject .MsgNoteText = text .Send False End With sendmail = True ErrHandler: End Function Why not just have the server do the sending though it's much easier? The control needs to be registered and embedded into a page. Download the ActiveX Control Pad and then copy and paste the appropriate tags into your HTML page. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|