Page 1 of 1

JIWA SALES ORDER REPORT SEND

PostPosted: Thu Nov 19, 2020 5:42 pm
by Divyesh42299224
Hi i want my sales order report that i send from Jiwa to show up on my outlook "SENT" box. What code do i have to add/ modify to make this work.

How can i also add a company logo to the email body?

Re: JIWA SALES ORDER REPORT SEND  Topic is solved

PostPosted: Thu Nov 19, 2020 5:59 pm
by DannyC
You need to ensure that the plugin Email - Configuration Outlook is enabled.
The other Email - Configuration xxxxxx plugins should be disabled. That'll force Jiwa to use Outlook as it's email transport.

If you want to add a logo to the email message, you'd need to write a plugin which formats the message as HTML and embeds the logo graphic.

Re: JIWA SALES ORDER REPORT SEND

PostPosted: Thu Nov 19, 2020 9:25 pm
by SBarnes
You also need to bear in mind that the outlook plugin that Danny has mentioned won't work if emails are being sent by the system from inside a process such as scheduled plugin service or the REST API in that case you would need to configure things on an individual user basis and use an alternative to outlook for what ever user the process is running under a plugin that provides that functionality can be found here viewtopic.php?f=26&t=1356&p=5854&hilit=email#p5854

What I am saying is you should only use the outlook alternative from inside the Jiwa client itself.

Re: JIWA SALES ORDER REPORT SEND

PostPosted: Fri Nov 20, 2020 3:42 pm
by Divyesh42299224
DannyC wrote:You need to ensure that the plugin Email - Configuration Outlook is enabled.
The other Email - Configuration xxxxxx plugins should be disabled. That'll force Jiwa to use Outlook as it's email transport.

If you want to add a logo to the email message, you'd need to write a plugin which formats the message as HTML and embeds the logo graphic.



Thanks enabling the configuration outlooked worked.

Do you have any sample code for embeding logo graphics?

Re: JIWA SALES ORDER REPORT SEND

PostPosted: Fri Nov 20, 2020 4:29 pm
by Scott.Pearce
Have a look here. Also, a forum search for "html email" turns up a few threads.

Re: JIWA SALES ORDER REPORT SEND

PostPosted: Sat Nov 21, 2020 12:09 pm
by SBarnes
You may find the following useful as general information on the subject

https://blog.mailtrap.io/embedding-imag ... s-changed/

https://medium.com/@emailmonks/top-expe ... 13b3784472

and this link will encode/decode an image

https://base64.guru/converter/encode/image

But whether or not Jiwa will actually let you put an encoded image into an email template you'd have to try it.

If you went the URL method you could put the image/logo in a product and use the REST API on a custom route to get you the image code for part of this can be found here viewtopic.php?f=32&t=1412

Re: JIWA SALES ORDER REPORT SEND

PostPosted: Sat Nov 21, 2020 3:43 pm
by Mike.Sheen
SBarnes wrote:But whether or not Jiwa will actually let you put an encoded image into an email template you'd have to try it.


We don't interfere with that, but I do recall some mail clients not liking images being provided within the data:image tag - so the recipient might have problems viewing or even receiving the email.

Here's an example email I tested with some time ago - the email has 2 images - one the base64 encoded image in the data:image, and one which is a simple url image - this screenshot is how Outlook 2019 views it:

EmailComparison.png


You can tweak the content so it does display in Outlook, but it will break other clients (well at least it did when I last looked at this 3 years ago).

For company branding like logos, I'd go with a simple URL link - it's likely you've already got a web presence, so you can just link directly to logo images that way.

Re: JIWA SALES ORDER REPORT SEND

PostPosted: Tue Nov 24, 2020 6:17 pm
by pricerc
I believe that Office 365 has an option for keeping sent mail if it is sent through the Office 365 SMTP server. Other mail providers may provide the same feature.

If you use the Office 365 web services, I think it does it automatically.