Re: mail() sending in html format (or not)



| So I'll need to separate headers and message. I'm not sure how it would
| reassemble that though as multi-part. Maybe if I just did a simpler html
| only content with one header.

if you go the mail() route, yes...examples on the net on how to split it up.
yes, you could do just a simple html and be done with it.

| > if you have access to you smtp server's pick up directory, i'd recommend
| > just writing directly to it with the output.
|
| I'll check. I'm not sure how this would help though.

means you wouldn't have to use mail() and you write directly to file...smtp
would pick it up and send it automatically. mail() is fn quircky...i cut out
the middle-man...but then again, i'm working on my or my company's servers
over which i have full command...you may not have cart-blanc.


| Well, I tried it with just one header and I think it's working. Mozilla
| doesn't really show the html styling but I think that's just following
| the default display without adding colors & such. When I reply, it shows
| up as an html table.

FANTASTIC...at least we got rid of the html tags and see it being
interpreted *as* html instead. you can embedd a css an have your html email
refer to it so that your html is a bit more "stylish".

anyway, glad you've gotten this far! the code i gave handles most scenarios
people follow when wanting to send email via php...if it comes in handy down
the road, keep it, use it, modify it, abuse it...just hoped you learned from
it.

ngu later,

me


.



Relevant Pages

  • Re: Grey logos in letterheads
    ... If you really need the rationalisation, it is/was this: ... from which both HTML and XML protocols sprang: ... header and leaving it up to the recipient device to figure it out. ...
    (microsoft.public.mac.office.word)
  • Re: Grey logos in letterheads
    ... small comment--actually, both of my points came about because people constantly post about both those problems on the general Word groups, not here. ... I was trying to write an explanation to defend the lost headers in HTML to someone over there when I realized there was no way I could rationalize it. ... user can edit it and it can have a running header on each page. ...
    (microsoft.public.mac.office.word)
  • Re: Diacritical marks in array dont translate
    ... >>> encoding you specified in your HTML. ... > header transmitted by a server. ... MUST or MAY allow the Content-Type header to be overridden by the `meta' ... There are used UAs out there which does not support Unicode, ...
    (comp.lang.javascript)
  • Re: CGI scripts and MSIE
    ... Last night I put a perl script into my cgi-bin directory and gave it ... I would guess that you haven't specified in the HTML what the contents ... Most likely the other browsers have defaulted to text/html, ... What you need to do is add a header to the HTML you send back saying ...
    (uk.comp.os.linux)
  • Re: Unable to Control Header in html mail
    ... The dialog is correct - you can't preview HTML. ... If I'm following correctly, the header and footers are behaving as expected, ... Teach Yourself Outlook 2003 in 24 Hours ... > page setup all the header and footer areas are blank. ...
    (microsoft.public.outlook.printing)