Jim - this works for me:
PRINT InvoiceEM +
WHERE INVOICE# = .vInvoice# +
OPTION PDF | FILENAME .vPDFName +
|EMAIL ON +
|EMAIL_TO_LIST .vInvEmailAddress +
|EMAIL_FROM_NAME [EmailName] +
|EMAIL_FROM_ADDRESS [EmailFromAddr] +
|EMAIL_SUBJECT .vSubject +
|EMAIL_BODY .vBody +
|EMAIL_HOST [h...@email.com]+
|EMAIL_AUTHENTICATION ON +
|EMAIL_PORT 2525 +
|EMAIL_USERID [EmailUserID] +
|EMAIL_PASSWORD [EmailPassword] +
|EMAIL_SHOW_DIALOG OFF +
|SHOW_CANCEL_DIALOG OFF
Notes:
Replace [SquareBrackets] with your values.
I got tripped up on EMAIL_HOST, EMAIL_USERID, and EMAIL_PASSWORD.
They are not necessarily the EMAIL_FROM_NAME and EMAIL_FROM_ADDRESS.
We checked with their IT guy and they were completely different from
anything we expected.
Note that the password will be visible in the code.
You might have to change to EMAIL_PORT value.
vPDFFileNmae is a uniquely generated file name.
Doug
On 8/6/2025 3:14 PM, 'jim schmitt' via RBASE-L wrote:
Hello , Group:
Version RB11
Situation: customer wants to inquire on an account, which has an
email address, and have a button on the screen labeled 'Email
Statement' in order to print a statement and send it via email. I do
have the inquiry working with a button labeled 'Print Statement' which
works fine, but trying to get another button option to send via email
is not working.
I have never tried to send an email from R:base and today I am
struggling badly using one of the samples from RB 11/Samples/RRBW21,
and am stumped trying to get email to work. I guess on some things
I am dense.
Does anyone have something like this in their code, and can share it
with me.
My butt may be on the line on this.......
Thanks in advance
Jim Schmitt
Ohio Software Services
1-614-361-3942
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google
Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to rbase-l+unsubscr...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/rbase-l/118601033.2711092.1754511247708%40mail.yahoo.com
<https://groups.google.com/d/msgid/rbase-l/118601033.2711092.1754511247708%40mail.yahoo.com?utm_medium=email&utm_source=footer>.
--
This email has been checked for viruses by Avast antivirus software.
www.avast.com
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rbase-l+unsubscr...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/rbase-l/3ae468a3-92c3-42f0-b445-7453d096b2da%40wi.rr.com.