HTML Email Message Not Working? - 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 Message Not Working? (/showthread.php?tid=32867) |
HTML Email Message Not Working? - El Forum - 08-07-2010 [eluser]Corey Freeman[/eluser] I dunno what's wrong with my code, but I can't get the HTML to render. For some reason it's sending the HTML view in plain text. Code: //Email the User VIEW Code: <html> HTML Email Message Not Working? - El Forum - 08-07-2010 [eluser]JHackamack[/eluser] Have you made sure to include: Code: $config['mailtype'] = 'html'; HTML Email Message Not Working? - El Forum - 08-07-2010 [eluser]Corey Freeman[/eluser] Ah. It's all so clear now. I'm a moron... Thanks. HTML Email Message Not Working? - El Forum - 08-08-2010 [eluser]Zocee[/eluser] I'm having a weird problem here please see the following link: http://ellislab.com/forums/viewthread/163620/ HTML Email Message Not Working? - El Forum - 05-25-2012 [eluser]ModernM[/eluser] Many thanks, this helped me get my HTML email working. By the way, how did you get the secret URL to work. What I have is a email view like yours that send out an email, but I want to have a link to a file that is encrypted or somewhat hidde, so the user doesnt see the direct URL. Something like http://www.site.com/files/ASe123ASr12DASD . I am new to PHP but I am managing pretty well, any help in the right direction would help. Thanks HTML Email Message Not Working? - El Forum - 05-25-2012 [eluser]Samus[/eluser] [quote author="ModernM" date="1337999579"]Many thanks, this helped me get my HTML email working. By the way, how did you get the secret URL to work. What I have is a email view like yours that send out an email, but I want to have a link to a file that is encrypted or somewhat hidde, so the user doesnt see the direct URL. Something like http://www.site.com/files/ASe123ASr12DASD . I am new to PHP but I am managing pretty well, any help in the right direction would help. Thanks[/quote] Create a random string, any method you want. Store that string in your database. Use an arguement in your controller method that will accept that random string. Within your controller method, have a model which looks for that random string. If it matches one, do something, else do something else. |