1756
iSeries / Re: Retrieve a CMOD document and email found document
« on: December 16, 2011, 06:53:29 AM »
I know that you're using iSeries, but hopefully the process for sending an eMail from the server is similar to UNIX/Linux.
First, once you retrieve the file, it needs to be in a format that the customer can view it in. For most companies, this is PDF. You could also convert to GIF, JPEG, or BMP if those options are desirable. Once in the PDF format, you'll need to convert it so that it can be sent in an eMail - normally using MIME base64 ( http://en.wikipedia.org/wiki/Base64 ). After that, format your eMail ("Dear customer, here's your invoice.") and append the converted file.
It will take some trial and error, but it's entirely possible.
The only other thing to be aware of is that your mail server needs to be properly configured. If I had a dime for every time an automated eMail is rejected from my server (because the remote server is misconfigured, and looks like a spammer) I'd be eating a steak dinner every night!
Good luck!
-JD.
First, once you retrieve the file, it needs to be in a format that the customer can view it in. For most companies, this is PDF. You could also convert to GIF, JPEG, or BMP if those options are desirable. Once in the PDF format, you'll need to convert it so that it can be sent in an eMail - normally using MIME base64 ( http://en.wikipedia.org/wiki/Base64 ). After that, format your eMail ("Dear customer, here's your invoice.") and append the converted file.
It will take some trial and error, but it's entirely possible.
The only other thing to be aware of is that your mail server needs to be properly configured. If I had a dime for every time an automated eMail is rejected from my server (because the remote server is misconfigured, and looks like a spammer) I'd be eating a steak dinner every night!
Good luck!
-JD.