Welcome Guest, Not a member yet? Register   Sign In
Email error
#1

[eluser]Unknown[/eluser]
Hello,

I use the email library to send emails.
I have an email.php file in my config map:

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'send.one.com';
$config['smtp_port'] = '2525';
$config['smtp_user'] = '[email protected]';
$config['smtp_pass'] = 'xxx';
$config['mailtype'] = 'html';
$config['charset'] = ' iso-8859-1';
?>

And the code in my controller:

$this->load->library('email');
$this->email->set_newline("\r\n");

$naam = $this->input->post('name');
$email = $this->input->post('email');
$onderwerp = $this->input->post('onderwerp');
$data['bericht'] = $this->input->post('bericht');

$this->email->from($email, $naam);
$this->email->to('[email protected]');
$this->email->subject($onderwerp);
$this->email->message($this->load->view('emails/emailinfo', $data, TRUE));

if($this->email->send())
{
$data['content'] = 'emailSend';
$data['title'] = 'Myrelle - email verzonden';
$this->load->view('template/template', $data);
}else{
show_error($this->email->print_debugger());
}

But i have errors:

A PHP Error was encountered
Severity: Warning
Message: fsockopen(): unable to connect to send.one.com:2525 (Connection timed out)
Filename: libraries/Email.php
Line Number: 1689

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /customers/b/8/4/sieradenmyrelle.be/httpd.www/system/core/Exceptions.php:185)
Filename: core/Common.php
Line Number: 438

This is a multi-part message in MIME format. Your email application may not support this format.

Can someone help me?

Robin
#2

[eluser]john_j[/eluser]
http://ellislab.com/forums/viewthread/132443/#863902
#3

[eluser]Unknown[/eluser]
[quote author="john_j" date="1344610819"]http://ellislab.com/forums/viewthread/132443/#863902[/quote]

I try this, everything works on my localhost, but not online...




Theme © iAndrew 2016 - Forum software by © MyBB