Scroll to see replies
<?PHP
if(!$_POST[send]){
?>
<form method="POST">
Your Email:<input type="email" name="email" class="textbox"><br />
<input name="send" type="submit" id="send" value="Send">
</form>
<?PHP
}else{
$emailaddress = $_POST;
$email = new PHPMailer();
$email->From = '[email protected]';
$email->FromName = 'Your Name';
$email->Subject = 'Message Subject';
$email->Body = $bodytext;
$email->AddAddress( '$emailaddress' );
$file_to_attach = 'PATH_OF_YOUR_FILE_HERE';
$email->AddAttachment( $file_to_attach , 'NameOfFile.pdf' );
return $email->Send();
}
?>
<?PHP
if(!$_POST[send]){
?>
<form method="POST">
Your Email:<input type="email" name="email" class="textbox"><br />
<input name="send" type="submit" id="send" value="Send">
<?PHP
}else{
$emailaddress = $_POST;
$email = new PHPMailer();
$email->From = '[email protected]';
$email->FromName = 'Your Name';
$email->Subject = 'Message Subject';
$email->Body = $bodytext;
$email->AddAddress( '$emailaddress' );
$file_to_attach = 'PATH_OF_YOUR_FILE_HERE';
$email->AddAttachment( $file_to_attach , 'NameOfFile.pdf' );
return $email->Send();
}
Last reply 1 week ago
Hello .. I am looking for computer science program BSc/BEng 2024 entryLast reply 3 weeks ago
What A-Levels should i do if i wanna do a Bsc in Computer ScienceLast reply 4 weeks ago
Correlation between performance in UKMT and performance in TMUA/STEP?Last reply 4 weeks ago
Do top universities allow just 3 A levels including Further Maths?Last reply 1 week ago
Hello .. I am looking for computer science program BSc/BEng 2024 entryLast reply 3 weeks ago
What A-Levels should i do if i wanna do a Bsc in Computer ScienceLast reply 4 weeks ago
Correlation between performance in UKMT and performance in TMUA/STEP?Last reply 4 weeks ago
Do top universities allow just 3 A levels including Further Maths?