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
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

ablondeau - February 21, 2009 - 01:04

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

ablondeau - February 21, 2009 - 15:54

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

laken - April 1, 2009 - 18:10

I found an easier workaround to do this without touching the code:

  1. Go to admin/workflow-ng/configurations
  2. Click on item "[MAIL] UserA gets mail when userB joins the page (after invite)"
  3. Under Actions, click "Send a mail to a user"
  4. In that form, in the Sender: field, replace "dominik.kiss@gmx.at" with "[userA:site-mail]" (no quotes
  5. Click Submit

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.

 
 

Drupal is a registered trademark of Dries Buytaert.