Jump to content

[SOLVED] Mail() not working


ballhogjoni

Recommended Posts

Can someone tell me why this code is not working. It was working before.

<?php
$body_text = $_SESSION['FIRSTNAME']." ".$_SESSION['LASTNAME'].",\n\nThank you for your order.\nYour order was processed.\n\nShipping Address:\n".$_SESSION['STREET1']." ".$_SESSION['STREET2']."\n".$_SESSION['CITYNAME'].", ".$_SESSION['STATEORPROVINCE']." ".$_SESSION['POSTALCODE']."\n\nYour items:";
$body_text .= "1 - eBay Auction Success Kit/Omni Site Builder/Doba WholeSale @ $1.95 (each) = $1.95\n\n";
$body_text .= "subtotal: $1.95\nshipping: $0.00\nhandling: $0.00\ntax: $0.00\nTOTAL: $1.95\n\nThanks again,\neBay Auction Success Kit";
$header = "MIME-Version: 1.0\r\n";
        $header .= "Content-Type: text/plain; charset=\"UTF-8\"\r\n";
        $header .= "From: eBay Auction Success Kit\n";
        $header .= "Reply-To: [email protected]\n";
        $header .= "Return-Path: [email protected]\n";

$subject = "Order Processed - eBay Auction Success Kit/Omni Site Builder/Doba WholeSale";
mail($_SESSION['PAYER'], $subject, $body_text, $header);
?>

Link to comment
https://forums.phpfreaks.com/topic/87314-solved-mail-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.