Page 1 of 1

[SOLVED] cmsmailer username field too short for smtp username

Posted: Sun Jun 08, 2008 2:35 pm
by aspires
My host wants me to use my whole email address as the username for smtp authentication. It won't fit into the field provided.

I would like to know where I can change the input size of this field please. I have cruised carefully through the phpmailer files but not sure which file to check for this setting.

Thank you so much!

Andrea

Re: cmsmailer username field too short for smtp username

Posted: Sun Jun 08, 2008 2:51 pm
by calguy1000
Here's the solution.

Code: Select all

--- CMSMailer.module.php        (revision 20)
+++ CMSMailer.module.php        (working copy)
@@ -336,7 +336,7 @@
     $this->smarty->assign('input_username',
                          $this->CreateInputText( $id, 'input_username',
                                                  $this->GetPreference('username'),
-                                                 30, 30));
+                                                30, 255));

     $this->smarty->assign('prompt_password', $this->Lang('password'));
     $this->smarty->assign('info_password', $this->Lang('info_password'));

Re: cmsmailer username field too short for smtp username

Posted: Sun Jun 08, 2008 6:56 pm
by aspires
Thank you!