Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

using vb to send mail..

Posted on 2003-03-30
3
Medium Priority
?
129 Views
Last Modified: 2010-05-01
hi:
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?
0
Comment
Question by:qfren
3 Comments
 
LVL 70

Accepted Solution

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

Expert Comment

by:jyokum
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
oMailMessage.Send
Set oMailMessage = Nothing
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 8236855
hearing...
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month10 days, 20 hours left to enroll

572 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