![]() |
HTML Email from file system with language support - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: HTML Email from file system with language support (/showthread.php?tid=23960) |
HTML Email from file system with language support - El Forum - 10-27-2009 [eluser]bunal[/eluser] Hi Coders, I am trying to send email which has the body as physical file(email_welcome.php) on the system. I can achieve this by having the file under view and load them into a variable /view/mail/en/email_welcome.php /view/mail/de/mail_welcome.php But this way is not a good way to go if you need to have a theme based system. There will be multiple copies... I need to have emails in language folder like below so they can referenced more easily /language/en/mail/email_welcome.php /language/de/mail/mail_welcome.php What is the best practice for you guys. Any recommendation? HTML Email from file system with language support - El Forum - 10-27-2009 [eluser]umefarooq[/eluser] yes you can Code: $this->load->helper('language'); HTML Email from file system with language support - El Forum - 10-27-2009 [eluser]bunal[/eluser] Seems like your answer would be still in "view" folder. I need to have the files in "/language" folder not view. HTML Email from file system with language support - El Forum - 10-28-2009 [eluser]bunal[/eluser] Hey coders, any other thoughts pls? |