SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Feb 2000
    Location
    England
    Posts
    568
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am using php to send an email but for some unknown reason it seems to put about 3 blank linkes before printing it. Otherwise it works fine. This is my email code:

    Code:
    mail("$email[$count]", "$subject", 
    "=====================================================
             MESSAGE SENT FROM $website_title
    =====================================================         
    Hello $name[$count]
    
    Your friend, $refer_name ($refer_email) recommended you 
    to visit our website, $website_title.
    
    You can visit this site by clicking on the link below:
    $in_script2
    
    $personal
    
    
    ------------------------------------------------------
    This message has been sent you you after $refer_name
    recommended you at $website_title.
    
    Website Contact Details :
    
    $your_name
    mailto:$your_email
    
    $website_title
    $in_script2
    ------------------------------------------------------
    
    
    ", "$mailheaders");

  2. #2
    SitePoint Evangelist
    Join Date
    Feb 2000
    Location
    England
    Posts
    568
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    any one with any ideas?

  3. #3
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't know if this will matter bu I always like to put the whole message body into one string then supply that in the mail arg like so:
    $body .= "=====================================================\n";
    $body .= "\t\t\tMESSAGE SENT FROM $website_title\n";
    $body .= "=====================================================\n";
    $body .= $Hello ." ". $name[$count]."\n\n";

    $body .= "Your friend, ".$refer_name ."(".$refer_email.") recommended you
    to visit our website, ".$website_title.".\n\n";

    $body .= "You can visit this site by clicking on the link below:\n";
    $body .= $in_script2."\n\n";

    $body .= $personal ."\n\n\n";


    $body .= "------------------------------------------------------\n";
    $body .= "This message has been sent you you after ".$refer_name."
    recommended you at ".$website_title.".\n\n";

    $body .= "Website Contact Details :\n\n";

    $body .= $your_name."\n";
    $body .= "mailto:".$your_email."\n\n";

    $body .= $website_title."\n";
    $body .= $in_script2."\n";
    $body .= "-----------------------------------------------------";

    mail("$email[$count]", "$subject", "body" "mailheaders";

    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  4. #4
    SitePoint Evangelist
    Join Date
    Feb 2000
    Location
    England
    Posts
    568
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you. I will try that and see if it helps. Thanks again


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •