Sales Order email invoices  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Sales Order email invoices

Postby DannyC » Wed Nov 04, 2020 8:58 am

Is it possible to pretty up the Sales Order Custom Email plugin with graphics, weblinks, formatted text etc so that it looks like a marketing email? Think of all those spam emails we get from just about every webstore we've ever bought something at and you get the general idea.
User avatar
DannyC
Senpai
Senpai
 
Posts: 636
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30

Re: Sales Order email invoices

Postby SBarnes » Wed Nov 04, 2020 10:21 am

There is a BodyIsHTML flag on JiwaFinancials.Jiwa.JiwaApplication.JiwaEmail.EmailMessage, which gets passed into whatever plugin is doing the email sending so I suppose if the body of your email is HTML it will work.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1618
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Sales Order email invoices

Postby DannyC » Wed Nov 04, 2020 5:58 pm

I suppose if the body of your email is HTML it will work.

Which implies some talent in HTML!

Might be able to knock something up in an HTML IDE and paste the raw HTML into the EmailMessage body. Worth a try. Just need to find an HTML IDE for idiots.
User avatar
DannyC
Senpai
Senpai
 
Posts: 636
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30

Re: Sales Order email invoices

Postby SBarnes » Wed Nov 04, 2020 6:01 pm

It's called Microsoft Word and save as html :lol:
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1618
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Sales Order email invoices

Postby Mike.Sheen » Wed Nov 04, 2020 6:02 pm

DannyC wrote:Just need to find an HTML IDE for idiots.


VSCode with one of the HTML Live preview extensions.
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: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Sales Order email invoices

Postby SBarnes » Wed Nov 04, 2020 6:04 pm

Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1618
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Sales Order email invoices  Topic is solved

Postby nsbandara » Wed Nov 04, 2020 11:36 pm

We can modify sales order email dialog with a simple HTML editor like https://i4.code.msdn.s-msft.com/WinForm ... r-01dbce1a and then setting BodyIsHTML flag on JiwaFinancials.Jiwa.JiwaApplication.JiwaEmail.EmailMessage would give you HTML emailing feature in Jiwa.

Please see sample plugin attached.
Attachments
Plugin Sales Order Email HTML Editor.xml
Sales Order Email HTML Editor
(342.25 KiB) Downloaded 55 times
email-dialog.PNG
Updated email dialog with html editor
User avatar
nsbandara
Occasional Contributor
Occasional Contributor
 
Posts: 43
Joined: Tue Jul 16, 2013 5:02 pm
Location: Sri Lanka
Topics Solved: 11

Re: Sales Order email invoices

Postby DannyC » Thu Nov 05, 2020 8:25 am

Thanks all,

Should be able to take it from here once I get the brief from our client. Doesn't seem too hard now you've pointed out all those options!
User avatar
DannyC
Senpai
Senpai
 
Posts: 636
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 5 guests

cron