Re: Re: MAIL() Trouble. Need your eyes.

From: Date: Thu, 11 Jul 2002 23:15:02 +0000
Subject: Re: Re: MAIL() Trouble. Need your eyes.
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-107267@lists.php.net to get a copy of this message
On Thu, Jul 11, 2002 at 07:00:57PM -0400, Chris Earle wrote: > ----------------------------------------- > <?PHP > $myname = "Me Myself"; > $myemail = "me@here.com"; > $myreplyemail = "me@here.com"; > $contactname = "Mister Contact"; > $contactemail = "me@here.com"; That's ok... > ----------------------------------- > MY VERY LONG $MESSAGE STRING > ----------------------------------- > $message = "<html><head><title></title>"; That's not how MIME based email bodies start. > //$message.= "<p><object > classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' > > codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca > b#version=5,0,0,0' width='500' height='300'><param name=movie > > value='http://www.delaplaine.net/flashmail/delaplaine.swf'><param > name=quality value=high><param name=menu value=false><param > name='BGCOLOR' > value='#54616E'>"; This will give an error, because the message is not defined as a propper MIME type. I'm not 100% sure of the exact correct syntax of MIME based email now, but a look at the RFCs. A nice quick hack to get the propper syntax, send yourself a HTML based email from OE or a similar mail client, and view the source of the generated email message. You need things like --- message type="mime/type" type="application/x-shockwave --- --- next part="lbahb lah" --- etc etc etc. So yes, you're problem is that your email's not properly formated. Search arround a bit, read some fine manuals, and make some examples of MIME based email messages from clients that you know works properly (such as OE). Then, go back, format your message body properly, and it should all work very nicely -- me

« previous php.general (#107267) next »