Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. $this->load->library('email');
  2.  
  3. $subject = "Test Mail with check";
  4. $fromemail ="demo@gmail.com";
  5. $toemail = "demo1@gmail.com";
  6. $cc = "demo2@gmail.com";
  7.  
  8. $this->email->to($toemail);
  9. $this->email->cc($cc);
  10. $this->email->bcc($bcc);
  11. $this->email->from($fromemail, "$subject");
  12. $this->email->subject($subject);
  13. $this->email->message($mesg);
  14.  
  15. $mail = $this->email->send();
  16.  
  17. echo $this->email->print_debugger();
  18.  
  19. var $useragent = "CodeIgniter";
  20. var $mailpath = "/usr/sbin/sendmail";
  21. var $protocol = "sendmail";
  22. var $smtp_host = "ssl://smtp.gmail.com";
  23. var $smtp_user = "somemail@gmail.com";
  24. var $smtp_pass = "******";
  25. var $smtp_port = "587";
  26. var $smtp_timeout = 5;
  27. var $smtp_crypto = "";
  28. var $wordwrap = TRUE;
  29. var $wrapchars = "76";
  30. var $mailtype = "html";
  31. var $charset = "utf-8";
  32. var $multipart = "mixed";
  33. var $alt_message = '';
  34. var $validate = FALSE;
  35. var $priority = "3";
  36. var $newline = "rn";
  37. var $crlf = "rn";
  38.  
  39. Your message has been successfully sent using the following protocol: sendmail
  40. To: demo@gmail.com
  41. Cc: demo1@gmail.com
  42. From: "Test Mail with check" <somemail@gmail.com>
  43. Return-Path: <sommail@gmail.com>
  44. Subject: =?utf-8?Q?Test_Mail_with_check?=
  45. Reply-To: "somemail@gmail.com" <somemail@gmail.com>
  46. X-Sender: somemail@gmail.com
  47. X-Mailer: CodeIgniter
  48. X-Priority: 3 (Normal)
  49. Message-ID: <5797207b7169a@yoboho.com>
  50. Mime-Version: 1.0
  51.  
  52.  
  53. Content-Type: multipart/alternative; boundary="B_ALT_5797207b716d4"
  54.  
  55. This is a multi-part message in MIME format.
  56. Your email application may not support this format.
  57.  
  58. --B_ALT_5797207b716d4
  59. Content-Type: text/plain; charset=utf-8
  60. Content-Transfer-Encoding: 8bit
  61.  
  62. This is testing Mail
  63.  
  64.  
  65. --B_ALT_5797207b716d4
  66. Content-Type: text/html; charset=utf-8
  67. Content-Transfer-Encoding: quoted-printable
  68.  
  69. This is testing Mail
  70.  
  71. --B_ALT_5797207b716d4--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement