Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 09-20-2003, 10:40 PM   #1
Member (11 bit)
 
TheJackal's Avatar
 
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?
TheJackal is offline   Reply With Quote
Old 09-23-2003, 05:50 PM   #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.
panzerfaust is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:06 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2