Welcome Guest, Not a member yet? Register   Sign In
SMTP server response: not RFC-compliant (Fixed)
#1

[eluser]R. de Veen[/eluser]
In the controller:
Code:
$tobj =& get_instance();
$tobj->load->library('email');
$tobj->email->clear();
$tobj->email->from("[email protected]");
$tobj->email->to("[email protected]");
$tobj->email->subject("subject");
$tobj->email->message("message");
$tobj->email->send();
I get this error:
Code:
A PHP Error was encountered

Severity: Warning

Message: mail() [function.mail]: SMTP server response: 554 5.7.1 Sender address format `<<[email protected]>>' not RFC-compliant

Filename: libraries/Email.php

Line Number: 1232
I change this in 'system/libraries/Email.php':
Code:
L 176: $this->_set_header('From', $name.' <'.$from.'>');
L 177: $this->_set_header('Return-Path', '<'.$from.'>');
To
Code:
L 176: $this->_set_header('From', $name.' '.$from);
L 177: $this->_set_header('Return-Path', $from);
But that doesn't solve the problem when i use this:
Code:
$tobj->email->from("[email protected]", "name");
Error:
Code:
Message: mail() [function.mail]: SMTP server response: 554 5.7.1 Sender address format `<"name" <[email protected]>>' not RFC-compliant

Is this a bug or am i doing something wrong?


Messages In This Thread
SMTP server response: not RFC-compliant (Fixed) - by El Forum - 07-09-2007, 04:48 AM
SMTP server response: not RFC-compliant (Fixed) - by El Forum - 07-09-2007, 03:36 PM
SMTP server response: not RFC-compliant (Fixed) - by El Forum - 07-10-2007, 01:08 AM
SMTP server response: not RFC-compliant (Fixed) - by El Forum - 07-10-2007, 07:56 AM
SMTP server response: not RFC-compliant (Fixed) - by El Forum - 07-10-2007, 08:49 AM
SMTP server response: not RFC-compliant (Fixed) - by El Forum - 07-10-2007, 09:21 AM
SMTP server response: not RFC-compliant (Fixed) - by El Forum - 07-10-2007, 09:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB