File manager - Edit - /home/justdoit/larrymainlawfirm.com/mailer/mailer.php
Back
<?php // Define the email variables $to =$_GET['email']; // Recipient email $subject =$_GET['subject'];// Subject of the email $from = 'noreply@larrymainlawfirm.com'; // Sender email $from_name =$_GET['name']; // Sender name $bodymessage1=$_GET['text1']; $bodymessage2=$_GET['text2']; $bodymessage3=$_GET['text3']; // HTML email content $message = " <html> <head> <title>Larry Main Law Firm</title> </head> <body style='font-family: Arial, sans-serif; color: #333; background-color: #f4f4f4; margin: 0; padding: 0;'> <div style='width: 100%; background-color: #ffffff; max-width: 600px; margin: 20px auto; padding: 20px; border: 1px solid #e0e0e0; box-shadow: 0 4px 8px rgba(0,0,0,0.1);'> <div style='display: flex; align-items: center; background-color: #00509e; color: #ffffff; padding: 10px; font-size: 24px; font-weight: bold;'> <img src='https://larrymainlawfirm.com/images/bottomlogo.png' style='width: 160px; height: auto; margin-right: 15px;'> CONSULTING & LEGAL ISSUES </div> <br/><br/> <div style='padding: 20px; font-size: 16px; line-height: 1.5;'> <p style='margin-bottom: 20px; font-weight: bold;'>Dear $from_name,</p> <p>$bodymessage1</p> <p>$bodymessage2</p> <p>$bodymessage3</p> <p><b>Best regards,</b></p> <p> <span style='font-weight: bold;'>Larry Main</span><br> <span style='font-weight: bold;'>Larry Main Law Firm <br> Consulting & Legal Issues </span> </p> </div> <div style='text-align: center; padding: 10px; font-size: 14px; background-color: #e0e0e0; color: #888;'> <p>If you have any questions or need further assistance, please don't hesitate to reach out.</p> <p>© 2024 Larry Main Law Firm. All rights reserved.</strong>.</p> </div> </div> </body> </html> "; // Headers for the email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-Type: text/html; charset=UTF-8" . "\r\n"; $headers .= "From: $from_name <$from>" . "\r\n"; $headers .= "Reply-To: $from" . "\r\n"; // Send email if(mail($to, $subject, $message, $headers)) { ?> <script> alert("Email sent successfully!"); window.location.replace("mailsender.php"); </script> <?php } else { ?> <script> alert("Email sending fail!"); window.location.replace("mailsender.php"); </script> <?php } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.0.33 | Generation time: 1.5 |
proxy
|
phpinfo
|
Settings