E10 BPM error sending emails from within new BPM

Hi
I was wondering if anyone has problem sending emails using BPM
I can send sales acknowledgements and other report via email but doesn’t work from within BPM

any advice would be appreciated
Thanks

BPM runtime caught an unexpected exception of ‘SmtpException’ type.
See more info in the Inner Exception section of Exception Details.

Exception caught in: Epicor.ServiceModel

Error Detail

Description: BPM runtime caught an unexpected exception of ‘SmtpException’ type.
See more info in the Inner Exception section of Exception Details.
Program: System.dll
Method: CheckResponse
Original Exception Type: SmtpException
Framework Method: A002_SendMailAction
Framework Line Number: 0
Framework Column Number: 0
Framework Source: A002_SendMailAction at offset 2031 in file:line:column :0:0

Server Trace Stack: at System.Net.Mail.DataStopCommand.CheckResponse(SmtpStatusCode statusCode, String serverResponse)
at System.Net.Mail.DataStopCommand.Send(SmtpConnection conn)
at System.Net.ClosableStream.Close()
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at Epicor.Customization.Bpm.BO7B67BDDE79A7465CAA412F20A8914A0C.PreUpdatePreProcessingDirective_Email_to_planning_for_RMA_Supplier_98CB0EC0A9954CFDA1D4C4409DFBA926.A002_SendMailAction()
at Epicor.Customization.Bpm.BO7B67BDDE79A7465CAA412F20A8914A0C.PreUpdatePreProcessingDirective_Email_to_planning_for_RMA_Supplier_98CB0EC0A9954CFDA1D4C4409DFBA926.ExecuteCore()
at Epicor.Customization.Bpm.DirectiveBase`3.Execute(TParam parameters) in c:_Releases\ICE\3.1.400.38\Source\Server\Internal\Lib\Epicor.Customization.BPM\DirectiveBase.Generic.cs:line 160

Client Stack Trace

at Epicor.ServiceModel.Channels.ImplBase`1.ShouldRethrowNonRetryableException(Exception ex, DataSet[] dataSets)
at Erp.Proxy.BO.DMRProcessingImpl.PreUpdate(DMRProcessingDataSet ds, Boolean& requiresUserInput)
at Erp.Adapters.DMRProcessingAdapter.PreUpdate(Boolean& requiresUserInput)

Inner Exception

Transaction failed. The server response was: 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 0.35250:B7010000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:B9200000, 1.36674:0E000000, 1.61250:00000000, 1.45378:BE200000, 1.44866:F4030000, 16.55847:85100000, 17.43559:0000000004020000000000000000000000000000, 20.52176:140F93891D00000000000000, 20.50032:140F93898D1770200A003612, 0.35180:D5010000, 255.23226:DD010000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:140F9389, 0.35250:0A000000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:70000000, 1.36674:32000000, 1.61250:00000000, 1.45378:75000000, 1.44866:01000000, 16.55847:DC000000, 17.43559:0000000030030000000000000000000000000000, 20.52176:140F93891D0000000A00B480, 20.50032:140F93898D17702003000136, 0.35180:0A00B580, 255.23226:3F000000, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:4800D13D, 4.21921:DC040000, 255.27962…

Inner Stack Trace

I send emails from BPM all the time, but they should be send from a Standard directive (if Data) not In Transaction. if Method, do it in a Post Processing directive. It doesn’t seem to like to fire off emails within a transaction.

Thank you for replying

I’m new to BPMs so appreciate any assistance or info

I asked Epicor they replied earlier but I’ve not had a chance to get back to them

If I have any other questions I’d be grateful if you could offer further advice

Regards

Andy Higney

Regards

Andy Higney

Scion Instruments

andyh@scioninstruments.com

No problem, feel free to ask questions :slight_smile: I ask questions too, it’s sometimes the best way to learn. Others on this forum have helped me when I ask, but I know some tricks the normal Epicor consultants do not, there’s a couple of them that we have worked with that ask for me by name. Knowing that I could figure it out. I’m rather stubborn when it comes to finding solutions to problems. Can’t say I’ll give you the best option, but I’ll try to come up with something that works :smiley:

Hi Marjorie
Thanks for the advice I finally managed to get the BPM to send emails

Have you had any experience of Indented BOM cost reporting

I have not, we don’t use BOM at our Company.

Thanks for your help

I appreciate it

Regards

Andy Higney

Scion Instruments

andyh@scioninstruments.com

What was your resolution to fix the issue?

In Company Maintenance there is an “Email and Reporting” Tab where you add the email credentials (user name and Password)
When you create the BPM you need to use the same user name from this tab as the “From” address in the design email template when you create the BPM Hope this helps