Welcome Guest, Not a member yet? Register   Sign In
Codeigniter sending blank emails when more then one email is sent in a single request
#10

(This post was last modified: 09-21-2015, 10:00 PM by webdev25.)

So.... I figured it out... I should have provided more information about how my application(s) were setup.

Because this particular system has multiple 'applications' within it, I have the codebase setup something like this:

admin
-- index.php
merchants
-- index.php
applications
-- admin
-- common
---- views
------ emails
-------- _wrapper.php
-- merchants
-- public
---- views
------ emails
-------- _wrapper.php
-------- contact_form.php
system
index.php

Because i want to share some files and code across applications, the email wrapper being one of them the file in applications/common/views/emails/_wrapper.php contained the HTML code for the email wrapper. The file in applications/public/views/emails/_wrapper.php contained the following code:

PHP Code:
<?php require_once BASEPATH.'../applications/common/views/emails/_wrapper.php'

I changed it to

PHP Code:
<?php require BASEPATH.'../applications/common/views/emails/_wrapper.php'

Problem solved. Sorry guy's, school boy error Tongue Thanks for your help and feedback though.
Reply


Messages In This Thread
Codeigniter sending blank emails when more then one email is sent in a single request - by webdev25 - 09-21-2015, 09:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB