Welcome Guest, Not a member yet? Register   Sign In
Problem sending an email
#1

[eluser]Estu[/eluser]
Hi folks, I have a problem sending an html email. This was working right, but now this is sent in the email instead of the html:

Quote:Content-Transfer-Encoding: BASE64

VGhpcyBpcyBhIG11bHRpLXBhcnQgbWVzc2FnZSBpbiBNSU1FIGZvcm1hdC4NCllvdXIgZW1haWwg
YXBwbGljYXRpb24gbWF5IG5vdCBzdXBwb3J0IHRoaXMgZm9ybWF0Lg0KDQotLUJfQUxUXzRmNWEy
OTcxMjY0ZTYNCkNvbnRlbnQtVHlwZTogdGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA0KQ29udGVu
dC1UcmFuc2Zlci1FbmNvZGluZzogOGJpdA0KDQpCaWVudmVuaWRvIGEgRlJJTktJDQogUGFyYSBw
b2RlciB1dGlsaXphciB0b2RhcyBsYXMgY2FyYWN0ZXJpc3RpY2FzIGRlIGxhIHBhZ2luYSBkZWJl
cyBkZQ0KY29uZmlybWFyIHR1IG1haWwuIFRpZW5lcyAzIGTDrWFzIGFudGVzIGRlIHF1ZSBlbCBs
aW5rIGV4cGlyZSB5IHRlbmdhcyBxdWUNCnNvbGljaXRhciB1bm8gbnVldm8uDQogUGFyYSBjb25m
aXJtYXIgaGF6IGNsaWNrIGVuIGVzdGUNCmxpbms6aHR0cDovL2Rldi5mcmlua2kuY29tL2FjdGl2
YXIvZjI3YWQxNTgwYTkwNDNiMDc5NWMzOWM2NWNjMGEwZmINCiBPIGluZ3Jlc2EgYXF1aTpodHRw
Oi8vZGV2LmZyaW5raS5jb20vYWN0aXZhcm1hbnVhbA0KIFkgcG9uIGVzdGUgY29kaWdvOg0KIGYy
N2FkMTU4MGE5MDQzYjA3OTVjMzljNjVjYzBhMGZiDQogTXVjaGFzIEdyYWNpYXMhDQogRnJpbmtp
IFN0YWZmDQogDQoNCiANCiANCiANCiANCiANCiANCiANCiANCiANCiANCiANCiANCiANCiANCiAN

Is larger than that.

This is the code im using, the email is send through a library:

Code:
$this->CI->email->from("[email protected]","No Contestar");
  $this->CI->email->to($this->CI->session->userdata('user_email'));
  $this->CI->email->reply_to("[email protected]");
  $this->CI->email->subject(sprintf("Bienvenido a Frinki - Activa tu E-Mail"));
  $this->CI->email->message($this->CI->load->view('mail/mail_view.php',array('hash' => $this->CI->session->userdata('activation_hash')),TRUE));
  //$this->email->set_alt_message($this->load->view('email/'.$type.'-txt', $data, TRUE));
  $this->CI->email->send();

Thanks in advance!
#2

[eluser]Noobigniter[/eluser]
What are the system of "mailtype" in your config?

bg:
Code:
$config['mailtype']  = 'html';
#3

[eluser]johnpeace[/eluser]
Code:
$this->CI->load->view('mail/mail_view.php'...

I've never seen the .php on a view load before...

#4

[eluser]Estu[/eluser]
I've checked what you said, and I'm still receiving the same.

Thanks
#5

[eluser]InsiteFX[/eluser]
As johnpeace said remove the .php off the end of your
Code:
$this->CI->load->view('mail/mail_view');
#6

[eluser]Estu[/eluser]
I've already done that.. the result is the same..

Thanks for your response
#7

[eluser]Matalina[/eluser]
Code:
$this->CI->email->message($this->CI->load->view('mail/mail_view.php',array('hash' => $this->CI->session->userdata('activation_hash')),TRUE));

What is your hash doing? It looks like it's only returning an encrypted piece of information.




Theme © iAndrew 2016 - Forum software by © MyBB