TAS:Pokročilé/Pluginy/Input, Output/Export/SolverTech.Tasha.PlugIns.IO.Email.Customers/en: Porovnání verzí
(založena nová stránka s textem „etc.“) |
(Stránka aktualizována, aby odpovídala nové verzi zdrojové stránky) |
||
Řádek 1: | Řádek 1: | ||
<languages /> | <languages /> | ||
{| class="wrapped wikitable" | {| class="wrapped wikitable" | ||
| '''parametr''' | | '''parametr''' |
Aktuální verze z 10. 8. 2023, 15:14
parametr | add |
model.eta | date and time |
model.stop.job.identifier | job id |
model.route.vehicle.mobile |
Driver's phone - taken from the vehicle |
model.stop.demand3 |
Demand3 |
model.route.driver.mobile | Driver's phone - taken from the driver |
model.stop.job.stopfrom.demand1 | Demand 1, taken from loading (so it will be positive) |
Config example:
<?xml version="1.0" encoding="utf-8"?>
<SolverTechTashaPlugInsIOEmailCustomersSettings>
<SmtpHost>smtp.server.cz</SmtpHost>
<SmtpPort>25</SmtpPort>
<EnableSsl>true</EnableSsl>
<SmtpUser>user@server.cz</SmtpUser>
<SmtpPassword>heslo</SmtpPassword>
<EmailAddress>doprava@server.cz</EmailAddress>
<EmailDisplayName>Transport of goods</EmailDisplayName>
<SubjectFormatText>Delivery of goods</SubjectFormatText>
<BodyFormatText>Dear Customer,
you have placed an order with us No. {1}. We already have your order completely ready for you and would be happy to deliver it to you on {0:dd.MM.yyyy} ({0:dddd}) at {0:HH}:00 - {2:HH}:00
Prosíme o potvrzení termínu doručení.
Thank you for your order
Your store
</BodyFormatText>
<EmailConfirmation>true</EmailConfirmation>
<CustomerEmailTextParameters>
<string>model.eta</string>
<string>model.job.identifier</string>
<string>model.eta;+120</string>
</CustomerEmailTextParameters>
</SolverTechTashaPlugInsIOEmailCustomersSettings>
Note that the variables in the email text can be formatted (e.g. {0:dd.MM.yyyy}) and the ETA variable can be counted - in the above code the ETA is used both without any counting and with the addition of 120 minutes.
Resulting email:'
Dear Customer,
you have order No. 1234567. Your order is ready for you and we would like to deliver it to you on 10.12.2019 (Tuesday) at 10:00 - 12:00.
Please confirm the delivery date.
Thank you for your order
Your store
It is possible/necessary to use html tags in the email, similar to the driver email
<br> - end of line
<b> - start of bold font
</b> - end of bold font
etc.