Link to home
Start Free TrialLog in
Avatar of sgundrum
sgundrum

asked on

Creating an email message using VB6

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?
Avatar of Marine
Marine

What are you using to send email ? MAPI ? CDONTS ? Other Services ? Give information.
Avatar of sgundrum

ASKER

this will be for people using internet mail, outlook express and outlook under 95/98 and possible NT
ASKER CERTIFIED SOLUTION
Avatar of amuru
amuru

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.