Smtpmail.p Blank Title 120422

Greg/Rob,
Just an update.  Finally got back to this. Funny how clear things become after stop staring at them for too long.  I now have a BPM that replicates a BAM... So I can include the link to the form.

I am so glad I have got this working as we use BAMs for approvals on quotes. I am led to believe that BAMs are being depreciated in 10 (Happy to hear otherwise).

Thanks again.

Simon Hall
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@...]<http://www.dsmfg.com/>
(Click the logo to view our site)<http://www.dsmfg.com/>



[Non-text portions of this message have been removed]
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@yahoogroups.com] On Behalf Of Rob Bucek
Sent: Thursday, May 02, 2013 9:21 PM
To: 'vantage@yahoogroups.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>]<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]
Greg,

I did put the b64encode.p file in the custom\lib folder the same as the smtpmail.p file. I can see that my attachments parameter is probably wrong. Im trying to send a pdf, talk to me a bit about the Type = parameter.. Thanks for your help on this!

rob

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Greg Payne
Sent: Friday, May 03, 2013 12:17 AM
To: vantage@yahoogroups.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@yahoogroups.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>'
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>]<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]
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@...' .
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@...'.

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@yahoogroups.com] On Behalf Of Greg Payne
Sent: Friday, May 03, 2013 12:17 AM
To: vantage@yahoogroups.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@yahoogroups.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>'
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>]<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]
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@yahoogroups.com] On Behalf Of Rob Bucek
Sent: Friday, May 03, 2013 9:48 AM
To: vantage@yahoogroups.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>' .
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>'.

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@yahoogroups.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>
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@yahoogroups.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>'
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>]<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]
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@...]<http://www.dsmfg.com/>
(Click the logo to view our site)<http://www.dsmfg.com/>

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Greg Payne
Sent: Friday, May 03, 2013 10:14 AM
To: vantage@yahoogroups.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@yahoogroups.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>
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>' .
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>'.

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@yahoogroups.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>
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@yahoogroups.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>'
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>]<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]
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@yahoogroups.com] On Behalf Of Rob Bucek
Sent: Friday, May 03, 2013 11:29 AM
To: 'vantage@yahoogroups.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>]<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@yahoogroups.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>
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@yahoogroups.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>
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>' .
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>'.

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@yahoogroups.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>
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@yahoogroups.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>'
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>]<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]
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@...]<http://www.dsmfg.com/>
(Click the logo to view our site)<http://www.dsmfg.com/>

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Greg Payne
Sent: Friday, May 03, 2013 10:53 AM
To: vantage@yahoogroups.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@yahoogroups.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>'
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>]<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:14 AM
To: vantage@yahoogroups.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@yahoogroups.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>
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>' .
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>'.

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@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 12:17 AM
To: vantage@yahoogroups.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@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: 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>'
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>]<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]
Added them to a smtpmail folder in the file section.

Greg

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Rob Bucek
Sent: Friday, May 03, 2013 11:56 AM
To: 'vantage@yahoogroups.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>]<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@yahoogroups.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>
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@yahoogroups.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>'
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>]<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@yahoogroups.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>
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@yahoogroups.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>
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>' .
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>'.

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@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 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>
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@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 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>'
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>]<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]
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]


Hi Rob,

 

Did you ever get this working with attachments?  I have installed Greg's files and triggered it from a BPM but it never sends an email.

 

Are there additional setup steps required?  I did see the mailhub variable in the smtpmail.p file but changing it doesn't make a difference.

 

Using the alternate BpmEmail.p approach works fine with email, but I don't know how to send attachments that way.

 

Thanks,

Ross

Yes I did get it working, email me offline and I can help you.

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-3119
FAX: (715)284-4084
[cid:1.234354861@...]<http://www.dsmfg.com/>
(Click the logo to view our site)<http://www.dsmfg.com/>

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Thursday, July 10, 2014 10:26 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: smtpmail.p



Hi Rob,



Did you ever get this working with attachments? I have installed Greg's files and triggered it from a BPM but it never sends an email.



Are there additional setup steps required? I did see the mailhub variable in the smtpmail.p file but changing it doesn't make a difference.



Using the alternate BpmEmail.p approach works fine with email, but I don't know how to send attachments that way.



Thanks,

Ross



[Non-text portions of this message have been removed]
I am not sure if the BpmEmail.p can handle attachments there is little documentation on it.  I guess if it is being called from BAMs to add in the record link it must, but I am not sure if BAMs use it.

Could anyone confirm that?

I would be really interested in trying to get the smtpmail.p to work, but it leaves messages in the server log and  does not send a message.  I don't get a stop error.

Here is an example of the error.
[14/10/27@23:19:49.696+1100] P-005764 T-002372 1 AS -- ** Attempt to write to closed stream sLogfile. (1387)
[14/10/27@23:19:49.696+1100] P-005764 T-002372 1 AS -- ** ABL Debug-Alert Stack Trace **
[14/10/27@23:19:49.696+1100] P-005764 T-002372 1 AS -- --> Cleanup utils/smtpmail.p (D:\Epicor905\Server\utils\smtpmail.p) at line 1327
[14/10/27@23:19:49.696+1100] P-005764 T-002372 1 AS --     utils/smtpmail.p (D:\Epicor905\Server\utils\smtpmail.p) at line 709
[14/10/27@23:19:49.696+1100] P-005764 T-002372 1 AS --     bpm_serialized_action E:/EpicorData/102250991183312922318350118713191251171109.p (E:\EpicorData\102250991183312922318350118713191251171109.p) at line 6393

What I might do is retest the base example that is stored in the files section.

