Groups > WordPerfect Office > WordPerfect X3 > Re: mailto: Attachments




mailto: Attachments

mailto: Attachments
Wed, 02 Apr 2008 00:05:41 -040
The following would be a mini macro that I would adapt to my large macro.


Application (WordPerfect; "WordPerfect"; Default!; "EN")
//The following is a test macro with test folders and test files. The 
Emailler is Thunderbird
	//The folder C://LifeModTest contains two files
			//1. [[{11(2test01)}]].pdf
			//2. EmailData.wpd

	//The opened file EmailData.wpd in line 13 of this macro contains two 
lines.
	//The first line is the email address info@painreliefdiet.com and the 
second line is the name of the pdf file that was previously saved, but 
without the pdf extension.    [[{11(2test01)}]].
	//It is these two lines that will change everytime the macro is run 
because a new email will contain different data.


FileOpen (Filename: "C:\LifeModTest\EmailData.wpd")
SearchString (StrgToLookFor: "@")
SearchNext (SearchMode: Extended!)
SelectMode (State: Off!)
PosLineBeg ()
SelectMode (State: On!)
PosLineEnd ()
PosCharPrevious ()		//To skip the Hard Return.
EditCopy () 			//Copies the client's email address to the clipboard.
SelectMode (State: Off!)

v=ClipboardGet
vaddress=v
vPath= "C:\LifeMod\"
vbody= "Thank you for participating. "
vSubject = "LIA"

	//Now get the PDF file name to the clipboard. Then do an f=ClipboardGet.

PosDocTop ()
SearchString (StrgToLookFor: "[[")
SearchNext (SearchMode: Extended!)
SelectMode (State: Off!)
PosLineEnd ()
Type (Text: ".pdf")		//Types the extension on the name.
SelectMode (State: On!)
PosLineBeg ()
EditCopy () 			//Copies the PDF file name to the clipboard.
CloseNoSave ()

f=ClipboardGet
vAttachment=f
	//Execute the email.
Appexecute("mailto:"+vAddress+"?subject="+vSubject+"&am
p;body="+vbody)


//Note to wpuniverse forum How do I now get the email to contain the 
attachment who's name is on the clipboard?
Post Reply
Re: mailto: Attachments
Wed, 02 Apr 2008 15:03:24 -050
Victor Ouellette wrote:
> //Note to wpuniverse forum How do I now get the email to contain the 
> attachment who's name is on the clipboard?

I don't know what you mean.  If you have a question on a thread at wpu, 
post a reply there.

Not sure why you are still trying to use Mailto:.

Are you aware of the ?SelectedText command?  It would be a better 
alternative than copy to clipboard and then getting the contents.

See this post at wpu for a Procedure() to create an email in 
Thunderbird.  It also has a routine to publish the current WPD as a PDF.
http://www.wpuniverse.com/vb/showthread.php?threadid=26896

Post Reply
about | contact