Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

mail command

Posted on 1998-12-14
2
Medium Priority
?
224 Views
Last Modified: 2010-05-03
I´d like to know how could I include a button in a form, and when someone click this button, the system sends a mail to a specified e-mail address. I´m using TCP/IP here.
Thanks
0
Comment
Question by:ptenuta
[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 Comments
 
LVL 1

Accepted Solution

by:
slobstar earned 400 total points
ID: 1450040
Private Sub Command1_Click()
  MAPISession1.SignOn
  MAPIMessages1.SessionID = MAPISession1.SessionID
  'compose
  MAPIMessages1.Compose
  'Address message
  MAPIMessages1.RecipDisplayName = "charles@hotmail.com"
  MAPIMessages1.RecipAddress = "Johan"
  ' Resolve recipient name
  MAPIMessages1.AddressResolveUI = True
  MAPIMessages1.ResolveName
  'Create the messagempmMessage.
  MsgSubject = "Status Report"
  MAPIMessages1.MsgNoteText = "Build successful!"
  'Send the message
  MAPIMessages1.Send False
End Sub
0
 

Author Comment

by:ptenuta
ID: 1450041
It seems this code calls a mail program . Is it really ? In my case, it opens the Outlook dialog box. I´d like to send the mail without having the mail programs windows opened.
Thank you
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

597 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