Jim:  I agree with Doug's email below.  Several of my customers use the 
"PRINT.... EMAIL ON" option.   It is tricky to know what user / password to 
use.  At one customer (but not in all), there is only ONE username that can be 
used, otherwise the emails don't go out.  No matter who is sending the email, 
it has to be one particular user, or else the email won't go out.  Their IT guy 
told us the name to use.  We used to hard-code it in the PRINT statement, but 
it's changed several times so we put it in a table and look it up.  Also, 
sometimes I have AUTHENTICATION ON and sometimes OFF.  I am absolutely clueless 
on this stuff, so I just do what the IT guy tells me to do

Karen


    On Wednesday, August 6, 2025 at 03:55:55 PM CDT, Doug Hamilton 
<[email protected]> wrote:   

  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 [[email protected]]+
     |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 [email protected].
 To view this discussion visit 
https://groups.google.com/d/msgid/rbase-l/118601033.2711092.1754511247708%40mail.yahoo.com.
 
 

|  | Virus-free.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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/rbase-l/3ae468a3-92c3-42f0-b445-7453d096b2da%40wi.rr.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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/rbase-l/1635168607.65432.1754515748804%40mail.yahoo.com.

Reply via email to