Ampersand variables are meant to contain command elements, not item values. 
It likely is not the problem you are having, but your variables should be 
dotted.

What no one has suggested yet, is to concantenate your entire command into 
one variable, and then use the ampersand variable as the command.  This is 
usually what I do when I am pretty sure everything else is right and it is 
still failing.

Also, if any of your variable values have embedded quotes in them, you want 
to make sure they are escaped properly.


----- Original Message ----- 
From: "Jim Belisle" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Friday, January 13, 2012 8:28 AM
Subject: [RBASE-L] - continuing email problems


Gary,



I realized after sending the email that the copy and paste did not
really show things properly.

The separators were correct in my actual code.

I was getting an error "unrecognized command. Retype it" when it gets to
the email section.

I was able to get rid of the error and it acts like it is sending the
email but it really is not.



This is the actual code:



PRINT &vreportname WHERE quoteid = .vquoteid +

OPTION PDF +

|FILENAME &vFileName +

|TITLE Kay Park Recreation +

|AUTHORIZATION Sales Quote Processing Department +

|EMAIL ON +

|EMAIL_HOST k-exchange.k.local +

|EMAIL_USERID ??? +

|EMAIL_PASSWORD ??? +

|EMAIL_ATTACHMENTS &vattachments +

|EMAIL_TO_LIST [email protected]  +

|EMAIL_SUBJECT quotereport +

|EMAIL_BCC_LIST [email protected] +

|EMAIL_BODY this is a test +

|EMAIL_SHOW_DIALOG OFF +

|EMAIL_FROM_NAME Jim +

|EMAIL_FROM_ADDRESS [email protected] +

|EMAIL_AUTHENTICATION ON



Any variables I use are coming up correct when I trace the code.

At least I got rid of the error code but it still is not sending.

Any more suggestions?



James Belisle



Making Information Systems People Friendly Since 1990





James Belisle



Making Information Systems People Friendly Since 1990


Reply via email to