Having a little issue trying to get a PDF to attach to an Email PDF attachment. The pdf is on a server \\nhixxx\public\Interlock\Data Files\Data\58\69.PDF and I have included the following headings: Variables, Script, Result in DataEmail.MAL file, The Issue, Background if interested and "What it does for me".
Variables from copy/paste when traced: .vpdfName \\nhixxx\public\Interlock\Data Files\Data\58\69.PDF (defined in script 60 lines above here) .vAtLine X-Attachments\\nhixxx\public\Interlock\Data Files\Data\58\69.PDF (created from script below) Script/EEP: SET VAR vReturn TEXT = (CHAR(013)) SET VAR vBody TEXT = 'Please see attached PDF document!' SET VAR vReceip TEXT = '[email protected]' SET VAR vMailTo TEXT = ('To:' + .vreceip) SET VAR vFrom TEXT = 'From:[email protected]' SET VAR vSubj TEXT = 'Subject: See Attached ' SET VAR vCc TEXT = 'CC:[email protected]' -- SET VAR vBcc TEXT = ('BCC:') SET VAR vAtLine TEXT = ('X-Attachments:'+.vpdfname) SET VAR vFormat TEXT = ('Format:T') SET VAR vPriority TEXT = ('Priority: 2') SET VAR vReceipt TEXT = ('Receipt:') DELETE DataEmail.mal --write .mal to owner/users name-UserId.mal for positive id OUTPUT DataEmail.mal WRITE .vMailTo WRITE .vFrom WRITE .vSubj WRITE .vCc WRITE .vAtLine WRITE .vFormat WRITE .vPriority WRITE .vReceipt WRITE .vReturn WRITE .vBody WRITE .vReturn OUTPUT SCREEN SET VAR vRMmail = (UDF('@RMail.DLL',' DataEmail.MAL'))--write users for +id Result in DataEmail.MAL file: To:[email protected] (Hidden but there "CR" + "LF") From:[email protected] (Hidden but there "CR" + "LF") Subject: See Attached (Hidden but there "CR" + "LF") CC:[email protected] (Hidden but there "CR" + "LF") X-Attachments:\\newhorizonbios\public\Interlock\Data Files\Data\58\69.PDF (Hidden but there "CR" + "LF") Format:T (Hidden but there "CR" + "LF") Priority: 2 (Hidden but there "CR" + "LF") Receipt: (Hidden but there "CR" + "LF") (Hidden but there "CR") (Hidden but there "CR" + "LF") Please see attached PDF document! (Hidden but there "CR") (Hidden but there "CR" + "LF") (Hidden but there "Sub") I wanted to include any "Char"'s as possible so I can explain this as well as I can. The Issue: 1. This always appears in my 'Junk Mail' so I figured it was sender vs. name of sender in script. Does not seem to affect the results. 2. I have never got a PDF to attach. I tested the path from explorer and it works. Really important item!! (Maybe too long of a path? ) 3. I am not sure if your email window will show this. However I also get a "Ctrl-Z" aka "Sub" char beneath about 2 lines down. I can get it to move with "CR" commands. Kind of a cute little icon ;) But who is there doing that insert (char(26))? Background if interested: XP-SP4 (I recall) RMail 2.6 Multi, RBase 7.6 ee 7.6.6.30214, Standard smtp/pop server hosted by GoDaddy Outlook 7.0 (sorry not Mozilla yet!) ah Linux Server. "What it does for me": I have all 219 lines of code working till this spot. It is pretty cool - It is from a form/eep and makes a pdf and then stores it, verifies it is there and customer/client folder is there, checks for RPDFMerge, loads LoadFileName++ and you select 1-20 PDF's to merge, saves it and checks that it got there, shows it to you all as one PDF's (these pdf's that got merged are from a proprietary program and the one you created) raps it all up into a email and sends it - I hope! The users can cross check any step if he/she got there without the error messages popping up. Sincerely, Paul Dewey

