JIWA SALES ORDER REPORT SEND  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

JIWA SALES ORDER REPORT SEND

Postby Divyesh42299224 » Thu Nov 19, 2020 5:42 pm

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?
Divyesh42299224
I'm new here
I'm new here
 
Posts: 2
Joined: Thu Nov 19, 2020 5:39 pm

Re: JIWA SALES ORDER REPORT SEND  Topic is solved

Postby DannyC » Thu Nov 19, 2020 5:59 pm

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.
User avatar
DannyC
Senpai
Senpai
 
Posts: 635
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 29

Re: JIWA SALES ORDER REPORT SEND

Postby SBarnes » Thu Nov 19, 2020 9:25 pm

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.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1617
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: JIWA SALES ORDER REPORT SEND

Postby Divyesh42299224 » Fri Nov 20, 2020 3:42 pm

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?
Divyesh42299224
I'm new here
I'm new here
 
Posts: 2
Joined: Thu Nov 19, 2020 5:39 pm

Re: JIWA SALES ORDER REPORT SEND

Postby Scott.Pearce » Fri Nov 20, 2020 4:29 pm

Have a look here. Also, a forum search for "html email" turns up a few threads.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: JIWA SALES ORDER REPORT SEND

Postby SBarnes » Sat Nov 21, 2020 12:09 pm

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
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1617
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: JIWA SALES ORDER REPORT SEND

Postby Mike.Sheen » Sat Nov 21, 2020 3:43 pm

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.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2440
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 755

Re: JIWA SALES ORDER REPORT SEND

Postby pricerc » Tue Nov 24, 2020 6:17 pm

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.
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 504
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 20


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron