I've tired to sending email with tracking, and i found solution mailgun, i'm using codeigniter framework and swift library for sending email,
this is my code
require_once 'lib/swift_required.php';
$email = $this->input->post('to');
$subject = $this->input->post('subject');
$message_body = $this->input->post('isi');
$transport = Swift_SmtpTransport::newInstance('smtp.mailgun.org', 465, "ssl")
->setUsername('myUsernameSMTP')
->setPassword('myPasswordSMTP');
$mailer = Swift_Mailer::newInstance($transport);
$message = Swift_Message::newInstance($subject)
->setFrom(array('krisman.ryuzaki@gmail.com' => 'Ahmad Krisman R.'))
->setTo($email)
->setBody($message_body, 'text/html');
if($result = $mailer->send($message)) {
redirect('pemasaran/index', 'refresh');
}
can anybody help please