Sending html email having JQuery scripts

前端 未结 5 1647
醉话见心
醉话见心 2021-01-12 07:48

I\'m using PHP to send html emails. I\'ve tried to import css files inside the email, and it works fine.



        
5条回答
  •  执笔经年
    2021-01-12 08:43

    @Karim79, I'm not convinced that the answer is so clear cut as you suggest.

    It all depends on the environment used to read the email, and whether that environemnt supports javascript or not. Admittedly, I suspect that most email readers would be averse to supporting javascript, in order to avoid viruses and malware, but there is no absolute reason why this couldn't be done.

    Having said that, the unpredictable level of support offered by readers would probably mean that you shouldn't rely on the script running correctly (if at all), so you'd probably want to take a 'graceful degradation' approach.

提交回复
热议问题