Jim:  One of my clients never uses mapimail or Rmail.  They use only these
"print / "email on" statements and have never had a problem.  I'm sorry but 
I don't
know what their email client is...

The trick with using "print" is deciding what to do with your settings.  
The print
statement you show below does not embed the email settings in the 
statement.
So what that means is that you need to into RBase on each workstation and 
enter the email settings there at each machine (this is what my client 
does).
If you don't want to do that, then you have to put the email settings right 
in the
print statement, which would expose them to anyone reading the code.

Below is an example of the full code which would require you to embed a 
userid,
a pasword, a port, host name, etc...

PRINT Invoice WHERE TransID = 1031 OPTION PDF|FILENAME Invoice_1031.PDF 
|EMAIL ON +
|EMAIL_HOST mail.yourmailserver.com +
|EMAIL_USERID johndoe +
|EMAIL_PASSWORD your_smtp_password +
|EMAIL_BODY Please see attached PDF document! +
|EMAIL_FROM_ADDRESS [email protected] +
|EMAIL_FROM_NAME John G. Doe +
|EMAIL_ATTACHMENTS C:\Letters\otherstuff.pdf#C:\Letters\morestuff.pdf +
|EMAIL_TO_LIST [email protected], [email protected], 
[email protected]  +
|EMAIL_SUBJECT Sales Summary Report +
|EMAIL_PORT 25 +
|EMAIL_AUTHENTICATION ON +
|EMAIL_DELETE_AFTER_SEND ON +
|EMAIL_SHOW_DIALOG ON


Karen


In a message dated 1/11/2012 8:37:34 AM Central Standard Time, 
[email protected] writes: 
> PRINT Invoice WHERE TransID = 1031 + 
> OPTION PDF|FILENAME Invoice_1031.PDF + 
> |EMAIL ON + 
> |EMAIL_TO_LIST [email protected], [email protected] + 
> 
>                      Can these be defined variables as well?
> |EMAIL_FROM_NAME John D. Johnson + 
> |EMAIL_FROM_ADDRESS [email protected] + 
> |EMAIL_SUBJECT Imagine The Possibilities! + 
> |EMAIL_BODY Attached is the invoice - sent via R:BASE. Because we Can! +
> 
> |EMAIL_ATTACHMENTS C:\Letters\otherstuff.pdf#C:\Letters\morestuff.pdf + 
> |EMAIL_DELETE_AFTER_SEND ON + 
> |EMAIL_SHOW_DIALOG OFF  
> RETURN 
> 
> 
> 
> What is the difference between using variables and using the above code?
> 
> I am so lacking in how email programs work.

Reply via email to