Results 1 to 6 of 6
-
10-03-2005, 09:17 PM #1New Member
- 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
-
10-03-2005, 11:09 PM #2Retired Moderator
- Join Date
- Jul 2001
- Location
- Singapore
- Posts
- 1,889
Moved from Web Hosting Forum to This Technical & Security Issues Forum.
-
10-03-2005, 11:45 PM #3Newbie
- Join Date
- Oct 2005
- Location
- Bucharest, Romania
- Posts
- 25
Code:$mailheaders = "From $contact";
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
-
10-04-2005, 01:54 AM #4New Member
- 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.
-
10-04-2005, 02:01 AM #5New Member
- Join Date
- Oct 2005
- Location
- NM
- Posts
- 3
i tried w/o the mail headers and it seems to work now, thanks!
-
10-04-2005, 04:49 AM #6Newbie
- Join Date
- Oct 2005
- Location
- Bucharest, Romania
- Posts
- 25
who expected this?