CMS MADE SIMPLE FORGE

FrontendUser Mailer

 

[#5331] Can't send mail

avatar
Created By: Joost de Bruijn (joostdebruijn)
Date Submitted: Mon Aug 23 13:57:16 -0400 2010

Assigned To: Georg Busch (nan)
Version: FEU Mailer 0.9.3
CMSMS Version: None
Severity: Critical
Resolution: Fixed
State: Closed
Summary:
Can't send mail
Detailed Description:
When I want to send an e-mail with the FEUmailer-module, the mail won't send.
After the warning 'Do you really want to send...' there happens nothing.

I use CMSMS 1.8.2 and FEU 1.12.


History

Comments
avatar
Date: 2010-08-25 05:13
Posted By: Square (square)

Same problem for me. Is there a link with this update o f CMSMS from 1.8 to
1.8.2?

Mails were sent with 1.8

Conf :

CMSMS 1.8.2 

CMSMailer

2.0

FrontEndUsers

1.12

CGExtensions

1.19.2

CGSimpleSmarty

1.4.5

NMS

2.3.2

AjaxMadeSimple

0.3.1

FEUMailer

0.9

      
avatar
Date: 2010-08-25 10:39
Posted By: Joost de Bruijn (joostdebruijn)

Yes, I think so, The possibility to send mail was broken after I updated the CMS
from 1.8.1 to 1.8.2.
      
avatar
Date: 2010-08-27 05:02
Posted By: Joost de Bruijn (joostdebruijn)

IE gave this warning (in Dutch, with translation between the brackets):
Bericht (Message): 'document.getElementById(...)' is leeg of geen object (is
empty or no object)
Regel: 123 (Line)
Teken: 8 (Letter)
Code: 0
URI:
http://www.mywebsite.nl/admin/moduleinterface.php?mact=FEUMailer,m1_,newMail,0&sp_=2be2f113
      
avatar
Date: 2010-08-27 09:23
Posted By: Georg Busch (nan)

This is beacuse something changed in CMSms module API.
All input fields get an id that consists of its name and a module id (last one
is new). So the javascript of FEUMailer does not find the hidden input field
"submit_form" since it now has the id "m1_submit_form".
The additional text that is added to the hidden input field (id="submit_form")
is just ignored now :(

But it is easy to fix.

Open the files FEUMailer/templates/newMail.tpl and
FEUMailer/templates/editMail.tpl.

Search for 

"document.getElementById("submit_form")"

(Line 56 in newMail.tpl; line 88 in editMail.tpl)

replace it by 

"document.getElementById("{/literal}{$id}{literal}submit_form")"

(without the leading and ending quotes)

This should be all.
Plaese tell me if this works for you.
      
avatar
Date: 2010-08-27 09:39
Posted By: Georg Busch (nan)

is fixed in SVN
      
avatar
Date: 2010-08-27 13:12
Posted By: Joost de Bruijn (joostdebruijn)

It works! Great job! Now I'm going to finish de Dutch translation for FEUMailer.

Thanks!
      
avatar
Date: 2010-09-04 04:55
Posted By: Square (square)

Thank you for the fix. I haven't tested yet be I will this afternoon.
      
avatar
Date: 2011-05-18 14:56
Posted By: Georg Busch (nan)

Version 0.9.4 is out.
      
Updates

Updated: 2011-05-18 14:56
state: Open => Closed

Updated: 2010-08-27 14:21
resolution_id: 10 => 7

Updated: 2010-08-27 09:23
resolution_id: 5 => 10

Updated: 2010-08-25 10:39
resolution_id: => 5
assigned_to_id: 100 => 3991