WestJet apologized to Air Canada on Monday and will pay $15.5 million to settle a lawsuit over a case of corporate espionage.

In a joint press release, WestJet apologized to its competitor and Air Canada top executive Robert Milton. Calgary-based WestJet will also pay $5 million to Air Canada for its investigation and litigation costs, and make a $10-million donation to children's charities in the names of both airlines.

The lawsuit centred around allegations that WestJet management used the password of a former Air Canada employee to access a web site maintained by Air Canada to download "detailed and commercially sensitive" information.

"This practice was undertaken with the knowledge and direction of the highest management levels of WestJet and was not halted until discovered by Air Canada," the two companies said in a statement.

"This conduct was both unethical and unacceptable and WestJet accepts full responsibility for such misconduct."

Air Canada has accepted WestJet's apology and both companies have dropped their litigation against each other.

Air Canada filed suit against WestJet in 2004 seeking $220 million. WestJet countersued later that year, alleging Air Canada used private investigators to search through recycling material at the home of a WestJet executive home in Oak Bay, B.C.