Welcome Guest, Not a member yet? Register   Sign In
SMTP with the Email Class and no AUTH
#1

[eluser]jeffpeck[/eluser]
We use an SMTP protocol that looks like this:

Code:
$connection = @fsockopen ($host, 25, $errno, $errstr, 1);
$res = @fgets($connection,256);

@fputs($connection, "HELO $mydomain\r\n");
$res = @fgets($connection,256);

@fputs($connection, "MAIL FROM: $from\r\n");
$res = @fgets($connection,256);

@fputs($connection, "RCPT TO: $to\r\n");
$res = @fgets($connection,256);

@fputs($connection, "DATA\r\n");
$res = @fgets($connection,256);

@fputs($connection, "To: $to\r\nFrom: $from\r\nSubject: $subject\r\n$headers\r\n\r\n$message\r\n.\r\n");
$res = @fgets($connection,256);

@fputs($connection,"QUIT\r\n");
$res = @fgets($connection,256);

This works.

However, I would like to use the Codeigniter Email Class. So I set it up using SMTP with our host name and no user or pass and... nothing. It seems to be timing out at (or after) the HELO phase according to $this->email->print_debugger();

I think it has something to do with there being no username or password. Would I have to manually change the SMPT Email Class to adjust for this or is there an option to make it skip the authentication? Has anybody else had a similar issue?

Thanks.


Messages In This Thread
SMTP with the Email Class and no AUTH - by El Forum - 11-17-2009, 11:43 AM
SMTP with the Email Class and no AUTH - by El Forum - 11-18-2009, 11:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB