problem sending html email |
[eluser]bsauls[/eluser]
Family Values I don't know that this would cause the problem, but 12px is not a font-family value. Something like font-family: sans-serif; font-size: 12px; would work Also, you have two close para tags instead of one. Again, it doesn't seem like a couple of syntax errors would cause the problem, but I basically replicated your code minus these errors and it worked. function sendmail2() { $config['mailtype'] = 'html'; $config['wordwrap'] = TRUE; $this->email->initialize($config); $firstname = 'Celia'; $lastname = 'Cardholder'; $email = '[email protected]'; $passwd = '1Whatever'; $this->load->library('Email'); $this->email->from('[email protected]', 'Your Website'); $this->email->to('[email protected]'); $this->email->bcc('[email protected]'); $this->email->subject('Registration for My Website'); $message ='We hope that online access to our inventory will be a great convenience for you. You are now registered as '.$firstname.' '.$lastname.'. <br> <br> Go to <a href="http://www.yourwebsite.com/member/login">http://www.yourwebsite.com</a> and logon using: '.$email.' with password: '.$passwd.' <br> <br> Regards <br> <br> My Website'; $vars['message'] = $message; $body = $this->load->view('mail/welcome', $vars, true); $this->email->message($body); $this->email->send(); echo $this->email->print_debugger(); } |
Messages In This Thread |
problem sending html email - by El Forum - 04-09-2009, 10:59 PM
problem sending html email - by El Forum - 04-09-2009, 11:13 PM
problem sending html email - by El Forum - 04-10-2009, 05:37 AM
problem sending html email - by El Forum - 04-14-2009, 07:56 PM
problem sending html email - by El Forum - 05-10-2009, 10:45 PM
problem sending html email - by El Forum - 05-10-2009, 10:55 PM
problem sending html email - by El Forum - 05-10-2009, 11:14 PM
problem sending html email - by El Forum - 05-10-2009, 11:20 PM
problem sending html email - by El Forum - 05-20-2009, 05:34 PM
|