Email from / to

Permalink Browser Info Environment
Hi... great add-on, thanks.

One thing... I want to change the email from: and to: - currently it's set up as super user ID I think so I'm getting the notifications to: my personal email and from: the same email account as I'm the admin. I want to change the email to: a different registered user or their email address and from: a different email address.

Is this possible? I've white labelled the default email but this doesn't seem to have an effect on this add-on. Thanks J

Type: Pre-Sale
Status: In Progress
WebOnTheWebb
View Replies:
jordanlev replied on at Permalink Reply
jordanlev
You'll need to modify the getAdminEmail() function in SITEROOT/packages/email_list_signup/blocks/email_list_signup/controller.php
WebOnTheWebb replied on at Permalink Reply
WebOnTheWebb
Hi... apologies for the delay. I think I can see where it is but I'm a PHP noob - where exactly would I put in custom email for FROM: and TO:?
Thanks J
jordanlev replied on at Permalink Reply
jordanlev
Edit that file on your server, and find the "getAdminEmail" function -- it should be around line #143, and it looks like this:
private function getAdminEmail() {
   $adminUserInfo=UserInfo::getByID(USER_SUPER_ID);
   $adminEmail = $adminUserInfo->getUserEmail();
   return $adminEmail;
}


What you can do is delete the 3 lines in between the "curly braces", and replace them with your email address, so it would look like this:
private function getAdminEmail() {
    return "youremailaddress@domain.com";
}


Good luck!

-Jordan
WebOnTheWebb replied on at Permalink Reply
WebOnTheWebb
Hi Jordan... seems to have worked! Thanks for your help!

concrete5 Environment Information

# concrete5 Version
5.6.3.1

# concrete5 Packages
Ecommerce Express (1.5.4), Email List Signup (1.5.5), Pro News (5.1.0), Slate Theme (1.5.3.1), The Void theme (1.0), Tweetcrete (1.7), YouTube Channel (1.3.19).

# concrete5 Overrides
languages/he_IL, languages/sv_SE, languages/pt_PT, languages/ru_RU, languages/ar, languages/de_DE, languages/tr_TR, languages/es_MX, languages/sl_SI, languages/el_GR, languages/vi_VN, languages/nl_NL, languages/es_PE, languages/da_DK, languages/fr_FR, languages/zh_TW, languages/cs_CZ, languages/it_IT, languages/fa_IR, languages/ja_JP, languages/es_AR, languages/sk_SK, languages/ro_RO, languages/es_ES, languages/nb_NO, languages/zh_CN, languages/fi_FI

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off

# Server Software
Apache/2.4.12

# Server API
cgi-fcgi

# PHP Version
5.4.43

# PHP Extensions
apc, bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 120
apc.max_file_size - 1M
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 64M
post_max_size - 48M
sql.safe_mode - Off
upload_max_filesize - 32M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 10000000
pcre.recursion_limit - 10000000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:39.0) Gecko/20100101 Firefox/39.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.