Menu

smtp user autentication

Help
Ikaruz
2010-11-13
2013-05-01
  • Ikaruz

    Ikaruz - 2010-11-13

    Hi
    Just installed svnmanager but can't use it since our smtp server requeres autentication (user and password)
    Where we should put this info?

    thanks in advance

     
  • kcramakrishna

    kcramakrishna - 2011-01-05

    I need the same info. Our email is hosted with google and would like to know how to link it to google mail server.

     
  • Sam Likins

    Sam Likins - 2011-04-19

    If you need SMTP with username and password or a different port, a couple of modifications can be made.  For instance if you use Google Apps for you mail, the following will help you get started

    In the

    svnmanager/UserModule/
    

    directory InvitePage.php & InviteManagePage.php need modifications to add the needed configurations.  In both files, locate the following.

    $mail = new PHPMailer();
    $mail->From     = "svnmanager@$servername";
    $mail->FromName = "SVNManager";
    $mail->Host     = "$smtp_server";
    $mail->Mailer   = "smtp";
    

    Replace the code above with the code below

    $mail = new PHPMailer();
    $mail->From     = $smtp_from;
    $mail->FromName = $smtp_name;
    $mail->Host     = $smtp_server;
    $mail->Port     = $smtp_port;
    $mail->SMTPAuth = $smtp_auth;
    $mail->Username = $smtp_user;
    $mail->Password = $smtp_pass;
    $mail->Mailer   = "smtp";
    

    In your config.php file under

    $smtp_server
    

    ad the following

    $smtp_port              =   '587';
    $smtp_auth              =   true;
    $smtp_user              =   'admin@example.com';
    $smtp_pass              =   'Ic8nt';
    $smtp_from              =   'svnmanager@example.com';
    $smtp_name              =   'Example.com SVN Manager';
    

    You should now be set.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.