Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialArash Emadi
10,002 PointsWhy can't I send emails with my CodeIgniter app?
Hi all. I'm trying to use CodeIgniter's email library to send emails when my contact form is filled, but unfortunately, although I see the SUCCESS message on my website, the email does not get delivered to my inbox. Can you help me solve the problem with my configuration? Thanks in advance. Below is my config file for emails:
<?php
$config = array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.gmail.com',
'smtp_port' => 465,
'smtp_timeout' => 7,
'smtp_user' => 'blabla@gmail.com',
'smtp_pass' => 'blabla',
'mailtype' => 'html',
'charset' => 'utf-8',
'newline' => "\r\n",
'wordwrap' => TRUE
);
?>