Hello
I'm using ChronoForms with Joomla 1.0 and it is correctly sending mails (thanks to the Forum! :-) )
But I have this problem:
I have one field defined as email and the form contents should also be sent to this adress. This works fine if there is a mail adress in this field but if it is empty or it isn't a valid email adress the form is not sent at all.
I know I can make this field required, but some of the users dont have an email adress, so they should be able to leave it empty...
Any easy way of solving this?
Thanks in advance!
Svend
I'm using ChronoForms with Joomla 1.0 and it is correctly sending mails (thanks to the Forum! :-) )
But I have this problem:
I have one field defined as email and the form contents should also be sent to this adress. This works fine if there is a mail adress in this field but if it is empty or it isn't a valid email adress the form is not sent at all.
I know I can make this field required, but some of the users dont have an email adress, so they should be able to leave it empty...
Any easy way of solving this?
Thanks in advance!
Svend
yes
Hi Svend,
how do you make it sending to this field at the moment ? you use a dynamic TO ? is this Dynamic To at the same email with the other TO field which has your admin address ? if yes then remove it and create a new email for the dynamic TO only with the other main fields! so if its empty the 2nd email only fails!
Regards
Max
how do you make it sending to this field at the moment ? you use a dynamic TO ? is this Dynamic To at the same email with the other TO field which has your admin address ? if yes then remove it and create a new email for the dynamic TO only with the other main fields! so if its empty the 2nd email only fails!
Regards
Max
Hello and thanks for the replies
Yes I use Joomla 1.0
In my form there is a field called "kl_mail" where the visitor can enter his/hers email Adress. The form results should be mailed to an administrator and to the person that has filled out the form.
So on the Special Field tab I have set the E mail field = kl_mail
All this works IF kl_mail contains a valid e-mail Adress. Perfectly!
But if the field kl_mail is left empty or the e-mail doesnt validate, the mail is not sent to ANY of the adresses. The administrator doesnt get it either.
One solution would be to declare the kl_mail field required and validate is as email, but the problem is that some visitors do not have and email address and should still be able to fill out the field.
Is there any easy way to make it ignore an empty or malformed kl_mail field, but to send it if there is a valid mail?
Thanks!
Svend
Yes I use Joomla 1.0
In my form there is a field called "kl_mail" where the visitor can enter his/hers email Adress. The form results should be mailed to an administrator and to the person that has filled out the form.
So on the Special Field tab I have set the E mail field = kl_mail
All this works IF kl_mail contains a valid e-mail Adress. Perfectly!
But if the field kl_mail is left empty or the e-mail doesnt validate, the mail is not sent to ANY of the adresses. The administrator doesnt get it either.
One solution would be to declare the kl_mail field required and validate is as email, but the problem is that some visitors do not have and email address and should still be able to fill out the field.
Is there any easy way to make it ignore an empty or malformed kl_mail field, but to send it if there is a valid mail?
Thanks!
Svend
Hi,
Oh, missed this!😀 thanks Bob!
Svend, try to add this code in the onsubmit before email :
Regards
Max
Oh, missed this!😀 thanks Bob!
Svend, try to add this code in the onsubmit before email :
<?php
if(!$_POST['kl_mail'])$_POST['kl_mail'] = "noreply@yourdomain.com";
?>
Regards
Max
Excellent, will try it out.
Big Thanks!
Big Thanks!
This topic is locked and no more replies can be posted.