Author Topic: Customize pop3 port of Email  (Read 6694 times)

athicom

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
Customize pop3 port of Email
« on: December 01, 2008, 09:14:35 am »
[database]

- add Field:pop3_port ที่ Table:og_mail_accounts


[coding]

(\application\)

(models\mail_accounts\base\)
- edit File:BaseMailAccounts.class.php add line 25 with
'pop3_port' => DATA_TYPE_STRING,
- edit File:BaseMailAccount.class.php add function
function:getPop3Port
function:setPop3Port

(views\)
- edit File:add_account.php (mail) add
<div>
<label for="mailPop3Port"><?php echo lang('pop3 port')?> <span class="label_required">*</span>
<span class="desc"><?php echo lang('mail account pop3 port description') ?></span></label>
<?php echo text_field('mailAccount[pop3_port]', array_var($mailAccount_data, 'pop3_port',110),
array('id' => 'mailPop3Port', 'tabindex'=>'6')) ?>
</div>

replace tabindex +1 for next field

(controllers\)
- edit File:MailController.class.php at function:edit_account add
'pop3_port' => $mailAccount->getPop3Port(),

(\environment\classes\mail\)
- edit File:MailUtilities.class.php at function:getNewPOP3Mails replace from
$pop3->connect ($account->getServer());
 to
$pop3->connect ($account->getServer(), (int)$account->getPop3Port());

(\language\)
- edit File:emails.php ที่ \language add line
'pop3 server' => 'POP3 Server',
'pop3 port' => 'POP3 Server Port',
'mail account pop3 port description' => ' This is the port in which the server listens to the POP3 Service. The default and most common value is 110.',