jorley Posted February 15, 2010 Share Posted February 15, 2010 I am trying to set up a php email that will detect if html is accepted in the client it is sent to and if so it will show the HTML if not it will show a different email. I have read about some ways to do this but nothing has been informative enough to finalize it. Has anyone done something like this and if so can you point me in the right direction? Link to comment https://forums.phpfreaks.com/topic/192161-php-mail/ Share on other sites More sharing options...
PHP Monkeh Posted February 15, 2010 Share Posted February 15, 2010 If you want to know whether the user can read HTML emails, the only way to do that is to ask them (it's common to ask whether the user wants HTML/Plain Text emails). Link to comment https://forums.phpfreaks.com/topic/192161-php-mail/#findComment-1012703 Share on other sites More sharing options...
jorley Posted February 15, 2010 Author Share Posted February 15, 2010 Let me elaborate a little more, I should have put this in the original. The site I am building for my client is a social network. So there are potentially thousands of users. When they register they get an activation email jus tlike this site sends out. I noticed they had a boundary on it which is what I read is what you use to do this such a thing. I cannot ask every user if they have html because they are not even users until they activate and if I send that first email in hml and they don't have it as an accepted method then the email will look broken. Thoughts? Link to comment https://forums.phpfreaks.com/topic/192161-php-mail/#findComment-1012709 Share on other sites More sharing options...
PHP Monkeh Posted February 15, 2010 Share Posted February 15, 2010 Gotcha, look into multipart emails - there are quite a few tutorials from a google search for 'php multipart emails' Link to comment https://forums.phpfreaks.com/topic/192161-php-mail/#findComment-1012714 Share on other sites More sharing options...
Splash Posted February 15, 2010 Share Posted February 15, 2010 The PHPMailer class is perfect for this: http://sourceforge.net/projects/phpmailer/ Link to comment https://forums.phpfreaks.com/topic/192161-php-mail/#findComment-1012719 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.