$post = get_post($post->ID);\r
$slug = $post->post_name;\r
\r
- wp_mail( 'laury@localhost', 'test1a', 'pass');\r
- paymentemail($first_name,$last_name,$organisation,$donation_type,$amount,$invoice_num,$comment);\r
- wp_mail( 'laury@localhost', 'test1b', 'pass');\r
+ // verification form submission to billing@gaslightmedia.com //////\r
+ $headers = "From: Gaslight Media <server@gaslightmedia.com>\r\n" .\r
+ "Reply-To: noreply@gaslightmedia.com\r\n";\r
+ \r
+ $clientInfo = "A payment has been made on the Gaslight Media website. Please review the billing information below\r\n" . \r
+ "First Name: " . $first_name . "\r\n" .\r
+ "Last Name: " . $last_name . "\r\n" .\r
+ "Invoice #: " . $invoice_num . "\r\n" .\r
+ "Payment Amount: $". $amount . "\r\n" .\r
+ "Organization: " . $organization;\r
\r
+ $message = print_r($clientInfo, true);\r
+ mail( 'anthony@localhost', 'GLM Payment Form', $message, $headers);\r
+\r
header("Location:".site_url().$_SERVER['REQUEST_URI']);\r
exit;\r
}\r
else\r
{\r
- wp_mail( 'laury@localhost', 'test1c', 'pass');\r
+ // wp_mail( 'anthony@localhost', 'test1c', 'pass');\r
header("Location:".site_url().$_SERVER['REQUEST_URI']);\r
exit;\r
}\r
return true;\r
}\r
\r
-function paymentemail($first_name = 'fname',$last_name ='lname',$organisation = 'orgname',\r
- $donation_type = 'dontype',$amount = 'amount',$invoice_num = 'invnum',$comment = 'comment') {\r
+/*function paymentemail($first_name,$last_name,$organization,$amount,$invoice_num) {\r
// paymentemail($first_name,$last_name,$organisation,$donation_type,$amount,$invoice_num,$comment);\r
- $to = "laury@localhost";\r
- $subject = 'wp_mail function test 2';\r
+ $to = "anthony@localhost";\r
+ $subject = 'GLM Payment Form';\r
// $message = 'This is a test of the wp_mail function: wp_mail is working';\r
$message = 'A payment has been made on the Gaslight Media website. Please review the billing information below' . \r
- '<br>Name: ' . $last_name . ', ' . $first_name . '<br>Organisation: ' . $organisation . '<br>Donation Type: ' . \r
- $donation_type . '<br>Amount: ' . $amount . '<br>Invoice Number: ' . $invoice_num . '<br>Comments: ' . $comment;\r
+ '<br>Name: ' . $last_name . ', ' . $first_name . '<br>Organisation: ' . $organization . '<br>Amount: ' . $amount . '<br>Invoice Number: ' . $invoice_num;\r
$headers = array();\r
- $headers[] = 'From: Gaslight Media <laury@gaslightmedia.com>';\r
+ $headers[] = 'From: Gaslight Media <anthony@gaslightmedia.com>';\r
$headers[] = 'Reply-To: noreply@gaslightmedia.com';\r
$headers[] = 'Content-Type: text/html';\r
$headers[] = 'charset=utf-8';\r
\r
- $sent_message = wp_mail( $to, $subject, $message, $headers );\r
-}\r
+ mail( $to, $subject, $message, $headers );\r
+} */\r
?>\r
// $amount = 'amt';\r
// $invoice_num = 'invnum';\r
// $comment = 'comment';\r
-// $to = "laury@localhost";\r
+// $to = "anthony@localhost";\r
// $subject = 'wp_mail function test';\r
// $message = 'A payment has been made on the Gaslight Media website. Please review the billing information below' . \r
// '<br>Name: ' . $last_name . ', ' . $first_name . '<br>Organisation: ' . $organisation . '<br>Donation Type: ' . \r
// $donation_type . '<br>Amount: ' . $amount . '<br>Invoice Number: ' . $invoice_num . '<br>Comments: ' . $comment;\r
// $headers = array();\r
-// $headers[] = 'From: Gaslight Media <laury@gaslightmedia.com>';\r
+// $headers[] = 'From: Gaslight Media <anthony@gaslightmedia.com>';\r
// $headers[] = 'Reply-To: noreply@gaslightmedia.com';\r
// $headers[] = 'Content-Type: text/html';\r
// $headers[] = 'charset=utf-8';\r