Hardcoded Mail-Adress
EgonO - September 1, 2008 - 19:01
| Project: | Buddylist2 |
| Version: | 5.x-1.0-beta2 |
| Component: | Buddy API Invite |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
in buddy_api_invite.module at line 125 is a hard coded-mail-adress:
'from' => 'dominik.kiss@gmx.at',should be the token [userB:mail] or something like the global-mail-adress of the page

#1
I have manually edited that line of code, but my users are still getting the same email address in user acceptance messages, so there may be another step (in the database?) that will need to be taken by current users of the module to clean it out.
#2
I finally got that pesky hardcoded email address out of a site I am working on. You have to:
1) replace it in the code with something else
2) disable workflow-ng and workflow-ng ui
3) uninstall workflow-ng
4) re-install workflow-ng
The data for the workflow-ng configuration is not stored plain text so I could not just manually edit the configuration in the database to remove the bad address.
#3
I found an easier workaround to do this without touching the code:
This will override the workflow configuration defined in the buddy_api_invite.module code, and use the Site's email address as defined in admin/settings/site-information as the From address for this email.
This is a bug, though, and the code does need to be changed. If I get time I'll roll a patch and post it here.