import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({
contract,
method: "function send_mail(string to, string path)",
params: [to, path]
});
const { transactionHash } = await sendTransaction({
transaction,
account
});