Forums

Problem with Special Fields

sruef 25 Aug, 2008
Hi there,
First: Thanks for the great work on your component. It's a great tool really.
Now, I have a problem and I haven't been able to find anything on the subject in the forum:

I have set up a contact form on a website with a field "your email address'. It's not mandatory to fill out the field.
The name of the field is 'Email'. On submit I want to send a copy of the mail to the value of 'Email'. So I put 'Email' into the special field 'Email field:'.
Of course there's a value in the general field 'Email Adress(es):' because I want the mail to be sent to that value no matter if the user has filled out the field "your email address".

What I get is mixed results. Sometimes the mails ARE being sent, sometimes they AREN'T. It all depends on whether the field "your email address" has been filled out or not. What am I doing wrong? How do I have to fill out the settings-section in order to have one email adress, which always receives the mail, and one email address which receives the mail when the corresponding field has been filled out?
Thanks for your help,
Sven
Max_admin 25 Aug, 2008
Hi sruef,

Are you new to Chronoforms ? if so then get V3.0 BETA 2 and this will solve the issue easily!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 25 Aug, 2008
Hi Sven,

If you turn on debug what shows in the To Email field when you don't have a user email submitted? I wonder if there is some default value in there - maybe just a space - that is causing a problem.

Bob
sruef 25 Aug, 2008
Hi GreyHead,
Here's What the Debugger says:

_POST: Array ( [Nachname] => test [Vorname] => test [Telefon] => test [Email] => [Anstellungsdauer] => test [Arbeitspensum] => test [Erreichbarkeit] => test [Anstellung] => Stundenlohn [Vertrag] => Ja [Problem] => test [Bestaetigung] => ja )
Case 1: Use table layout
E-mail: 'Yes' custom
Email not sent

There's no spacer in the variable Email, yet the e-mail is not being sent.
GreyHead 25 Aug, 2008
Hi Sven,

I see the 'Email not sent' message there which means that Joomla was unable to send it. What's in the dummy email block just after that message?

Bob
sruef 27 Aug, 2008
Hi GreyHead,
Thanks for taking the time.
Here's the full debug output:

_POST: Array ( [Nachname] => test [Vorname] => test [Telefon] => test [Email] => [Anstellungsdauer] => test [Arbeitspensum] => test [Erreichbarkeit] => test [Anstellung] => Stundenlohn [Vertrag] => Nein [Problem] => test [Bestaetigung] => ja )
Case 1: Use table layout
E-mail: 'Yes' custom
Email not sent
E-mail message

From: Ombudsstellen-Formular [info@test.ch]
To: [email]info@test.ch[/email],
Subject: <!-- w --><a class="postlink" href="http://www.test.ch">www.test.ch</a><!-- w --> - Ombudsstellen-Formular
Nachname test
Vorname test
Telefon test
Email
Anstellungsdauer test
Arbeitspensum test
Erreichbarkeit test
Anstellung Stundenlohn
Vertrag Nein
Problem test
Bestaetigung ja


Submitted by 212.101.9.144
GreyHead 27 Aug, 2008
Hi sruef,

I think that the problem is with the ', ' in the To email. There is a space in the html though I'm not sure where it comes from.

Are you using v3.0? I've just looked and the code there isn't quite a thorough in it's check as v 2.5 was.

Bob

PS You have the same email address in the Form & To fields. I don't think that Joomla checks this but some ISPs do. Please test with two different addresses.
sruef 27 Aug, 2008
Hi GreyHead,
I'm using version 2.3.2.
It seems I have to fiddle with the code for a while.
Cheers!
Sven
This topic is locked and no more replies can be posted.