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



Yes, thanks I learned and I got it working pretty cleanly now.


steve wrote:
| 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: Saving aspx to file or other solution
    ... Roland, I mangaed to try your way, I did managed to snapshot the Form ... Then when the user submits it, we need to send an HTML email to the ... HTML produced by the ASP page; paste into the editor of your choice; prepend ... than we want to save this page to a Database ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: mail() sending in html format (or not)
    ... | reassemble that though as multi-part. ... you could do just a simple html and be done with it. ... I tried it with just one header and I think it's working. ... you can embedd a css an have your html email ...
    (alt.php)
  • Re: Saving aspx to file or other solution
    ... Thx alexy,Rolnad,Dave ... Then when the user submits it, we need to send an HTML email to the ... HTML produced by the ASP page; paste into the editor of your choice; prepend ... than we want to save this page to a Database ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Searching!!
    ... Most Posters in Newsgroups use Plain Text Not (HTML). ... HTML email contains commands to be executed by your email client: ... these commands can be used maliciously to exploit common security holes. ... opens up using Google as the search engine. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Saving aspx to file or other solution
    ... Then when the user submits it, we need to send an HTML email to the ... HTML produced by the ASP page; paste into the editor of your choice; prepend ... than we want to save this page to a Database ... any ideas how to save the aspx with user data to file? ...
    (microsoft.public.dotnet.framework.aspnet)