?
Solved

Creating an email message using VB6

Posted on 2000-02-17
4
Medium Priority
?
199 Views
Last Modified: 2010-05-02
I want to create a button to open a new email message with the subject and email address filled in.  Can any one help me please?
0
Comment
Question by:sgundrum
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 6

Expert Comment

by:Marine
ID: 2533621
What are you using to send email ? MAPI ? CDONTS ? Other Services ? Give information.
0
 

Author Comment

by:sgundrum
ID: 2533623
this will be for people using internet mail, outlook express and outlook under 95/98 and possible NT
0
 

Accepted Solution

by:
amuru earned 100 total points
ID: 2533634
Use Microsoft MAPI Controls
(Add in the component, C:\windows\system\MSMAPI32.OCX)

On the button click, put command :
<mapictrlname>.compose
<mapictrlname>.send true

0
 
LVL 6

Expert Comment

by:Marine
ID: 2533638
If you have a webserver installed then you can adopt to this code.

dim objMail as Object' I am using late bound since i don't know if i can create CDONTS with New Keword
Set objMail = CreateObject("CDONTS.NewMail")
objMail.From "yourcompanyname@cp.com"
objMail.TO text1.text ' send mail to
objMail.Subject text2.text 'subj message
objMail.Body Text3.text 'body message
objMail.Send 'Method to send Mail.
Set objMail = nothing 'Kill Reference.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question