[SOLVED] cmsmailer username field too short for smtp username

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
aspires

[SOLVED] cmsmailer username field too short for smtp username

Post 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
Last edited by aspires on Sun Jun 08, 2008 6:57 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: cmsmailer username field too short for smtp username

Post 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'));
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
aspires

Re: cmsmailer username field too short for smtp username

Post by aspires »

Thank you!
Locked

Return to “CMSMS Core”