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




Re: mailto: and Attachments

Re: mailto: and Attachments
Mon, 14 Apr 2008 10:43:53 -040
Is my understanding correct that the conclusoin of posts on mailto and 
attachments is that mailto: cannot include a pdf attachment?
Post Reply
Re: mailto: and Attachments
Mon, 14 Apr 2008 12:27:33 -040
The following is my five line data file.


EmailData file
DrO
01
[[{11(2test01)}DrO]]
info@painreliefdiet.com
 >>>>


then my macro

Application (WordPerfect; "WordPerfect"; Default!; "EN")

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	//v now equals the client's email address.
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="vPath"+f


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



This AppExecute is good except no attachment is present. Why no attachment?

Vic




Victor Ouellette wrote:
> 
> Is my understanding correct that the conclusoin of posts on mailto and 
> attachments is that mailto: cannot include a pdf attachment?
> 
Post Reply
Re: mailto: and Attachments
Mon, 14 Apr 2008 13:54:19 -040
When I changed the Tools>Settings>Environment>Use Wordperfect 9
Settings
the result is the same, no attachment when the Thunderbird Compose 
window comes up. Everything else seems to be all right. There is just no 
attachment with the email.
Vic




Charles Rossiter wrote:
> 
> Victor,
> 
> One thing stands out in your macro.  What setting do you have under 
> Tools, Settings, Environment, "Use WordPerfect 9 text selection"?
 The 
> text selection steps probably select different text strings, dependent 
> on that setting.  Did you test your macro step-by-step to check that the 
> contents of your variables are as you expect them to be?
> 
> 
> Victor Ouellette wrote:
>>
>> The following is my five line data file.
>>
>>
>> EmailData file
>> DrO
>> 01
>> [[{11(2test01)}DrO]]
>> info@painreliefdiet.com
>>  >>>>
>>
>>
>> then my macro
>>
>> Application (WordPerfect; "WordPerfect"; Default!;
"EN")
>>
>> 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    //v now equals the client's email address.
>> 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="vPath"+f
>>
>>
>>     //Execute the email.
>>
AppExecute("mailto:"+vAddress+"?subject="+vSubject+"&am
p;body="+vbody+"&Attachment="+vAttachment) 
>>
>>
>>
>> This AppExecute is good except no attachment is present. Why no 
>> attachment?
>>
>> Vic
>>
>>
>>
>>
>> Victor Ouellette wrote:
>>>
>>> Is my understanding correct that the conclusoin of posts on mailto

>>> and attachments is that mailto: cannot include a pdf attachment?
>>>
>>
> 
Post Reply
Re: mailto: and Attachments
Mon, 14 Apr 2008 13:56:01 -040
oh BTW I don't know how to test a macro step by step so I just keep 
redoing it until I get it right.

Vic


Charles Rossiter wrote:
> 
> Victor,
> 
> One thing stands out in your macro.  What setting do you have under 
> Tools, Settings, Environment, "Use WordPerfect 9 text selection"?
 The 
> text selection steps probably select different text strings, dependent 
> on that setting.  Did you test your macro step-by-step to check that the 
> contents of your variables are as you expect them to be?
> 
> 
> Victor Ouellette wrote:
>>
>> The following is my five line data file.
>>
>>
>> EmailData file
>> DrO
>> 01
>> [[{11(2test01)}DrO]]
>> info@painreliefdiet.com
>>  >>>>
>>
>>
>> then my macro
>>
>> Application (WordPerfect; "WordPerfect"; Default!;
"EN")
>>
>> 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    //v now equals the client's email address.
>> 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="vPath"+f
>>
>>
>>     //Execute the email.
>>
AppExecute("mailto:"+vAddress+"?subject="+vSubject+"&am
p;body="+vbody+"&Attachment="+vAttachment) 
>>
>>
>>
>> This AppExecute is good except no attachment is present. Why no 
>> attachment?
>>
>> Vic
>>
>>
>>
>>
>> Victor Ouellette wrote:
>>>
>>> Is my understanding correct that the conclusoin of posts on mailto

>>> and attachments is that mailto: cannot include a pdf attachment?
>>>
>>
> 
Post Reply
Re: mailto: and Attachments
Mon, 14 Apr 2008 14:28:52 -040
Thank you for that. I will use that in the future. But, I see not need 
to change what I already have as it is in many, many places in the 
macros. When Selection mode is on the  PosLineEnd () command takes the 
hard return at the end of the line. So the  PosCharPrevious () skips 
that HR.
Vic


lemoto wrote:
> Victor:
>> PosLineBeg ()
>> SelectMode (State: On!)
>> PosLineEnd ()
>>  PosCharPrevious ()        //To skip the Hard Return.
> 
> Rather, this omits the last character in the line.
> 
> I should use:
> 
> PosDocTop
> SearchString ("@")
> SearchNext
> PosLineBeg
> SelectLineEnd
> 
Post Reply
<< Previous 1 2 3 4 5 6 7 Next >>
( Page 1 of 7 )
about | contact