Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # sendmail.php
- smtp_server=smtp.gmail.com
- smtp_port=587
- smtp_ssl=auto
- error_logfile=error.log
- auth_username=dyazincahya.cd@gmail.com
- auth_password=***
- pop3_server=
- pop3_username=
- pop3_password=
- force_sender=
- force_recipient=
- hostname=
- # php.ini
- SMTP = smtp.gmail.com
- smtp_port = 587
- sendmail_from = dyazincahya.cd@gmail.com
- sendmail_path = "\"D:\xampp\sendmail\sendmail.exe\" -t"
- sendmail_path = "D:\xampp\mailtodisk\mailtodisk.exe"
- # controllers
- function mail()
- {
- $config = Array(
- 'protocol' => 'smtp',
- 'smtp_host' => 'ssl://smtp.gmail.com',
- 'smtp_port' => 587,
- 'smtp_user' => 'dyazincahya.cd@gmail.com', // change it to yours
- 'smtp_pass' => '***', // change it to yours
- 'mailtype' => 'html',
- 'charset' => 'iso-8859-1',
- 'wordwrap' => TRUE
- );
- $message = 'aku mau coba coba';
- $this->load->library('email', $config);
- $this->email->set_newline("\r\n");
- $this->email->from('dyazincahya.cd@gmail.com'); // change it to yours
- $this->email->to('dyazincahya@gmail.com');// change it to yours
- $this->email->subject('Resume from JobsBuddy for your Job posting');
- $this->email->message($message);
- if($this->email->send())
- {
- echo 'Email sent.';
- }
- else
- {
- show_error($this->email->print_debugger());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement