Help with mail code.

    Date: 01/09/09 (PHP Community)    Keywords: html, hosting, spam

    I'm experiencing massive frustration with the code I have for sending me form data. It usually works. When I test it, it always works. But now and again, it seems to just .. not work. The most recent incarnation, it sent the confirmation email (the third "mail" function), but not the first two. I have no clue what is going wrong, since it always works right when I test it.

    I've contacted the hosting company a couple of times, since at first I thought maybe it was a problem with the second address, but this last one didn't get sent to me, either.

    Any advice?


    (Email addresses change in a vain attempt to stop the spam)

            $heading="

    FOR BEP
    USE
    ONLY

    ";                           
            $today=date("d M Y");
            $datetext="

    Date of submission: $today

    ";
            $contactinfo="

    Contact information
    Contact: $contact
    Institute: $institution
    Mailing address: $address
    Telephone #: $phone
    Fax #: $fax
    Email: $email

    ";
            $projectinfo="

    Travel information
    Number of Travelers: $numtravel
    Budget: $budget
    Duration: $duration

    ";
            $abstract="

    Purpose of travel: $purpose

                    Itinerary: $itinerary

    ";
            $objects="

    BEP Objectives: $objectives

    ";
            $project=$heading.$datetext.$contactinfo.$projectinfo.$abstract.$objects;


    mail ("myemail@myplace.org","Submission: Travel & Training Application (lhilton)", "$project","From: $email\n"."MIME-Version: 1.0\n"."Content-type: text/html; charset=iso-8859-1");

    (mail ("emaillist@myplace.org","Submission: Travel & Training Application", "$project","From: $email\n"."MIME-Version: 1.0\n"."Content-type: text/html; charset=iso-8859-1");
           
            if (!empty($email)){
                mail ("$email","Confirmation of submission for Travel & Training project", "$project","From: $email\n"."MIME-Version: 1.0\n"."Content-type: text/html; charset=iso-8859-1");
            }

    Source: http://community.livejournal.com/php/652378.html

« php driven image gallery -... || Working with multi arrays »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home