[thelist] PHP email problem

BT Bigpant bigpant at btinternet.com
Tue Feb 5 09:31:01 CST 2002


Take a look at these websites which give more detail on how to create MIME
emails, including embedded graphics and attachments.

http://www.zend.com/zend/spotlight/sendmimeemailpart1.php#Heading4
http://www.rad.com/networks/1995/mime/mime.htm
http://www.oac.uci.edu/indiv/ehood/MIME/MIME.html
http://email.about.com/library/weekly/aa061101a.htm?iam=savvy&terms=%2Bmime

They explain it better than I ever could !!
Best of luck.
Phil Parker

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Ben Phillips
Sent: 05 February 2002 14:03
To: thelist at lists.evolt.org
Subject: RE: [thelist] PHP email problem


> A couple of suggestions:

thanks for that phil. i just learnt a lot in a very short time...

> You are using stripslashes to remove \s. Are you doubling the
> slashes up for
> \n and \r? If not, you'll only get n rather than \n. You should
> not need \r,
> \n *should* suffice.

unfortunately, still getting the problem. i think the issue is with the
actual $message variable. if it declare the message as follows:

$message = "Hi,\n\nThanks for the message.\n\nRegards,\nBenji.";

then it works fine. if i use actual carriage returns or take the message
from a textarea form element, then it acts funny (as i explained in my first
mail). obviously, the \n is different to what i am getting from the
textarea.

> If you are still having problems, you might want to try HTML
> formatting the
> message and use nl2br($message) to convert \n\r to <br>. You would need to
> change Content-Type:text/html\n

i could do this, but would like to know how to send both text and html mails
out if possible.

thanks again, and hope you can help me further! :o)

benji
inchima.com

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !




More information about the thelist mailing list