Page 1 of 1
Netscape/Mozilla (setting mime-types)
Posted: Wed Jan 05, 2005 8:03 am
by Chris Corbyn
Hi,
Can I add mime-types to Netscape/Mozilla so that when an email is sent it has the correct content-type specified?
It must work for sending emails, not just viewing web content.
Thanks in advance

Posted: Wed Jan 05, 2005 9:41 am
by feyd
yes you can. It's in your header settings when calling [php_man]mail()[/php_man]. Example 4 on the mail function page has an html email, which changes the content-type.
Posted: Wed Jan 05, 2005 10:20 am
by Chris Corbyn
That isn't what I meant.... I was just talking about the actual preferences within Netscape/Mozilla browsers on the client side.
But, I also am considering writing a script with the mail() function to do the job. Just not sure how tricky it would be to allow attachments to be added? It's just for personal use you see

Posted: Wed Jan 05, 2005 10:25 am
by Chris Corbyn
Hmm... this would be ok (if it works)....
Can you use the mail() function to send an attachment (its a JAR file) with the content type specified but not as a multipart message? It would essentially be just sending a file through email without any text in the body...
Multipart messages are looking a bit complex to create
Posted: Wed Jan 05, 2005 10:27 am
by feyd
my bad. There's an option in the Mozilla preferences called Helper Applications that can add mime type handlers.
Posted: Wed Jan 05, 2005 10:30 am
by Chris Corbyn
Thanks very much

Hope it works for sending emails using NS mail and not just for handling web page content (I need netscape to put content-type=aplication/x-java-archive instead of aplication/octet-stream) when |I attach a JAR file.
I'll test it when I get home from work.
Thanks again
