Forum

Thread tagged as: Question, Problem

How can I set an email address on which I can receive the feedback on?

Hi,

I have been working for a website in which I have defined SMTP configuration in config file.

the functionality is suppose to be, when an user submits the feedback form, the feedback was sent to the email address I've set in SMTP configuration at the same time the user receives a "Thank You" email from the same email address. But now I want to received the feedback to some other email Id, but the "Thank You" email should still be sent from the same previous (SMTP configured) email address.

Can you please help on this one?

Find the config file details:

<?php
    define('PERCH_LICENSE_KEY', '    ');

    define("PERCH_DB_USERNAME", '      ');
    define("PERCH_DB_PASSWORD", '    ');
    define("PERCH_DB_SERVER", "localhost");
    define("PERCH_DB_DATABASE", "     ");
    define("PERCH_DB_PREFIX", "perch2_");

    define('PERCH_TZ', '    ');

    define('PERCH_EMAIL_FROM', 'support@xyz.com');
    define('PERCH_EMAIL_FROM_NAME', 'XYZ Support');

    define('PERCH_LOGINPATH', '/perch');
    define('PERCH_PATH', str_replace(DIRECTORY_SEPARATOR.'config', '', __DIR__));
    define('PERCH_CORE', PERCH_PATH.DIRECTORY_SEPARATOR.'core');

    define('PERCH_RESFILEPATH', PERCH_PATH . DIRECTORY_SEPARATOR . 'resources');
    define('PERCH_RESPATH', PERCH_LOGINPATH . '/resources');

    define('PERCH_HTML5', true);
    define('PERCH_EMAIL_METHOD', 'smtp');
    define('PERCH_EMAIL_HOST', 'smtp.gmail.com');
    define('PERCH_EMAIL_AUTH', true);
    define('PERCH_EMAIL_SECURE', 'ssl');
    define('PERCH_EMAIL_PORT', 465);
    define('PERCH_EMAIL_USERNAME', 'myprojectss007@gmail.com');
    define('PERCH_EMAIL_PASSWORD', 'dummypswd');
Damian McCracken

Damian McCracken 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you using the Forms app? If so you can configure the email address to use in the individual form's options.