Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2005
    Location
    NM
    Posts
    3

    * php mail not working please help me!

    every time my test site sends an email I get this a bunch of garbled letters instead of the msg.
    these are the headers, and i've tried a few different encoding settings

    $mailheaders = "From $contact";
    $mailheaders .= "Reply-To: $contactemail \r\n";
    $mailheaders .= "MIME-Version: 1.0 \r\n";
    $mailheaders .= "Content-Type: text/plain; charset=UTF-8 \r\n";
    $mailheaders .= "Content-Transfer-Encoding: BASE64 \r\n";

    in the email I get two sets of headers, and it showing up as a messege from nobody@gallardo.cwihosting.com (the hosting company i use)

    the email has no html and i've tried the text/html content-type also.
    I'm pulling values from a form, and iv'e attached the php code I'm using to send the mail.
    please help me if you can,

    thanks
    Attached Files Attached Files

  2. #2
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889
    Moved from Web Hosting Forum to This Technical & Security Issues Forum.

  3. #3
    Join Date
    Oct 2005
    Location
    Bucharest, Romania
    Posts
    25
    Code:
    $mailheaders = "From $contact";
    thats bad header.
    did u try sending w/out specifiying any headers? (mime,type,encoding)
    can u also post the full headers for a message sent w/ this script, from ur mailbox

  4. #4
    Join Date
    Oct 2005
    Location
    NM
    Posts
    3
    the msg looks like this

    From hReply-To: h
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: BASE64
    Mime-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: BASE64

    RW1haWwgc2VudCBmcm9tIHNpdGUKQWJvdXQgdGhlIGV2ZW50CkRhdGU6IAloCkV2ZW50OiAJaApU
    aW1lOiAJaApDYXBhY2l0eTogCWgKRW50cmFuY2UgRmVlOiAJaApWZW51ZTogCWgKQWRkcmVzczog

    from = h and reply-to = h are because I used that as test parameters,
    the rest came out as garbage.

  5. #5
    Join Date
    Oct 2005
    Location
    NM
    Posts
    3
    i tried w/o the mail headers and it seems to work now, thanks!

  6. #6
    Join Date
    Oct 2005
    Location
    Bucharest, Romania
    Posts
    25

Posting Permissions

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