Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Adding supplementary data to AVI files
Enumerating Volumes and Volume Mounting Points (NTFS)
GDI+: creating scaled copy of image file
GDI+: retrieving list of available image encoders and image decoders
Obtaining a handle to the desktop associated with the calling thread
Retrieving various system metrics
Using the CreateFile
Enumerating MIDI output devices
Obtaining OS memory performance information
Testing MS Internet Explorer version installed
Using FrameRgn for displaying system colors
Winsock: how to retrieve the protocol information corresponding to a protocol name
Clipping mouse cursor area
Drawing standard Windows icons
FindText -- the hopeless and useless Common Dialog
How to display picture stored in enhanced-format metafile (*.emf)
How to view icons stored in executable files (Icon Viewer) - II
Simple Window Viewer
Creating a unique filename based on existing filename
Dial the Net Automatically
Reading and setting explicit Application User Model ID for the current process (Win7)
Retrieving list of supported paper names (for example, Letter or Legal) for a given printer
Using the DeleteFile
Enhanced GetFont dialog
MapiSendMail class for Visual FoxPro application

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Before you begin:
Based on Simple MAPI functions this Custom class allows sending email messages from your default email client to multiple recipients with file attachments.

The interface:
PROCEDURE AddRecipient(lcRcpName, lcRcpAddr)
PROCEDURE AddAttachment(lcFilename)
PROCEDURE SndMessage

Find a code sample using this class here.
 
  Members area. Log in to view this example.
 
  User name:
  Password:
 
 
  Forgot your password?
 
  Sign up for
the Membership
 
 


User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
8175 bytes  
Created: 2002-11-18 13:03:31  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 115  
Listed functions:
GlobalAlloc
GlobalFree
GlobalSize
MAPISendMail
Printer friendly API declarations
My comment:
Although the Sender object is presented, it looks like it is not supported -- an email Sender is always the default address of the local email client.

Be sure that all attached files are accessible at the moment when you are invoking the MAPISendMail function.

This class does not use MAPILogon and MAPILogoff functions (hSession=0). In this case -- it is called an implicit logon -- the MAPI session is temporary. The implicit session opened for the call is closed by the time the call returns.

Tested on Windows XP Home Edition, Outlook Express 6.

#kwd: sln_sendemail.
Word Index links for this example:
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
User Contributed Notes:
A.M. | 2006-07-31 10:33:41
nPosition is now populated in TAttachment.InitAttachment method.
burrowj@ozemail.com.au | 2006-07-31 21:28:45
Another thing to keep in mind.

If you are adding attachments. You must have at least one character in the body of your e-mail or the send function will fail

Copyright © 2001-2013 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (107.22.127.92)
4 sec.Example: 'Copying files as a transacted operation (Vista)'
3.4 hrs.Example: 'Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera'
Language: 'C#'
 Example: 'How to delete a service object'
5.76 hrs.Function: 'SHRegOpenUSKey'
Function group: 'Registry'
6.12 hrs.Function: 'FindResource'
9.1 hrs.
Function group: 'Shell Lightweight Utility APIs -- misc. functions'
 Function: 'FindWindow'
9.47 hrs.Function: 'PlaySound'
Function group: 'Windows Multimedia'
 Example: 'How to hot-track menu item selection in top-level form (requires VFP9)'
11.34 hrs.Example: 'Retrieving the System Time adjustment'
Google
Advertise here!