Huge thanks to Greg for helping through this..learned a lot! As I have some time I will document this process and a few things I learned and post to the group...
Thanks Greg
From:
vantage@yahoogroups.com [mailto:
vantage@yahoogroups.com] On Behalf Of Greg Payne
Sent: Friday, May 03, 2013 11:10 AM
To:
vantage@yahoogroups.com
Subject: [Vantage] RE: smtpmail.p
Added them to a smtpmail folder in the file section.
Greg
From:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of Rob Bucek
Sent: Friday, May 03, 2013 11:56 AM
To: '
vantage@yahoogroups.com<mailto:%26%2339%3Bvantage%40yahoogroups.com>'
Subject: [Vantage] RE: smtpmail.p
Nothing yet... I wonder if our mxlogic is being a PIA...
Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-4832
FAX: (715)284-4084
[cid:
1.234354861@...<mailto:1.234354861%40web65412.mail.ac4.yahoo.com><mailto:1.234354861%40web65412.mail.ac4.yahoo.com>]<
http://www.dsmfg.com/>
(Click the logo to view our site)<
http://www.dsmfg.com/>
From:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com> [mailto:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>] On Behalf Of Greg Payne
Sent: Friday, May 03, 2013 10:53 AM
To:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>
Subject: [Vantage] RE: smtpmail.p
I Cc'd your dsmfg account with them. let me know if they don't show.
I just did a test with a 6MB PDF thru my setup and it took a while to process, but worked. The are some older posts of larger pdf files getting corrupted and I had never send a pdf.
Greg
From:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com> [mailto:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>] On Behalf Of Rob Bucek
Sent: Friday, May 03, 2013 11:29 AM
To: '
vantage@yahoogroups.com<mailto:%26%2339%3Bvantage%40yahoogroups.com><mailto:%26%2339%3Bvantage%40yahoogroups.com><mailto:%26%2339%3Bvantage%40yahoogroups.com>'
Subject: [Vantage] RE: smtpmail.p
You mentioned an attachment, could you send that offline? It won't work here. Sounds like I need a few more files.. I haven't seen a reference to the testsm and vars-smtp.i you mentioned.
Thanks!
Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-4832
FAX: (715)284-4084
[cid:
1.234354861@...<mailto:1.234354861%40web65412.mail.ac4.yahoo.com><mailto:1.234354861%40web65412.mail.ac4.yahoo.com><mailto:1.234354861%40web65412.mail.ac4.yahoo.com><mailto:1.234354861%40web65412.mail.ac4.yahoo.com>]<
http://www.dsmfg.com/>
(Click the logo to view our site)<
http://www.dsmfg.com/>
From:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com> [mailto:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>] On Behalf Of Greg Payne
Sent: Friday, May 03, 2013 10:14 AM
To:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>
Cc: Rob Bucek
Subject: [Vantage] RE: smtpmail.p
Rob:
The call I have for smtpmail has two outputs also. I don't know if our versions are different, so I am attaching what I am using. I confirmed that the 5.8c is the latest version from freeframework.sourceforge.net
I got the testsm and vars-smtp.i from a post on progresstalk and made a utils directory, since that was the default location for smtpmail, b64encode and gethostbyname and copied them all there.
I copied the testsm.p into a post processing bpm on update and it worked for me to send excel files.
Greg
From:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com> [mailto:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>] On Behalf Of Rob Bucek
Sent: Friday, May 03, 2013 9:48 AM
To:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>
Subject: [Vantage] RE: smtpmail.p
This is what I have for the email portion so far, I modified the file name from your response but still getting that error from the smtpmail.p program...
assign vBody = 'Please see the attached file for MSDS information~n' .
assign vEmailTo = '
rbucek@...<mailto:%26%2339%3Brbucek%40dsmfg.com><mailto:%26%2339%3Brbucek%40dsmfg.com><mailto:%26%2339%3Brbucek%40dsmfg.com><mailto:%26%2339%3Brbucek%40dsmfg.com><mailto:%26%2339%3Brbucek%40dsmfg.com><mailto:%26%2339%3Brbucek%40dsmfg.com>' .
assign vAttachPath = '\\FS2\Public\rbucek\' .
assign vFileName = 'test.pdf' + ":Type = application/octet-stream:FileType=Binary" .
assign vCSVFileName = vAttachPath + vFileName .
assign vSubject = 'MSDS' + string(today,'99/99/9999') .
assign vAuthUser = vuser.
assign vAuthUser = vpass .
assign vServer = 'exchange'.
assign vAuthType = 'base64'.
assign vFrom = '
rbucek@...<mailto:%26%2339%3Brbucek%40dsmfg.com><mailto:%26%2339%3Brbucek%40dsmfg.com><mailto:%26%2339%3Brbucek%40dsmfg.com><mailto:%26%2339%3Brbucek%40dsmfg.com><mailto:%26%2339%3Brbucek%40dsmfg.com><mailto:%26%2339%3Brbucek%40dsmfg.com>'.
run custom/lib/smtpmail.p (
INPUT vServer,
INPUT vEmailTo,
INPUT vFrom,
INPUT '',
INPUT vFileName,
INPUT vCSVFileName,
INPUT vSubject,
INPUT vBody,
INPUT '',
INPUT '',
INPUT yes,
INPUT vAuthType,
INPUT vAuthUser,
INPUT vAuthPass
) no-error .
End.
From:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com> [mailto:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>] On Behalf Of Greg Payne
Sent: Friday, May 03, 2013 12:17 AM
To:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>
Subject: [Vantage] RE: smtpmail.p
I just started to use this week to attach excel files and it has worked nice, except I can't run that bpm asynchronous or it stops the BPM action process from running. All of that runs emails get sent, but then I have to stop/start the task and process servers. It would look much sweeter if the UI returned quickly instead of waiting for a dozen emails to process.
do you have b64encode.p? it is needed to send binary attachments and from what I gathered there were issues with blank documents if type was not binary.
here is what I am using for attachments.
Attachments = WorkBook + ":Type=application/octet-stream:FileType=Binary"
LocalFiles = "E:\EpicorOUT\" + WorkBook
Greg Payne
From:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com> [mailto:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>] On Behalf Of Rob Bucek
Sent: Thursday, May 02, 2013 9:21 PM
To: '
vantage@yahoogroups.com<mailto:%26%2339%3Bvantage%40yahoogroups.com><mailto:%26%2339%3Bvantage%40yahoogroups.com><mailto:%26%2339%3Bvantage%40yahoogroups.com><mailto:%26%2339%3Bvantage%40yahoogroups.com><mailto:%26%2339%3Bvantage%40yahoogroups.com><mailto:%26%2339%3Bvantage%40yahoogroups.com><mailto:%26%2339%3Bvantage%40yahoogroups.com>'
Subject: [Vantage] smtpmail.p
Is anyone using this with E9 and sending an attachment? Getting a stop condition, it seems to be in the area where the attachments are being handled (I am attempting to attach a file). Here is the log server error im getting.
[13/05/02@20:17:08.291-0500] P-004892 T-002624 1 AS -- (Procedure: 'UpdatePre177_A1 bo/UD36/UD36.p' Line:6374) Unable to understand statement ) cExtraResp = ". . (3583)
[13/05/02@20:17:08.291-0500] P-004892 T-002624 1 AS -- (Procedure: 'UpdatePre177_A1 bo/UD36/UD36.p' Line:6374) ** D:\Epicor\Epicor905\custom\lib\smtpmail.p Could not understand line 1. (196)
Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-4832
FAX: (715)284-4084
[cid:
1.234354861@...<mailto:1.234354861%40web65412.mail.ac4.yahoo.com><mailto:1.234354861%40web65412.mail.ac4.yahoo.com><mailto:1.234354861%40web65412.mail.ac4.yahoo.com><mailto:1.234354861%40web65412.mail.ac4.yahoo.com><mailto:1.234354861%40web65412.mail.ac4.yahoo.com><mailto:1.234354861%40web65412.mail.ac4.yahoo.com><mailto:1.234354861%40web65412.mail.ac4.yahoo.com><mailto:1.234354861%40web65412.mail.ac4.yahoo.com>]<
http://www.dsmfg.com/>
(Click the logo to view our site)<
http://www.dsmfg.com/>
[Non-text portions of this message have been removed]
________________________________
CONFIDENTIALITY NOTICE
The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at 727-578-6280 and immediately delete the communication.
"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
________________________________
CONFIDENTIALITY NOTICE
The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at 727-578-6280 and immediately delete the communication.
"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
________________________________
CONFIDENTIALITY NOTICE
The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at 727-578-6280 and immediately delete the communication.
"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
________________________________
CONFIDENTIALITY NOTICE
The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at 727-578-6280 and immediately delete the communication.
"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]