Cheers
Simon Hall
It’s possible, I have a BPM that sends emails with PDF attachments from an updateable dashboard.

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-3119
FAX: (715)284-4084
[cid:1.234354861@...]<http://www.dsmfg.com/>
(Click the logo to view our site)<http://www.dsmfg.com/>

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Wednesday, October 29, 2014 6:53 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: smtpmail.p



I am not sure if the BpmEmail.p can handle attachments there is little documentation on it. I guess if it is being called from BAMs to add in the record link it must, but I am not sure if BAMs use it.

Could anyone confirm that?

I would be really interested in trying to get the smtpmail.p to work, but it leaves messages in the server log and does not send a message. I don't get a stop error.

Here is an example of the error.
[14/10/27@23:19:49.696+1100] P-005764 T-002372 1 AS -- ** Attempt to write to closed stream sLogfile. (1387)
[14/10/27@23:19:49.696+1100] P-005764 T-002372 1 AS -- ** ABL Debug-Alert Stack Trace **
[14/10/27@23:19:49.696+1100] P-005764 T-002372 1 AS -- --> Cleanup utils/smtpmail.p (D:\Epicor905\Server\utils\smtpmail.p) at line 1327
[14/10/27@23:19:49.696+1100] P-005764 T-002372 1 AS -- utils/smtpmail.p (D:\Epicor905\Server\utils\smtpmail.p) at line 709
[14/10/27@23:19:49.696+1100] P-005764 T-002372 1 AS -- bpm_serialized_action E:/EpicorData/102250991183312922318350118713191251171109.p (E:\EpicorData\102250991183312922318350118713191251171109.p) at line 6393

What I might do is retest the base example that is stored in the files section.

Cheers
Simon Hall



[Non-text portions of this message have been removed]

Simon:

 

Below is what I used for my very first test of smtpmail. I put on post processing update.  the server log should show like below.

 

HTH

 

Greg

 

 

[14/10/29@10:52:49.769-0400] P-012784 T-009828 1 AS -- (Procedure: 'UpdatePost226_A1 bo/RFQEntry/RFQEntry.p'

Line:8366) Mail Hub Is  192.168.11.20:25

[14/10/29@10:52:55.888-0400] P-012784 T-009828 1 AS -- (Procedure: 'UpdatePost226_A1 bo/RFQEntry/RFQEntry.p'

Line:8400) yes

[14/10/29@10:52:55.888-0400] P-012784 T-009828 1 AS -- (Procedure: 'UpdatePost226_A1 bo/RFQEntry/RFQEntry.p'

Line:8400) Email has been accepted for delivery.

 

 

 

 

 

{utils/vars-smtp.i}

 

/** Added for testing in Char  **/

def var v-body as longchar .

def var c-ReadLine as char no-undo.

 

 

 

message

    "Mail Hub Is " mailhub.

 

ASSIGN

    EmailTo         =   "me@..."

    EmailFrom       =   "info@..."

    EmailCC         =   ""

    Attachments     =   ""

    LocalFiles      =   ""

    Subject         =   "Test to send Email Number #1 - 4-29-13"

    BodyType        =   "".

                          

 

    /**/

        RUN "utils/smtpmail.p"

            (INPUT mailhub,

            EmailTo,

            EmailFrom,

            EmailCC,

            Attachments,

            Localfiles,

            Subject,

            Body,

            MIMEHeader,

            BodyType,

            Importance,

            L_DoAUTH,

            C_AuthType,

            C_User,

            C_Password,

            OUTPUT oSuccessful,

            OUTPUT vMessage). 

        /**/

        message

            oSuccessful skip

            vMessage.

       /**/

   

 

 

 

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Wednesday, October 29, 2014 7:53 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: smtpmail.p

 

 

I am not sure if the BpmEmail.p can handle attachments there is little documentation on it.  I guess if it is being called from BAMs to add in the record link it must, but I am not sure if BAMs use it.

Could anyone confirm that?

I would be really interested in trying to get the smtpmail.p to work, but it leaves messages in the server log and  does not send a message.  I don't get a stop error.

Here is an example of the error.
[14/10/27@23:19:49.696+1100] P-005764 T-002372 1 AS -- ** Attempt to write to closed stream sLogfile. (1387)
[14/10/27@23:19:49.696+1100] P-005764 T-002372 1 AS -- ** ABL Debug-Alert Stack Trace **
[14/10/27@23:19:49.696+1100] P-005764 T-002372 1 AS -- --> Cleanup utils/smtpmail.p (D:\Epicor905\Server\utils\smtpmail.p) at line 1327
[14/10/27@23:19:49.696+1100] P-005764 T-002372 1 AS --     utils/smtpmail.p (D:\Epicor905\Server\u tils\smtpmail.p) at line 709
[14/10/27@23:19:49.696+1100] P-005764 T-002372 1 AS --     bpm_serialized_action E:/EpicorData/102250991183312922318350118713191251171109.p (E:\EpicorData\102250991183312922318350118713191251171109.p) at line 6393

What I might do is retest the base example that is stored in the files section.

Cheers
Simon Hall



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."
Rob,
Are you saying you are using bpmemail.p or smtpemail.p?  If you are using bpmemail.p I would be interested to see an example if you are.

Kind Regards
Simon
Thanks Greg,
I plan to revisit this today.  I'll let you know.

Cheers
smtp

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-3119
FAX: (715)284-4084
[cid:1.234354861@...]<http://www.dsmfg.com/>
(Click the logo to view our site)<http://www.dsmfg.com/>

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Thursday, October 30, 2014 2:54 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: smtpmail.p



Rob,
Are you saying you are using bpmemail.p or smtpemail.p? If you are using bpmemail.p I would be interested to see an example if you are.

Kind Regards
Simon



[Non-text portions of this message have been removed]