Welcome Email for Reseller

  • After installing the latest master i did changed at first the profile of the administrator.
    So i added an email to the profile too.
    Now i created a reseller. This works but the email was sended with the emailaddress


    I have a MX Spam Filter an the email was dropped by "sender dos not exist".
    Just an idea... Is it possible to send the email with the emailaddress of the administrator if it exist? Otherwise send the email with the emailaddress above.


    The welcome emails for the customers were send with the emailaddress of the reseller.


    Sascha

    Edited once, last by TheCry ().


  • Hello ;


    I'll fix.


    Thank you for your report.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Edit;


    For master (panel) we have in order:


    • webmaster@{BASE_SERVER_VHOST} set as sender in the PHP sendmail_path parameter
    • {DEFAULT_ADMIN_ADDRESS} set as email for the ServerAdmin directive of the vhost
    • The email address that admin can set via it profile


    So we must send the mail by using sender in the following order:


    [code=php]
    ...
    if($adminProfileEmail != '') {
    $senderEmail = $adminProfileEmail
    } elseif($cfg->DEFAULT_ADMIN_ADDRESS != '') {
    $senderEmail = $cfg->DEFAULT_ADMIN_ADDRESS;
    } else {
    $senderEmail = 'webmaster@' . $cfg->BASE_SERVER_VHOST;
    }
    ...
    [/php]


    It's that you want?


    Note: More check will be done on sender email of course.


    Thanks

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().


  • Thats ok for me..
    Btw.. The variable {DEFAULT_ADMIN_ADDRESS} is available at the moment, or will you add it?


    Re;


    This variable is available. It contain the admin email entered during setup. See the /etc/imscp/imscp.conf file.


    Thank you for your report.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Re;


    Since several change are needed to fix the issue described here, I prefer do that for RC3. Here, you are talking about message for reseller but the mail function is used in several place in i-MSCP. I'll review all that for RC3.


    Thanks you.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206