[eluser]JHackamack[/eluser]
it looks llike you might be missing one before the "=09
Click here= to go to the login page.
" text
have you made sure to remove all white space and try and replace the white space after the Click here text?
Can you post the new raw source?
[eluser]rossmurphy[/eluser]
Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>{site_name} | Forgot Password Notification</title>
</head>
<body style="background-color:#f7f7f7;">
<div style="border:5px solid #ffffff; width:642px; background-color:#ffffff;">
<div style="height:16px; padding:6px 4px 4px 8px; color:#016599; font-family:Arial, Sans-serif; width:630px; font-size:11px; font-weight:bold; background-color:#e3f4f8;">
{site_name} | Forgot Password Notification
</div>
<div style="border:1px solid #e3f4f8; background-color:#ffffff; padding:20px; font-family:Arial, Sans-serif; font-size:13px; width:600px;">
<p style="padding:0; margin:0;">
<span style="font-size:19px;">Dear, {alias}!</span>
<br /><br />
You recently went through the password recovery process at {site_name}. The recovery was successful.
<br /><br />
<div style="width:98%; height:23px; padding:8px 0 4px 2%; background-color:#f6f6f6; border:1px solid #eeeeee; border-width:1px 1px 4px 1px; margin:12px 0;">
<span style="font-weight:bold;">Your password is:</span> {password}
</div>
If you feel you are receiving this email in error, please contact {support_email}.
<br /><br />
<div style="width:98%; height:23px; padding:8px 0 4px 2%; background-color:#f6f6f6; border-top:1px solid #eeeeee; border-bottom:1px solid #eeeeee; margin:12px 0;">
<a style="text-decoration:none;" href="{egift_link}">Click here</a> to go to the login page.<br />
</div>
<br /><br />
All the best,
<br /><br />
<span style="font-weight:bold;">{site_name} Team.</span>
</p>
</div>
</div>
</body>
</html>
[eluser]sophistry[/eluser]
yes, i see that now you changed the subject, it is the subject getting mushed up with the message:
=?utf-8?Q?Test_subject?=
that could be causing you some of these other problems to have that quoted_printable in there... advise to fix errant subject first.
[eluser]danmontgomery[/eluser]
You can really get rid of everything outside of <body>, it will be ignored anyways. Setting the doctype is pointless because the email client will override it with it's own (or ignore it alltogether), and the charset is set by the message headers, not by a meta tag. It looks like something is causing the email not to be valid MIME format (or the email client not to detect it as so), could be an invalid character, or a line that extends beyond the maximum characters/line count, something like that.
[eluser]rossmurphy[/eluser]
Don't think its my subject..
Code: $this->email->subject('Test subject');
Not sure why those characters are appearing. I will take a look at invalid chars i guess. Never had a problem like this before. Thanks for the help.
[eluser]JHackamack[/eluser]
Have you tried removing even more white space from the areas that end up having the =90 inserted?
[eluser]danmontgomery[/eluser]
Try setting: Code: $config['crlf'] = "\r\n";
$config['newline'] = "\r\n";
Rather than the default, which is \n
[eluser]sophistry[/eluser]
not the subject itself... but why is the subject being put into the email message? is this in a loop sending multiple email messages? are you using clear()? can you send the full code...?
[eluser]rossmurphy[/eluser]
Sorry about the delay. No its not a loop, just a single email being sent. I'm not using clear(). Here is the method:
Code: function retrieve_password()
{
$data['page_title'] = $this->page_title;
$api_call = $this->dogetplayerpassword->index();
$this->response = $api_call["xml"];
$this->error = $api_call["error"];
if (empty($this->error))
{
$email_data["alias"] = 'tester';
$email_data["password"] = $this->response->row['password'];
$email_data["site_name"] = $this->config->item('site_name');
$email_data["support_email"] = $this->config->item('support_email');
$this->email->from($this->config->item('support_email'), $this->config->item('support_name'));
$this->email->to($this->input->post('email'));
$this->email->subject('Test subject');
$message = $this->parser->parse('email-templates/'.$this->config->item('language').'/forgot_password_template.txt', $email_data, TRUE);
$this->email->message($message);
if ($this->email->send())
{
$this->info = 'msg.forgot.password.success';
}
else
{
$this->error = 'email.fail.send';
log_message('error', 'Email failed to send (password recovery).');
}
$this->email->print_debugger();
} else {
$this->session->set_flashdata('error', $this->error);
redirect('members/forgotpassword');
}
$this->load->view('templates/header', $data);
$this->load->view('templates/public_menutop');
$this->load->view('templates/displaymsgs');
$this->load->view('templates/footer');
}
Here is the debug info:
Quote:Your message has been successfully sent using the following protocol: mail
User-Agent: CodeIgniter
Date: Wed, 13 Jan 2010 20:48:31 -0500
From: "Parlay Support"
Return-Path:
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="B_ALT_4b4e77efa463e"
This is a multi-part message in MIME format.
Your email application may not support this format.
--B_ALT_4b4e77efa463e
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Default Lobby | Forgot Password Notification
Dear, ross!
You recently went through the password recovery process at Default Lobby.
The recovery was successful.
Your password is: password
If you feel you are receiving this email in error, please contact
[email protected].
Click here to go to the login page.
All the best,
Default Lobby Team.
--B_ALT_4b4e77efa463e
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
=?utf-8?Q?Test_subject?=
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8" />
<title>Default Lobby | Forgot Password Notification</title>
</head>
<body style=3D"background-color:#f7f7f7;">
<div style=3D"border:5px solid #ffffff; width:642px; background-color:#ffff=
ff;">
<div style=3D"height:16px; padding:6px 4px 4px 8px; color:#016599; font-fam=
ily:Arial, Sans-serif; width:630px; font-size:11px; font-weight:bold; backg=
round-color:#e3f4f8;">
Default Lobby | Forgot Password Notification
</div>
<div style=3D"border:1px solid #e3f4f8; background-color:#ffffff; padding:=
20px; font-family:Arial, Sans-serif; font-size:13px; width:600px;">
<p style=3D"padding:0; margin:0;">
<span style=3D"font-size:19px;">Dear, ross!</span>
<br /><br />
You recently went through the password recovery process at Default Lobby=
. The recovery was successful.
<br /><br />
<div style=3D"width:98%; height:23px; padding:8px 0 4px 2%; background-c=
olor:#f6f6f6; border:1px solid #eeeeee; border-width:1px 1px 4px 1px; margi=
n:12px 0;">
<span style=3D"font-weight:bold;">Your password is:</span> password
</div>
If you feel you are receiving this email in error, please contact suppor=
[email protected].
<br /><br />=09
<div style=3D"width:98%; height:23px; padding:8px 0 4px 2%; background-c=
olor:#f6f6f6; border-top:1px solid #eeeeee; border-bottom:1px solid #eeeeee=
; margin:12px 0;">
<a >Click here</a>=
to go to the login page.<br />
</div>
<br /><br />
All the best,
<br /><br />
<span style=3D"font-weight:bold;">Default Lobby Team.</span>
</p>
</div>
</div>
</body>
</html>
--B_ALT_4b4e77efa463e--
[eluser]rossmurphy[/eluser]
Here is the email template im sending.
Code: <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{site_name} | Forgot Password Notification</title>
</head>
<body style="background-color:#f7f7f7;">
<div style="border:5px solid #ffffff; width:642px; background-color:#ffffff;">
<div style="height:16px; padding:6px 4px 4px 8px; color:#016599; font-family:Arial, Sans-serif; width:630px; font-size:11px; font-weight:bold; background-color:#e3f4f8;">
{site_name} | Forgot Password Notification
</div>
<div style="border:1px solid #e3f4f8; background-color:#ffffff; padding:20px; font-family:Arial, Sans-serif; font-size:13px; width:600px;">
<p style="padding:0; margin:0;">
<span style="font-size:19px;">Dear, {alias}!</span>
<br /><br />
You recently went through the password recovery process at {site_name}. The recovery was successful.
<br /><br />
<div style="width:98%; height:23px; padding:8px 0 4px 2%; background-color:#f6f6f6; border:1px solid #eeeeee; border-width:1px 1px 4px 1px; margin:12px 0;">
<span style="font-weight:bold;">Your password is:</span> {password}
</div>
If you feel you are receiving this email in error, please contact {support_email}.
<br /><br />
<div style="width:98%; height:23px; padding:8px 0 4px 2%; background-color:#f6f6f6; border-top:1px solid #eeeeee; border-bottom:1px solid #eeeeee; margin:12px 0;">
<a style="text-decoration:none;" href="{egift_link}">Click here</a> to go to the login page.<br />
</div>
<br /><br />
All the best,
<br /><br />
<span style="font-weight:bold;">{site_name} Team.</span>
</p>
</div>
</div>
</body>
</html>
|