Print Preview ActiveX Active Users: 19 / Visits Today: 134
Highest Active Users: 104
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Print Preview
 Help file
 EmailBody - Property
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: ExportHTML - Method Topic Next Topic: EmailFileName - Property  

emiel
Administrator

Belgium
327 Posts

Posted - 07/26/2005 :  12:31:24  Show Profile
Property EmailBody

Action:

This property fills the Body in the email interface to the mail client, and returns it´s content.

Syntax:

EmailBody () [ strText As String ] As String

Remarks:

You can not send an email directly from code. To send the email you have to click the emailbutton in the PrintPreview window´s taskbar.

Example:

Private Sub Command0_Click()

	preview.AddFirstPage 1000, 1000
	preview.AddTextAt "testing"
	preview.EmailAutomaticSend = True
	preview.OutputFile = "C:\Test.txt" ' textfile as enclosure
	preview.OutputFileType = prELText ' as textfile
	If preview.EmailAutomaticSend Then
   		preview.EmailBody = "Find enclosed the required file Test.txt"
    		preview.EmailFilename = "C:\Test.txt" ' the attachment
   		preview.EmailFileType = prELText ' send email as text
    		preview.EmailListofRecipients = "AnyName@yahoo.com" ' to whom
    		preview.EmailSubject = "Test" ' the subject
    		preview.EndDocument prOTScreen ' choose in the taskbar the emailbutton
	End If

End Sub
See also:

preview.EmailAutomaticSend -----> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=495
preview.EmailSubject -----------------> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=500
preview.EmailFileType ---------------> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=498
preview.EmailFileName --------------> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=497
preview.EmailListOfRecipients ----> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=499

Come and visit :
www.immoassist.com
www.ppreview.net
www.vbdiamond.com
www.d2dsources.com
www.mandix.com

Edited by - emiel on 07/26/2005 12:51:44
Go to Bottom of Page
  Previous Topic: ExportHTML - Method Topic Next Topic: EmailFileName - Property  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Print Preview ActiveX © Mandix Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.02