Hello there!
A quick question about a small issue I'm coming across:
I've got the form up and working, and if the email addresses that are entered in the General tab are just alphanumeric ([email]user@example.com[/email]) the email sends without an issue.
However, if I try to send to an email address that I have entered with an underscore in it ([email]user_name@example.com[/email]) it fails out every time.
And, the tricky part is using a field from the form (requesteremail) in the Special Fields part of the form, any email address submitted through that field will work, including the underscore'd addresses, so that much at least will work. But the second I add an underscore to an email address in the General tab, the emails stop going out. Verified with the Debugger.
Any thoughts?
A quick question about a small issue I'm coming across:
I've got the form up and working, and if the email addresses that are entered in the General tab are just alphanumeric ([email]user@example.com[/email]) the email sends without an issue.
However, if I try to send to an email address that I have entered with an underscore in it ([email]user_name@example.com[/email]) it fails out every time.
And, the tricky part is using a field from the form (requesteremail) in the Special Fields part of the form, any email address submitted through that field will work, including the underscore'd addresses, so that much at least will work. But the second I add an underscore to an email address in the General tab, the emails stop going out. Verified with the Debugger.
Any thoughts?
Hi Mongo97,
The most likely problem is with the Joomla mailer as that implements a check for valid email addresses. The code is in joomla.php in the include folder of your site. Look for this function:
If this doesn't fix it come back and we'll think again; I don't recall anything that ChronoForms does to discriminate against underscores.
Bob
The most likely problem is with the Joomla mailer as that implements a check for valid email addresses. The code is in joomla.php in the include folder of your site. Look for this function:
/**
* Checks if a given string is a valid email address
*
* @param string $email String to check for a valid email address
* @return boolean
*/
function JosIsValidEmail( $email ) {
$valid = preg_match( '/^[\w\.\-]+@\w+[\w\.\-]*?\.\w{1,4}$/', $email );
return $valid;
}
Normally this should accept emails with '_' as the \w group includes all alphanumerics plus the underscore character - but in some implementations it may not. You could specifically add the underscore and see if that makes the difference, this will specifically allow$valid = preg_match( '/^[\w\.\-\_]+@\w+[\w\.\-]*?\.\w{1,4}$/', $email );
underscore in the user name part.
If this doesn't fix it come back and we'll think again; I don't recall anything that ChronoForms does to discriminate against underscores.
Bob
After some digging, the short answer is that the issue is somewhere between dueling corporate mail servers.
It took some bouncing around, but eventually I started getting mailer daemon messages back from one of the hops the email was taking, which solidified that Chronoforms and Joomla are sending out A-OK.
Thanks for the quick and informative answer, though. While it wasn't the answer to this issue, the info is now tacked to the wall near the mail server config info.
It took some bouncing around, but eventually I started getting mailer daemon messages back from one of the hops the email was taking, which solidified that Chronoforms and Joomla are sending out A-OK.
Thanks for the quick and informative answer, though. While it wasn't the answer to this issue, the info is now tacked to the wall near the mail server config info.
This topic is locked and no more replies can be posted.