Welcome Guest, Not a member yet? Register   Sign In
Codeigniter not sending email!
#1

[eluser]behnampmdg3[/eluser]
Hi;

What am I doing wrong?

I get the success message but it does not send the email!!!!!

Quote:Your message has been successfully sent using the following protocol: mail

User-Agent: CodeIgniter
Date: Thu, 7 Nov 2013 17:59:00 +1100
From: "Top Deals" <[email protected]>
Return-Path: <[email protected]>
Reply-To: "[email protected]" <[email protected]>
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="B_ALT_527b3a3442a45"


=?utf-8?Q?Top_Hotel_Deals_Voucher_Redemption_(customer)?=
This is a multi-part message in MIME format.
Your email application may not support this format.

--B_ALT_527b3a3442a45
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

&nbsp;


Code:
$data['message']=$_POST['special_request'];
       $message = $this->load->view('evoucher_thd/voucher_redemption_customer.php', $data, TRUE);
      
       $this->load->library('email');
       $config['mailtype'] = 'html';
       $this->email->initialize($config);
      
      
       $this->email->to('[email protected]');
       $this->email->from('[email protected]', 'Top Hotel Deals');
       $this->email->message($message);
       $this->email->subject('Top Deals Voucher Redemption (customer)');
       $this->email->send();
      
       echo $this->email->print_debugger();exit();
#2

[eluser]Tpojka[/eluser]
What is happening when exit(); is removed - some php error? ?
#3

[eluser]behnampmdg3[/eluser]
[quote author="Tpojka" date="1383819449"]What is happening when exit(); is removed - some php error? ?[/quote]Nothing. I have a redirect after that, it redirects me Smile
Code:
redirect('https://www.'.SITE.'/send_redeem/sent/'.$voucher_id, 'refresh');
#4

[eluser]Tpojka[/eluser]
Could it be something up to provider? (Godaddy is problematic to emai sending i.e.)
#5

[eluser]behnampmdg3[/eluser]
[quote author="Tpojka" date="1383862784"]Could it be something up to provider? (Godaddy is problematic to emai sending i.e.)[/quote]No it sends from other pages.
#6

[eluser]Tpojka[/eluser]
To be honest I haven't use loading view with third (true) parameter.
But wouldn't there be some more config data as shown on Email class page in user guide?
#7

[eluser]behnampmdg3[/eluser]
[quote author="Tpojka" date="1383863608"]To be honest I haven't use loading view with third (true) parameter.
But wouldn't there be some more config data as shown on Email class page in user guide?[/quote]Yes thats not it. It has no effect Sad




Theme © iAndrew 2016 - Forum software by © MyBB