I am sending the mail through navision. I want a field data in red color and also want to change the size and font for all fields.
Hi,
Generally how do you send mail through Navision? What kind of mail?
In order to work with colors and size etc., then you need to use HTML mail, and either change the colors in your HTML or use CSS.
I am sending outstanding report and in report i have written email code.
BUT HOW? What are you doing? Write your email code using HTML.
Yes I have written html code. look.
SMAIL.AppendBody(‘Please find the below details of Export Invoices outstanding beyond the prescribed period/due date.’ );
SMAIL.AppendBody(’
’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’
Export Invoice No |
Export Shipment No |
External Document No |
Party Name | Port of Loading |
Port of Discharge |
B.L No. | Vessel Name | Sailing Date |
ETA Date |
---|---|---|---|---|---|---|---|---|---|
’+FORMAT(“Sales Invoice Header”.“No.”)+’ | ’+FORMAT(ExpshiNo)+’ | ’+FORMAT(“Sales Invoice Header”.“External Document No.”)+’ | ’+FORMAT(“Sales Invoice Header”.“Bill-to Name”)+’ | ’+FORMAT(CUST_PL_COUNTRY+’’+CUST_PL_CITY)+’ | ’+FORMAT(CUST_PD_COUNTRY+’’+CUST_PD_CITY)+’ | ’+FORMAT(Billoflading)+’ | ’+FORMAT(“Sales Invoice Header”.“Vessel/Flight No.”)+’ | ’+FORMAT(exp_bldate)+’ | ’+FORMAT(ETADa)+’ |
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(‘’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’’);
SMAIL.AppendBody(’
Payment Term Code |
Due Date | ETA/BL-Sailing Days |
Payment Due Date |
Amount | Remaining Amount |
---|---|---|---|---|---|
’+FORMAT(“Sales Invoice Header”.“Payment Terms Code”)+’ | ’+FORMAT(DueDt)+’ | ’+FORMAT(etd_eta)+’ | ’+FORMAT(Date1)+’ | ’+FORMAT(Amt)+’ | ’+FORMAT(Remamt)+’ |
SMAIL.AppendBody(’
’);
SMAIL.AppendBody(‘Thanks & Regards,’);
SMAIL.AppendBody(’
’);
SMAIL.AppendBody(‘Fazlani Exports ‘);
SMAIL.AppendBody(’
’);
SMAIL.Send;
END;
That’s what I’m talking about! [emoticon:b5038b8386d240d3adfaf15c98300abc]
Now you can colorize it using normal HTML or CSS. The best would be to add a CSS file, but that’s not possible in emails. The second best is inline style tags, but that needs to be added to the section before your tag, which you can also not do.
So you need to specify inline CSS, like:
style="color:blue;font-size:46px;
i want remaining amount field in red color only.
You have to use inline CSS to change font and colour. Review this page https://mailbakery.com/blog/how-email-html-coding-differs-from-web-html-coding/, it list some differences between HTML pages and HTML email.
Where and how can i write this code
Inside the HTML tags, where you like to change the style of the text. Read the article in the link Ponc shared.
Thank You its Working.
Thank You