Welcome Guest, Not a member yet? Register   Sign In
SMTP slowness
#1

[eluser]Phantom784[/eluser]
I'm trying to use the SMTP features of the Email library to send email from my website (through a gmail account). However, the page takes about five seconds to load whenever it sends email. I'm already sending email via SMTP on PHPBB on the same website, and there's no delay when an email is sent through there, so I'm wondering if there's some config setting or alternative library I could use to get rid of this delay.
#2

[eluser]bretticus[/eluser]
[quote author="Phantom784" date="1265100739"]I'm already sending email via SMTP on PHPBB on the same website, and there's no delay when an email is sent through there...[/quote]

Are you also using gmail settings for PHPBB?
#3

[eluser]Phantom784[/eluser]
Yes. Exact same settings for both.
#4

[eluser]bretticus[/eluser]
Have you tried printing out:

Code:
echo $this->email->print_debugger();

To see if CI email SMTP runs into any problems manifest by the transaction?
#5

[eluser]Phantom784[/eluser]
Here's the output from the debugger.
Code:
hello: 250-mx.google.com at your service, [97.107.(REMOVED).(REMOVED)]
250-SIZE 35651584
250-8BITMIME
250-AUTH LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250 PIPELINING

from: 250 2.1.0 OK 12sm1502368pxi.7

to: 250 2.1.5 OK 12sm1502368pxi.7

data: 354  Go ahead 12sm1502368pxi.7

250 2.0.0 OK 1265149731 12sm1502368pxi.7

quit: 221 2.0.0 closing connection 12sm1502368pxi.7

Your message has been successfully sent using the following protocol: smtp

From: "Penn State Urban Gaming Club"
Return-Path:
To: (REMOVED)@psu.edu
Subject: =?utf-8?Q?Email_Test?=
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: UGC
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0


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

SENDING MAIL!

Any ideas?




Theme © iAndrew 2016 - Forum software by © MyBB