Emailing Work Files to Yourself Before You Quit: Is It Illegal, and How Does the Company Know?
Is emailing work files to yourself before quitting illegal? The company can tell from logs you cannot delete. If the files are trade secrets, you risk a lawsuit and dismissal without severance.
Short answer
It can be, if the files you send to your personal email are the company's trade secrets. Section 6 of the Trade Secrets Act B.E. 2545 (2002) treats taking a trade secret without consent, in a manner contrary to honest commercial practices such as breach of contract, as an infringement. The company can sue for damages and ask the court for an order banning use, and it can find out from the sending logs kept on its servers. Your own documents, such as pay slips and your employment contract, you may keep as normal.
Want the short version first?
AI summary
Apple's lawsuit against OpenAI (10 July 2026) and OpenAI's filing (14 October 2026) alleging that a former employee sent more than 100 confidential files to a personal account on his last working day show that sending files 'just in case' before resigning leaves traces in an organisation's email and cloud systems that the employee cannot delete. Under Thai law, if the files are trade secrets, the employee may be sued under sections 6, 8 and 13 of the Trade Secrets Act and may be dismissed without severance pay under section 119 of the Labour Protection Act. If the files contain customer data, the company must assess a personal data breach under section 37(4) of the PDPA. This article is written from the employee's side.
Questions this article answers
- If I delete the email I sent, can the company still see it?Generally yes, because the sending record sits on the company's email server. Deleting it from your own mailbox does not delete the company's record.
- If I made the work entirely myself, do I own the files?Generally not. Work done as part of your job under the employment contract usually belongs to the employer under the contract. If you want to use it in your portfolio, ask for written permission and remove the confidential data.
- Is the new company liable too if a new hire uses files from the old employer?It may be, if it knew or had reasonable cause to know the files were obtained by infringement. The exception in section 7(1) protects only someone who obtained the secret through a juristic act without knowing or having reasonable cause to know that the other party obtained it by infringement.
- What should I do if the company asks me to delete the files after I leave?Do not quietly delete them on your own straight away. Reply in writing, agree on a return or deletion method the company can verify, delete them everywhere including the trash and cloud storage, and ask for written confirmation. In my view, evidence that you corrected the situation in good faith reduces the risk of being sued.
AI-assisted summary reviewed by the author · read the full article for details and sources
Translated from the Thai original. The Thai version prevails if there is any difference. Thai original →
Emailing work files to yourself before you quit can be illegal if the files are the company’s trade secrets. The Trade Secrets Act B.E. 2545 (2002) lets the company sue for damages and ask the court to ban their use. What most employees do not realise is that the company does not need to catch them in the act, because the organisation’s email and cloud systems record the transfer the moment they press send. The allegations in the Apple and OpenAI case go as far as the number of files and the date they were sent. This article is written for the employee who is about to resign.
Why people are asking about this now
Apple sued OpenAI in the U.S. District Court for the Northern District of California on 10 July 2026 for trade secret misappropriation and breach of contract. TechCrunch reported that Apple alleges a former Apple engineer did not return his company laptop after moving to OpenAI and used it to download confidential documents. TechCrunch also noted that Apple typically investigates such matters by reviewing company-owned devices and reading server logs.
Then, on 14 October 2026, OpenAI made its own accusation in a court filing. 9to5Mac reported that OpenAI alleges a former employee who had joined from Apple worked at OpenAI for about six months and then, on his last working day, 2 June 2026, sent more than 100 confidential files about an unreleased device to a personal account. He then went back to work at Apple and presented OpenAI’s plans to Apple’s senior leadership. The report does not name the employee. Apple said it had found no evidence supporting the allegations, and the case has not been decided.
TechLawNow has already covered this case from the employer’s side in two articles: OpenAI tells court ex-employee took over 100 confidential files to Apple and Apple–OpenAI shakes Thai business: when staff switch sides, secrets may follow. I am interested in another angle the news does not mention. Two of the biggest companies in the tech world are calling the same behaviour “theft”, and that behaviour is something many Thai office workers routinely do before handing in their resignation.
How does the company know you sent files out?
Many people believe that if they send files to their own Gmail or LINE and then delete the sent email, the company will never know. In reality, the only thing you can delete is the copy in your own mailbox. The trail is created in these steps:
- When you press send. The organisation’s email system, such as Microsoft 365 or Google Workspace, keeps a record of which account sent an email, its size, the address it went to and the time, and depending on the settings it may also record the names of attachments. This record sits on the server side, and users cannot delete it themselves.
- DLP inspects the content. If the company has installed DLP, the system scans attachments for words or labels such as “Confidential”, or for customers’ ID card numbers, and then blocks the email, shows a warning or sends an alert to IT.
- The company cloud logs downloads. If you download a large number of files from the company’s SharePoint or Google Drive in a single day, the audit log shows the full list of files together with the device and IP address used.
- IT looks back once it knows you are leaving. Many organisations pull the logs for the several weeks before the resignation date and review them, because that is when people prepare to move jobs.
The question “do companies really do this?” has been answered by the Apple and OpenAI case. OpenAI was able to state both the number of files and the date they were sent, while Apple was able to say that the laptop that was never returned was used to download documents. Information at this level of detail comes from system logs, not from witness accounts.
If it happened in Thailand, which law applies?
Thai law has no section that directly prohibits “sending emails to your own account”. What the court asks is what the files are and in what capacity you sent them.
| Issue | In the Apple / OpenAI case | Thai law |
|---|---|---|
| Information taken | Plans for unreleased devices, technical data | A trade secret must be secret, have value, and be protected by the company’s measures (Trade Secrets Act, s. 3) |
| Conduct | Sending files to a personal account, using a company laptop after changing jobs | Taking or using without consent, contrary to honest practices, which includes breach of contract (s. 6) |
| What the company asks the court for | A ban on use, return of documents, preservation of evidence | An interim injunction and damages (s. 8); if wilful or malicious and the secret lost its secrecy, the court may add up to twice the damages (s. 13(3)) |
| Effect on employment | Not stated in the reports | Dismissal without severance pay if the employee wilfully caused the employer damage (Labour Protection Act, s. 119) |
| Files with customer data | Not stated in the reports | The company must assess the breach and may have to notify within 72 hours (PDPA, s. 37(4)) |
Section 6 of the Trade Secrets Act is the heart of the matter. It treats “taking” a trade secret without consent as an infringement in itself, without waiting for the information to be used or sold on. The condition is that the act must be contrary to honest commercial practices, and the person must know or have reasonable cause to know that it is. The second paragraph of section 6 states clearly that breach of contract counts as conduct contrary to honest practices. In my view, if the employment contract or NDA prohibits taking data outside the company’s systems, sending files to Gmail will easily meet the elements.
Criminal liability under this Act is narrower than people think. Section 33 punishes only someone who discloses a secret to the public so that it loses its secrecy, with malicious intent to damage the owner, with imprisonment of up to one year, or a fine of up to two hundred thousand baht, or both, and section 37 makes it a compoundable offence. Simply emailing files to yourself is therefore usually a civil case rather than a criminal one. As for sections 5 and 7 of the Computer Crime Act B.E. 2550 (2007) (unlawfully accessing a computer system or computer data protected by access measures), they usually do not cover an employee who still has the right to access the system. But if you log in to your old account to pull files after you have left, I believe these sections start to come into play, because your right of access has already ended.
Is the file really a trade secret?
For an employee who is accused, this question is the first line of defence. A “trade secret” does not come into being just because the company calls a file confidential. Section 3 of the Trade Secrets Act sets three conditions: the information must not be generally known, it must have commercial value because it is secret, and the owner must have “used appropriate measures to maintain its secrecy”. That last condition is where Thai companies most easily lose.
Trade secrets are not registered with the state the way trademarks are, so the company has to build its own evidence. If the cost-price file sits in a folder every employee can open, carries no confidential label, and nobody has signed an NDA, the employee who is sued can argue straight away that the information was never secret in the first place. But if the file is labelled confidential, only certain people can open it, and you signed an NDA, that defence all but disappears. In my view, cases like this are won or lost before the employee resigns, not in the courtroom.
Companies that want this point to be clear usually do four things:
- Keep an internal register. List the secrets the company holds, such as formulas, customer lists, cost prices and source code, by name only, without writing the secret itself into the list.
- Classify and restrict access. Specify who may open each item, label files “confidential”, and remove access for anyone not involved.
- Tie it to contracts. Have everyone with access to an item sign a confidentiality agreement.
- Review on a schedule. Check each cycle that the measures are still complete, and keep a record of each review as evidence.
The AiPDPA system has an intellectual property module with a separate tab for trade secrets. A company can record which measures are in place for each item, for example whether everyone with access has signed a confidentiality agreement, whether access is limited to a named list, whether the item is stored in a system with access control, and whether there is a retrieval process when staff leave, and it can set a review cycle. The system shows which items still have incomplete measures. A register like this is the evidence a company uses to prove “appropriate measures” under section 3, and it is the reason employees should not assume the company cannot prove this point.
How far does the NDA you signed bind you when you leave?
An NDA, or confidentiality agreement, plays two roles in cases like this. First, it is evidence that the company used measures to maintain secrecy under section 3. Second, paragraph two of section 6 counts “breach of contract” as conduct contrary to honest practices. When an employee who signed an NDA sends confidential files out, the company can therefore claim both breach of contract and trade secret infringement in a single case.
Before your last working day, open the NDA you signed and read it for five things: what the definition of confidential information covers; whether it prohibits sending data to personal email, cloud storage or devices; whether you must return and delete data when you leave; how long the duty of confidentiality lasts after you resign; and whether the company has the right to ask for written confirmation of deletion. If you want to see how these clauses are written, look at the sample one-way non-disclosure agreement (NDA) on OK Contracts and compare it with your own. HR teams can use the same sample as a starting point and adapt the return-and-deletion clauses to the company’s own systems.
Non-compete clauses: how far can they be enforced?
Some companies go beyond confidentiality and prohibit employees from working for a competitor, or from setting up a competing business, after they leave. A clause like this is called a non-compete, and it falls under section 5 of the Unfair Contract Terms Act B.E. 2540 (1997).
The first paragraph of section 5 provides that an agreement restricting the right or freedom to pursue an occupation that is not void, if it makes the restricted person bear a burden greater than could normally be anticipated, is enforceable only to the extent that is fair and reasonable in the circumstances. The second paragraph tells the court to consider the scope of the restriction in terms of area and duration, the restricted employee’s ability and opportunity to pursue an occupation in another form or with other persons, together with all the legitimate interests of both contracting parties.
In practice, a restriction limited to genuinely competing businesses, in the area where the company actually operates, and for a reasonably short period has a better chance of being enforced than a ban on “any business, anywhere in the country” that leaves the employee unable to find work in their own field. The court may narrow the scope instead of striking out the whole clause. I have not cited Supreme Court decision numbers here, because I have not yet been able to check the text of the judgments against an official source.
In my view, employees should not think “the court won’t enforce it anyway” and take files with them, because even if the non-compete is narrowed, a trade secret claim under section 6 can still be brought separately.
What is the risk if you do nothing?
For the employee, the first risk is not prison but timing. If the company finds the logs before your last working day, it may dismiss you immediately, citing section 119 of the Labour Protection Act on the ground that you wilfully caused the employer damage. The result is that the severance pay you should have received may be lost, and you will have to fight it out in the Labour Court. If the company finds out after you have moved jobs, it can apply for an interim injunction under section 8 before filing suit, which could derail your new job in the very first month.
For the new company, the risk arrives more quietly. Section 7(1) protects someone who obtained a secret through a juristic act without knowing or having reasonable cause to know that the other party obtained it by infringement. If a manager asks a new hire “how did your old company set its prices, do you have the file?”, the new company will find it hard to claim it did not know, and it may end up as a co-defendant. Apple’s lawsuit likewise alleges that an OpenAI executive asked about Apple’s information during the recruiting process, and the employee who is asked such questions is the one caught in the middle.
For the old company, if the leaked files contain customer names, phone numbers or other customer data, the matter is no longer just about trade secrets. As the data controller, the company must assess whether this is a personal data breach, and if there is a risk to customers’ rights, it must notify the Office of the Personal Data Protection Committee within 72 hours of becoming aware of it, under section 37(4) of the PDPA. The employee who sent the files out may therefore become the cause of a data breach the company has to report. The same principle is explained in the article OpenRouter Drops 3 AI Providers After Prompt Leaks: Who Must Report When Thai Customer Data Is Exposed?
Checklist before your last working day
For employees
- You may keep: pay slips, your employment contract, employment certificate, warning letters and your own tax documents, because these are the employee’s own documents.
- Portfolio work: ask your manager for permission by email, name the files clearly, and remove figures, prices and customer data first.
- Never take: customer lists, cost prices, formulas, code, product plans or any file labelled confidential, whether or not you made the file yourself.
- If you have already sent files: tell the company in writing before you are asked, then delete them everywhere using a method the company can verify. In my view, correcting the situation in good faith before anyone asks carries a lot of weight.
For HR and IT
- Use an exit checklist that covers returning devices, cutting off system access on the last day, and having the employee sign a confirmation that they hold no company data.
- Label and restrict access to important files so that the company meets the “appropriate measures” condition in section 3.
- Turn on DLP, set alerts for unusually large downloads or file transfers, and tell employees in advance what the system records, in line with the PDPA.
- On the hiring side, have new employees sign that they will not use their former employer’s data, and forbid interviewers from asking for a former employer’s internal information.
If it really happens, how does the case proceed?
For the company, the usual sequence is:
- Preserve evidence before touching anything. Lock email logs, DLP logs and cloud audit logs so they are not deleted on rotation. If you can recover the device, have an expert make a forensic copy before anyone uses it.
- Send a warning letter. Identify the files sent out and ask for them to be returned, deleted and confirmed in writing within a set time.
- Apply for an interim injunction. Section 8 allows this before filing suit when there is clear evidence of an infringement or an imminent infringement.
- File a civil suit. Section 3 defines the “court” under this Act as the Intellectual Property and International Trade Court, so the case goes to that court, not to an ordinary civil court.
- Criminal proceedings only if section 33 applies, that is, where there has been public disclosure with malicious intent.
- On the labour side, if the employee has not yet left, dismissal without severance under section 119 requires evidence that the employee wilfully caused damage, and the reason must be stated in the dismissal letter.
For an employee who receives a warning letter
- Do not ignore it and do not respond in anger. Read it in full to see which files the company identifies.
- Do not delete or alter the files before getting advice, because deleting after receiving the letter may be seen as destroying evidence. Set the files aside and do not open them.
- Do not forward or use the files at your new job, and tell your new employer the truth if necessary.
- Reply in writing within the set time. If you are ready to return or delete the files, agree on a deletion method the company can verify.
If it has already happened: channels that actually work
If you are an employee dismissed without severance pay, ask for a dismissal letter that states the reason, keep your employment contract, pay slips and every related email, and contact the Department of Labour Protection and Welfare on its hotline, 1546 or 1506 then press 3 (labour.go.th), to file a complaint with a labour inspector, or file a claim in the Labour Court. A point employees often overlook: the second paragraph of section 119 provides that if the employer did not state the reason in the dismissal letter, or did not tell the employee the reason at the time of dismissal, the employer cannot rely on that reason later. I recommend reading every line of the dismissal letter before signing to acknowledge receipt.
If you are an employee who is being sued or faces an injunction application, the case will be at the Central Intellectual Property and International Trade Court. The court’s contact details are at ipitc.coj.go.th. Gather your NDA, your employment contract and any evidence that the file was openly accessible or carried no confidential label, because that is your defence under section 3, and consult a lawyer before the hearing date.
If you are an employer whose confidential files have leaked, preserve the evidence as in step 1 above. If the files contain customer data, assess the incident and notify the Office of the Personal Data Protection Committee within 72 hours under section 37(4), then consult a lawyer about applying to the same court for interim relief.
Your severance rights when dismissed are covered in SAP Cuts Jobs for AI: If It Happened in Thailand, How Much Special Severance Would Employees Get?
If you have tried every step above and there is still truly no one who can help, Attorney Phuwara is willing to give brief, interim guidance so you can see a correct and clear legal path to fight your case. Contact LINE @106nlopr. I want to stress that this is not advertising to earn income. It is a last resort for people who genuinely have no one else to turn to, and you must try every method recommended above first before I can help further.

