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: xxxxxx@xxxxxxxxxxxxx.com\n";
        $header .= "Return-Path: xxxxxx@xxxxxxxxxxxx.com\n";

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.