• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem sending emails with smtp

#1
[eluser]kbkb[/eluser]
Having Problems sending an email..

This is what in my constructor:

Code:
$config['protocol']='smtp';
$config['smtp_host']='right host';
$config['smtp_timeout']='30';
$config['smtp_user']='right user';
$config['smtp_pass']='right pass';
$config['charset']='utf-8';
$config['newline']='\r\n';


    $this->email->initialize($config);


This is the way i try to send the email:
Code:
$this->email->from("{absenderemail}", "{absendername}");
      $this->email->to($this->input->post("email"));
      $this->email->subject("{emailsbuejct}");
      $this->email->message($emailtext);
      $this->email->send();


And this is the print_debugger-message:
Code:
{myprovider}ESMTP

hello: {myprovider}
250-STARTTLS
250-PIPELINING
250-8BITMIME
250-AUTH LOGIN PLAIN
250 SIZE 31457280

from: 250 ok

to: 250 ok

data: 354 go ahead

451 See http://pobox.com/~djb/docs/smtplf.html.
Der SMTP-Fehler 451 See http://pobox.com/~djb/docs/smtplf.html. ist aufgetreten
Die Nachricht konnte nicht über die PHP SMTP versandt werden. Der Server muss möglicherweise so konfiguriert werden, dass er Mails mit dieser Funktion versenden kann.

User-Agent: CodeIgniter
Date: Wed, 2 Sep 2009 19:52:34 +0200
From: "{absendername}" <{absenderemail}>
Return-Path: <{absenderemail}>
To: {right addressee}
Subject: =?utf-8?Q?{emailsbuejct}?=
Reply-To: "{absenderemail}" <{absenderemail}>
X-Sender: {absenderemail}
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <4a9eb0e2efddb>
Mime-Version: 1.0


Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

lalatext


Sad

#2
[eluser]sophistry[/eluser]
you need double-quotes around your \r\n

"\r\n"

EDIT: i just noticed that the SMTP program also told you that:
http://pobox.com/~djb/docs/smtplf.html

#3
[eluser]kbkb[/eluser]
Cool Thank you very much. I copied it from an other forumpost here. Wonder why it works there..

Often its are the small nasty thinks what causes problems Smile


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.