0 Replies - 1131 Views - Last Post: 07 October 2012 - 11:08 AM

#1 januaryllc  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 07-October 12

Problem with mail server on Godaddy

Posted 07 October 2012 - 11:08 AM

Here is my issue I am a total retard when it comes to any type of web design. I had a script installed by Titan Classifieds on my Godaddy server - but for some reason when some attempts to register to my site I get an error code (see below). Basically there is a problem with mail server and how code is written..I have tried on several instances to get Titan tech support to fix, but they cannot figure it out and suggested I go to another host..this is not an option as Godaddy will not refund my years worth of hosting money. Any help would be greatly appreciated...as titan tech support is not helping my much at all even after making pay extra to fix it.

This is my code for the mail server:
[code]
'mail' => array(
'class' => 'application.modules.Core.extensions.vendors.mail.YiiMail',
'transportType' => 'smtp',
'transportOptions' => array(
'host'=>'smtp.gmail.com',
'username'=>'txclicks@gmail.com',
'password'=>'password',
'port'=>465,
'encryption'=>'ssl',
),
'logging' => true,
'dryRun' => false
[code]


This is the full error message i receive when someone tries to register on the site:



PHP Error
fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to smtpout.secureserver.net:25 (Connection refused)
/home/content/30/9878530/html/protected/modules/Core/extensions/vendors/mail/vendors/swiftMailer/classes/Swift/Transport/StreamBuffer.php(233)
221 private
function _establishSocketConnection()
222 {
223 $host = $this->_params['host'];
224 if (!empty($this->_params['protocol']))
225 {
226 $host = $this->_params['protocol'] . '://' . $host;
227 }
228 $timeout = 15;
229 if (!empty($this->_params['timeout']))
230 {
231 $timeout = $this->_params['timeout'];
232 }
233 if (!$this->_stream = fsockopen($host, $this->_params['port'], $errno, $errstr, $timeout))
234 {
235 throw new Swift_TransportException(
236 'Connection could not be established with host ' . $this->_params['host'] .
237 ' [' . $errstr . ' #' . $errno . ']'
238 );
239 }
240 if (!empty($this->_params['blocking']))
241 {
242 stream_set_blocking($this->_stream, 1);
243 }
244 else
245 {
Stack Trace
#0 unknown(0): CApplication->handleError(2, "fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>...", "/home/content/30/9878530/html/protected/modules/Core/extensions/...", 233, ...)
#1 +

/home/content/30/9878530/html/protected/modules/Core/extensions/vendors/mail/vendors/swiftMailer/classes/Swift/Transport/StreamBuffer.php(233): fsockopen("smtpout.secureserver.net", 25, 0, "", ...)
228
$timeout = 15;
229 if (!empty($this->_params['timeout']))
230 {
231 $timeout = $this->_params['timeout'];
232 }
233 if (!$this->_stream = fsockopen($host, $this->_params['port'], $errno, $errstr, $timeout))
234 {
235 throw new Swift_TransportException(
236 'Connection could not be established with host ' . $this->_params['host'] .
237 ' [' . $errstr . ' #' . $errno . ']'
238 );

#2 +

/home/content/30/9878530/html/protected/modules/Core/extensions/vendors/mail/vendors/swiftMailer/classes/Swift/Transport/StreamBuffer.php(70): Swift_Transport_StreamBuffer->_establishSocketConnection()
65 case self::TYPE_PROCESS:
66 $this->_establishProcessConnection();
67 break;
68 case self::TYPE_SOCKET:
69 default:
70 $this->_establishSocketConnection();
71 break;
72 }
73 }
74
75 /**

#3 +

/home/content/30/9878530/html/protected/modules/Core/extensions/vendors/mail/vendors/swiftMailer/classes/Swift/Transport/AbstractSmtpTransport.php(101): Swift_Transport_StreamBuffer->initialize(array("protocol" => null, "host" => "smtpout.secureserver.net", "port" => 25, "timeout" => 30, ...))
096 }
097 }
098
099 try
100 {
101 $this->_buffer->initialize($this->_getBufferParams());
102 }
103 catch (Swift_TransportException $e)
104 {
105 $this->_throwException($e);
106 }

#4 +

/home/content/30/9878530/html/protected/modules/Core/extensions/vendors/mail/vendors/swiftMailer/classes/Swift/Mailer.php(74): Swift_Transport_AbstractSmtpTransport->start()
69 {
70 $failedRecipients = (array) $failedRecipients;
71
72 if (!$this->_transport->isStarted())
73 {
74 $this->_transport->start();
75 }
76
77 return $this->_transport->send($message, $failedRecipients);
78 }
79

#5 +

/home/content/30/9878530/html/protected/modules/Core/extensions/vendors/mail/YiiMail.php(133): Swift_Mailer->send(Swift_Message, array())
128 * @see batchSend()
129 */
130 public function send(YiiMailMessage $message, &$failedRecipients = null) {
131 if ($this->logging===true) self::log($message);
132 if ($this->dryRun===true) return count($message->to);
133 else return $this->getMailer()->send($message->message, $failedRecipients);
134 }
135
136 /**
137 * Send the given {@link YiiMailMessage} to all recipients individually.
138 *

#6 +

/home/content/30/9878530/html/protected/modules/User/services/UserService.php(311): YiiMail->send(YiiMailMessage)
306 'site_name'=>Settings::SITE_NAME,
307 'login_page_url'=>Yii::app()->createAbsoluteUrl('/site/login'),
308 'site_url'=>baseUrl(),
309 'user_password'=>$passwordForSendEmail,
310 ), 'text/html');
311 if (!Yii::app()->mail->send($messageObj))
312 $this->result->fail('SEND_MAIL_FAILED', Yii::t('Ads/Ads','Registration Email was sent failed!'));
313 } else
314 $this->result->fail(ERROR_HANDLING_DB, Yii::t('User.User','Error while saving submitted data into database.'));
315 return $this->result;
316 }

#7 +

/home/content/30/9878530/html/protected/modules/Core/extensions/base/FSM.php(106): UserService->registerInFrontEnd(array("User" => array("email" => "januaryllc@yahoo.com", "first_name" => "Russell", "last_name" => "January", "verifyCode" => "fegacjc"), "btnRegister" => "Register"))
101 return $result;
102 }
103 //Run the service
104 try {
105 $service->init();
106 $service->$method($data);
107 $serviceResult = $service->result;
108 } catch (FException $ex) {
109 FErrorHandler::logError($ex->getMessage());
110 return null;
111 }

#8 +

/home/content/30/9878530/html/protected/modules/Core/extensions/base/FSM.php(133): FSM::_run("User.User.registerInFrontEnd", array("User" => array("email" => "januaryllc@yahoo.com", "first_name" => "Russell", "last_name" => "January", "verifyCode" => "fegacjc"), "btnRegister" => "Register"), false)
128 * @param string $serviceId in format Module.ServiceClass.method
129 * @param array $data
130 * @return FServiceModel
131 */
132 public static function run($serviceId, $data = array()){
133 return self::_run($serviceId, $data, FALSE);
134 }
135
136 public static function isExecutable($serviceId, &$data) {
137 $executable = false;
138

#9 +

/home/content/30/9878530/html/protected/controllers/SiteController.php(139): FSM::run("User.User.registerInFrontEnd", array("User" => array("email" => "januaryllc@yahoo.com", "first_name" => "Russell", "last_name" => "January", "verifyCode" => "fegacjc"), "btnRegister" => "Register"))
134 }
135 $registerSuccessfully = FALSE;
136 $user = new User('register_frontend');
137 if (Yii::app()->request->IsPostRequest)
138 {
139 $result = FSM::run('User.User.registerInFrontEnd', $_POST);
140 if (! $result->hasErrors()) {
141 $registerSuccessfully = TRUE;
142 }
143 else
144 $user = $result->model;

#10 +

/home/content/30/9878530/html/yii-1.1.7.r3135/framework/web/actions/CInlineAction.php(50): SiteController->actionRegister()
45 $controller=$this->getController();
46 $method=new ReflectionMethod($controller, $methodName);
47 if($method->getNumberOfParameters()>0)
48 return $this->runWithParamsInternal($controller, $method, $params);
49 else
50 return $controller->$methodName();
51 }
52
53 }

#11 +

/home/content/30/9878530/html/yii-1.1.7.r3135/framework/web/CController.php(300): CInlineAction->runWithParams(array())
295 {
296 $priorAction=$this->_action;
297 $this->_action=$action;
298 if($this->beforeAction($action))
299 {
300 if($action->runWithParams($this->getActionParams())===false)
301 $this->invalidActionParams($action);
302 else
303 $this->afterAction($action);
304 }
305 $this->_action=$priorAction;

#12 +

/home/content/30/9878530/html/yii-1.1.7.r3135/framework/web/CController.php(278): CController->runAction(CInlineAction)
273 * @see runAction
274 */
275 public function runActionWithFilters($action,$filters)
276 {
277 if(empty($filters))
278 $this->runAction($action);
279 else
280 {
281 $priorAction=$this->_action;
282 $this->_action=$action;
283 CFilterChain::create($this,$action,$filters)->run();

#13 +

/home/content/30/9878530/html/yii-1.1.7.r3135/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array())
252 {
253 if(($parent=$this->getModule())===null)
254 $parent=Yii::app();
255 if($parent->beforeControllerAction($this,$action))
256 {
257 $this->runActionWithFilters($action,$this->filters());
258 $parent->afterControllerAction($this,$action);
259 }
260 }
261 else
262 $this->missingAction($actionID);

#14 +

/home/content/30/9878530/html/yii-1.1.7.r3135/framework/web/CWebApplication.php(328): CController->run("register")
323 {
324 list($controller,$actionID)=$ca;
325 $oldController=$this->_controller;
326 $this->_controller=$controller;
327 $controller->init();
328 $controller->run($actionID);
329 $this->_controller=$oldController;
330 }
331 else
332 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
333 array('{route}'=>$route===''?$this->defaultController:$route)));

#15 +

/home/content/30/9878530/html/yii-1.1.7.r3135/framework/web/CWebApplication.php(121): CWebApplication->runController("site/register")
116 foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
117 $_GET[$name]=$value;
118 }
119 else
120 $route=$this->getUrlManager()->parseUrl($this->getRequest());
121 $this->runController($route);
122 }
123
124 /**
125 * Registers the core application components.
126 * This method overrides the parent implementation by registering additional core components.

#16 +

/home/content/30/9878530/html/yii-1.1.7.r3135/framework/base/CApplication.php(155): CWebApplication->processRequest()
150 */
151 public function run()
152 {
153 if($this->hasEventHandler('onbeginRequest'))
154 $this->onbeginRequest(new CEvent($this));
155 $this->processRequest();
156 if($this->hasEventHandler('onendRequest'))
157 $this->onendRequest(new CEvent($this));
158 }
159
160 /**

#17 +

/home/content/30/9878530/html/index.php(42): CApplication->run()

Is This A Good Question/Topic? 0
  • +

Page 1 of 1