Web Connection
Expose AddAttachment in wwprocess:SendErrorEmail
Gravatar is a globally recognized avatar based on your email address. Expose AddAttachment in wwprocess:SendErrorEmail
  Richard Kaye
  All
  Oct 29, 2021 @ 12:42pm

Hi Rick,

How would you feel about exposing AddAttachment in the above referenced method? For example, let's say I wanted dump LIST STATUS to a file and then attach that file as opposed to adding it to the email body? I assume that would also have to carry through to SendAdminEmail since that's where the action actually happens...

Or I guess I can roll my own.

Gravatar is a globally recognized avatar based on your email address. re: Expose AddAttachment in wwprocess:SendErrorEmail
  Rick Strahl
  Richard Kaye
  Oct 29, 2021 @ 08:33pm

If you need attachments roll your own or simply override the method by copying it into your own class and taking over the wwSmtp sending. I think the method in wwProcess just forwards to the wwServer method, so you can use that code as a base and add the attachment or capture of data.

+++ Rick ---

© 1996-2021