Wow, ok... I never had any problems with mail(), but then again, i've never
had to set content type to text/html. Thanks for the info.
I wonder if it wasn't something simple like the script timeout that was
making things fail (calls to mail(), especially if the smtp server is not
the same machine as the web server, are pretty slow in my experience) -- if
it worked for smaller messages, you'd think it'd work for all messages (good
code should scale well, and I'm assuming that the PHP core is written well!)
Anyways, thanks for the warning.
NIk
-----Original Message-----
From: Sokun, Chorn [mailto:sokunxp@g...]
Sent: Friday, December 28, 2001 9:13 PM
To: professional php
Subject: [pro_php] RE: hi
Dear Nik,
Once I used to experience problem sending mail() with HTML.
I have design a layout for out going mail so visitor just sumbit their
message and I put their message inside a formated message. But the problem
was if the visitor type about 30 line with carage return some part was cut
out.
I am not sure what wrong I try to figure out but I can't find. So I just
remove text/html off and when I try again it works.
Sokun
----- Original Message -----
From: "Nikolai Devereaux" <yomama@u...>
To: "professional php" <pro_php@p...>
Sent: Saturday, December 29, 2001 5:02 AM
Subject: [pro_php] RE: hi
>
> mail() shouldn't have any problems sending HTML mail messages.
>
> The URL's in your email to me automatically show up as links because when
I
> read them in Outlook, it automatically parses URLs and email addresses and
> converts them to hyperlinks on my end.
>
> However, if you want to send an HTML message with your own links, you have
> to remember to set the content type of the message to text/html, otherwise
> all your html tags just show up as text.
>
> Check the manual at http://www.php.net/manual/en/function.mail.php.
>
> They show an example of how to send HTML mail.
>
> Take care,
>
> Nik
>
>
> P.S. Please use the PHP list to send me PHP related messages... I've got
a
> lot of filters on my incoming mail, and this account is pretty much
> exclusively used for mailing lists, and most non-mailing list messages get
> dumped in a rarely-checked folder. Besides, there's a good chance that
> you'll get your questions answered by someone faster than I can do it if
you
> post them to the list.
>
> And remember, there's no such thing as a stupid question... Often times
the
> answer can be found on the PHP homepage and online manual, but if that's
the
> case, your answer on the list will simply be a link to it. =)
>
> Take care,
>
> Nik
>
>
> -----Original Message-----
> From: arun [mailto:arun@l...]
> Sent: Friday, December 28, 2001 5:57 AM
> To: Nikolai Devereaux
> Subject: hi
>
>
> hi nik,
>
> how to give an hyper link in an email.
>
> $to = "dpwnteam@d...";
> $subject = "New domain is registered with '.de' as
> the extension";
> $message = "Hello".$bill_fname",
>
> welcome to our service. Your domain has been
> registered with our system. After verification the domain will be
activated.
> Domain name is as show below :
>
>
> www.".$domainname.$extension."
>
>
> It will take a week for us to activate the domain.
> If you have any problem please contact
> <mailto:support@d...>
>
> Visit: http://www.dpwn.de";
> $body="New domain has been signed up";
> $from ="From:webmaster@d...";
> mail($to,$subject,$body,$from);
>
> how to add
>
> <a href="filename"></a>
>
> in the $message
>
> regards
> arun
>
>
>
>