// 嘗試開啟郵件客戶端 window.location.href = `mailto:${email}?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
// 複製郵件地址到剪貼簿 navigator.clipboard.writeText(email).then(() => { alert('已複製郵件地址:' + email + '\n\n如果沒有自動開啟郵件程式,請手動開啟並貼上此郵件地址。'); }).catch(() => { alert('郵件地址:' + email + '\n\n請複製此郵件地址並手動發送郵件。'); }); }