Forums

File Upload Mailer Error: Could not instantiate mail function. Yes again...

hennysmafter 24 Jun, 2016
The amount of times this question is asked makes you think that there is just not enough documentation on this function.

So I have setup a form with 4 file upload fields. The form works brilliantly when I remove the event `file upload`. It sends the form to all the recipients.
The debugger is showing no errors. With the event `file upload` activated I get this error. I read every single post about it changed at least 20x times the default joomla email address(global config) and the chronoform email settings but no email is going out.

So what fields should we fill in minimally to just test that it sends it to 1 email address. Which fields should be exactly the same? I might sound a bit irritated but I just spend the better part of two hours going through the forum to be exactly at the same spot as when I started.

My settings:
Global Configuration: Server: Email Address= support@hennysmafter.eu
Global Configuration: Server: Email Name= Support HennySmafter.eu

Designer Form Upload Field Names
gta5launcher
uploadscripthookvdotnetlog
uploadscripthooklog
uploadasiloaderlog

Setup: On Submit: File Upload: Files Config
gta5launcher:jpg-png-gif
uploadscripthookvdotnetlog:log
uploadscripthooklog:log
uploadasiloaderlog:log

Setup: On Submit: Email (is placed below file upload)
To: teamcore@hennysmafter.eu
From: support@hennysmafter.eu
Attachment Files: gta5launcher,uploadscripthookvdotnetlog,uploadscripthooklog,uploadasiloaderlog
Dynamic reply to email: emailaddress
Dynamic from name: username

Thanks anyone for helping.
hennysmafter 25 Jun, 2016
Answer
So I figured it out it was a server side problem. Basically some safeguards where activated and it happened exactly at the first time testing the upload feature. Therefore me thinking it has something to do with Chronoforms Upload File. But also found out that I need to add a few lines to the server logs that show this security. So all by all a good night ;-)

Still thinking it would be a good idea to make one perfect tutorial for this.
GreyHead 25 Jun, 2016
Hi HennySmefter,

Glad you found the solution.

A Debugger action can help you track down things like this, you can add them at different locations in the events to see what is happening.

To test emails, create a form with just a submit button in the Setup tab; an HTML (render form) action in the On Load event and an Email action followed by a Debugger action in the On Submit event.

In the Email action:
+ add a valid email address in the To box - one that is not linked to this site.
+ add the address from the site Email settings to the From Email address box
+ add some text in the Subject and and From Name boxes (it doesn't matter what as long as they are not empty).

Test

Bob
This topic is locked and no more replies can be posted.