In my view most people do not mean to steal. But the court does not read minds. It reads the file-transfer log, and the log has no box for writing 'just in case'.
Key points
Apple filed suit in the U.S. District Court for the Northern District of California on 10 July 2026, alleging that a former engineer did not return a company laptop and used it to download confidential documents after moving to OpenAI.
In a filing on 14 October 2026, OpenAI alleged that a former employee who had come from Apple sent more than 100 confidential files to a personal account on his last day and then returned to Apple. Apple replied that it had found no evidence.
DLP systems, email server logs and cloud download logs let a company look back at who sent which file, where and when.
Section 8 of the Trade Secrets Act allows a request for an interim injunction and a claim for damages. Section 13(3) lets the court add punitive damages of up to twice the amount if the infringement was wilful or malicious and caused the secret to lose its secrecy. Section 119 of the Labour Protection Act may cost the employee their severance pay.
If the files contain customers' personal data, the company must assess the incident and may have to notify the Personal Data Protection Committee office within 72 hours under section 37(4).
Sources
- Trade Secrets Act B.E. 2545 (2002) (Royal Gazette Vol. 119, Part 36 Kor, 23 April 2002), sections 3, 6, 7, 8, 13, 33, 37 (primary source)
- Personal Data Protection Act B.E. 2562 (2019), section 37 (primary source)
- TechCrunch: Apple sues OpenAI over alleged trade secret theft (10 Jul 2026)
- 9to5Mac: OpenAI alleges ex-employee took highly confidential device files to Apple (14 Oct 2026)