Posts Tagged with "Codeigniter"

Posting form data using CodeIgniter and Ajax

Wednesday, March 23, 2011

2 Comments

Using Ajax to post form data has been made really simple with jQuery’s Ajax methods. Here I’ll show you how to post data to a controller using the jQuery javascript library and the Codeigniter PHP framework In this example I am just going to show you how to post data to a controller. The data […]

Continue reading...

Codeigniter – Sending Emails using Gmail’s SMTP Server

Saturday, February 19, 2011

0 Comments

Sending emails and attaching files along with them are super easy! Just create a file called email.php in the config folder of your application. This file will contain the details of your Gmail SMTP server. [php] $config[‘protocol’] = ‘smtp’; $config[‘smtp_host’] = ‘ssl://smtp.gmail.com’; $config[‘smtp_port’] = ‘465’; $config[‘smtp_user’] = ‘youremail@gmail.com’; $config[‘smtp_pass’] = ‘password’; $config[‘charset’] = ‘utf-8’; $config[‘newline’] […]

Continue reading...