setFrom($ini["email"], $ini["name"]); $mail->Subject = $title; $mail->Body = $content; $mail->addAddress($address); if (isset($ini["reply"])) { $mail->addReplyTo($ini["reply"]); } if (!empty($filename)) { $mail->AddAttachment("../../assets/file.bin", $filename); } if (!$mail->Send()) { return -1; } else { return 0; } } main($ini);