Welcome Guest, Not a member yet? Register   Sign In
my email has no message and attachment
#1

[eluser]sushi[/eluser]
Hello every body,
I run into a sending email issue. My recipient can receive the email, but only the upper part of the mail, from, to and subject.
There is no message, no attachment at all.

However, it was not the case before, at the beginning of my running test, everybody can receive a whole page of email. Suddenly, recipients can only get the from, to and the subject parts but no message or attachment!

I wonder whats happening? I am working on the same computer and the same localhost apache setup. PHP Version 5.3.8. Can any one of you help.

Here is my config.php and below that is my emial send out function, please take a look and help.

$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.googlemail.com';
$config['smtp_port'] = 465;
$config['smtp_user'] = '[email protected]';
$config['smtp_pass'] = '3456';
$config['mailtype'] = 'html';
$config['charset'] = 'iso-8859-1';

public function send(){

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

$this->email->from('[email protected]', 'Art H');
$this->email->to(recipient@yahoo.com);
$this->email->subject('A short subject');
$this->email->message('Message for you today');
$path = $this->config->item('server_root');
$file = $path . '/day1/attachments/somenote.txt';
$this->email->attach($file);

if($this->email->send())
{


$this->load->view('signup_confirmation_view');
}

else
{
show_error($this->email->print_debugger());
}
}

Sushi


Messages In This Thread
my email has no message and attachment - by El Forum - 07-13-2012, 01:30 PM
my email has no message and attachment - by El Forum - 07-13-2012, 05:14 PM
my email has no message and attachment - by El Forum - 07-13-2012, 06:02 PM
my email has no message and attachment - by El Forum - 07-13-2012, 11:39 PM
my email has no message and attachment - by El Forum - 07-14-2012, 05:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB