|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all-
I am a fairly new developer and am creating an HTML email. I would like to create it so if the recipient is capable of receiving HTML messages they'll see the HTML version, if not they will simply see plain text. Any ideas? Thanks much... |
|
#2
|
|||
|
|||
|
Do a search for "mime" and "mailer" here. You donīt need to detect if the client can display html emails. Just send both, itīs the clientīs task to decide which one to show
![]()
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
|||
|
|||
|
It all depends who/what is sending the email.
Look up multipart alternative. If you can send using it then both a text and a html email can be sent. If the recipient thinks they can handle the HTML thats what they see, if they don't they just see the text message. I guess thats why they call it alternative!
__________________
-- ngibsonau |
|
#4
|
|||
|
|||
|
"multipart/alternative" is the mime type i was talking about
![]() |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > HTML - text detection |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|