Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Moving shortcut to a specified position on the Windows Desktop
Converting command-line string to a set of Unicode argument strings (WinNT only)
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Initiating Inet connection using a modem
Reading metrics for the currently selected font
Subclassing CommandButton control to create BackColor property
Testing if a connection to an Url can be established
How to play AVI file on the _screen
Obtaining names and positions for shortcuts located on the Windows Desktop
Using Month Calendar Control (VFP9, Comctl32.dll)
Using the ChooseColor function
Vertical Label control
Animating a transition of the VFP form (a wire-frame rectangle)
GDI+: saving image of FoxPro form to graphics file (BMP, GIF, JPG, PNG, TIF)
GDI+: Storing content of the Clipboard to a bitmap file
Extensible Storage Engine class library
GDI+: Scrolling through large image using the mouse
Shortcut Menu Class
Wininet last error description
Adding supplementary data to AVI files
Current keyboard type
Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.
Form Magnifier
How to release and renew a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP)
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: 102  
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.20.129.212)
7 sec.Example: 'How to drag a Form not using its Titlebar or Caption'
9.58 hrs.Example: 'Custom GDI+ class'
 Example: 'Adding and deleting Scheduled Tasks using NetScheduleJob API functions'
Google
Advertise here!