Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
E-mail
Message
From
17/05/2004 06:05:39
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
 
 
To
17/05/2004 05:08:41
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: E-mail
Miscellaneous
Thread ID:
00904499
Message ID:
00904505
Views:
13
I changed some codes in VFPs mailbutton class in companent gallery. So than it works for me. This is changed click method:
local j, lnMaxLength, i, lcMessageText, lvFieldValue
** j & i are counters

private array paDBFields

*** Localizable Strings
#DEFINE DBF_NOT_FOUND_LOC	"No table is open in the current work area."
#DEFINE GEN_UNSUPPORT_LOC	"General fields are not supported in this example and will be skipped."
#DEFINE _FALSE_LOC			"FALSE"
#DEFINE _TRUE_LOC			"TRUE"
#DEFINE _NULL_LOC			"NULL"
#DEFINE _DOLLARSIGN_LOC		"$"
#DEFINE FLD_NO_PRINT_LOC	"Field could not be printed."
#DEFINE RECORDNUM_LOC		"Record #"

* Verify that a table is open in the current work area
	IF !this.parent.signon()			&& Use the custom method
		RETURN
	ENDIF
	IF this.parent.LogSession	&& Check if the user was able to login
		this.parent.OleMMess.sessionid=this.parent.OleMSess.sessionid
	
		* Start a new mail message and build the text
		this.parent.OleMMess.compose

WITH this.Parent.Parent
*---------------------- notetext ---------------------
		this.parent.OleMMess.msgnotetext="your note is there"
*---------------------- subject ----------------------		
		this.parent.OleMMess.msgsubject="your subject is there"
*---------------------- alici ------------------------
  IF !EMPTY(._alici)
		this.Parent.olemmess.recipAddress="your@receipt.com"
  ENDIF 
*----------------------	alici disp. name -------------
  IF !EMPTY(._mailadresismi)
	    this.Parent.olemmess.recipDisplayName=._mailadresismi 
  ENDIF 
endw 
*---------------------- send -------------------------	
		this.parent.OleMMess.send(1)
		IF this.parent.logsession
			this.parent.OleMSess.signoff
		ENDIF	&& Session Handle test
	ENDIF 		&& Login Test
	
Previous
Reply
Map
View

Click here to load this message in the networking platform