0

Please help me and give some idea

Question: Develop a small package calculation system. The system allow user to enter the relevant data. Then, the system generate a receipt based on the following charges: adult rm50 per hour per day child rm10 per hour per day insurance charges rm25 each person all payment is charge 5%SST

23rd Oct 2022, 7:54 AM
San Lan
San Lan - avatar
7 Antworten
0
SMTP protocol is used to simple email messages. Just find any C++ SMTP client and connect it to a SMTP server. You could use Gmail or Outlook. But, personal email address usually gets flagged as spam if you send out too many emails. Also, people can usually send emails to it. It's not the best experience. You could use a dedicated service provider such as Mailgun or SendGrid. You could set up your own SMTP server but I would suggest strongly against it. It can get very complicated to set it up secure and reliable. You can also send good looking website like receipts using HTML. Either way, make sure that you use TLS to encrypt the messages and have a certificate installed. Modern email clients doesn't like it otherwise. There are also some requirements to avoid your email going straight to spam. Just Google "email avoid spam" and follow the checklist.
23rd Oct 2022, 11:21 AM
Mustafa A
Mustafa A - avatar
+ 1
Do you want a real printed paper receipt, email based digital receipt or fake receipt printed on terminal?
23rd Oct 2022, 9:52 AM
Mustafa A
Mustafa A - avatar
0
Mustafa A a real printed paper receipt or email based digital receipt each one also can
23rd Oct 2022, 10:50 AM
San Lan
San Lan - avatar
0
The email based one is pretty straight forward. There are plenty of examples for sending email with C++ using an email server. For paper receipt, you will need a printer with open source drivers or public APIs. Once you find one, then it's just API calls.
23rd Oct 2022, 11:04 AM
Mustafa A
Mustafa A - avatar
0
Mustafa A wow thanks,explain very clear. I want know email based digital receipt, thanks
23rd Oct 2022, 11:07 AM
San Lan
San Lan - avatar
0
Mustafa A Thank you for helping
23rd Oct 2022, 11:28 AM
San Lan
San Lan - avatar
0
San Lan You're welcome.
23rd Oct 2022, 11:30 AM
Mustafa A
Mustafa A - avatar