using vb to send mail..

Posted on 2003-03-30
Medium Priority
Last Modified: 2010-05-01
i now using vb6 to create a form..and after fill in the form...
when user click to submit....that content of form , let say the date or the name in the form
 will send to the email address which already key in the form...how i am going to do that?
Question by:qfren
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
LVL 70

Accepted Solution

Éric Moreau earned 500 total points
ID: 8235759
LVL 12

Expert Comment

ID: 8236601
you can use CDONTS

set oMailMessage = CreateObject ("CDONTS.NewMail")
oMailMessage.From = "who@ami.net"
oMailMessage.To = "who@ami.net"
oMailMessage.subject = "this is a test"
oMailMessage.BodyFormat = 0
oMailMessage.MailFormat = 0
oMailMessage.Body = "some text" '<-- form values would be included in the message
Set oMailMessage = Nothing
LVL 16

Expert Comment

ID: 8236855

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

764 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