[SOLVED]Getting blank email with embeded images |
[eluser]Cgull[/eluser]
Hello, I found this post: Inline images in emails I tried it but I keep getting blank emails, testing on my local machine with gmail. I am using ci 2.1.2 My email.php file: Code: $config["multipart"]="related"; My folders structure is: mysite/appclication mysite/public_html/assets/img I'm not sure how to get an image that is in public_html/assets/img in a controller, so I moved the image to the controllers folder, any help here would be appriciated as well My controller: Code: $this->load->library('email'); In my view: Code: <img src="<?php echo 'cid:' . site_url('assets/img/thinklocal/think-local-logo.gif'); ?>" /> Can someone please help? UPDATE: Managed to solve this by using PHPMailer instead of CI email library. |
Welcome Guest, Not a member yet? Register Sign In |