Mailer
Mail from SMTP Server
From Name [email]form@xxx.com[/email]
Sendmail Path mymail.xxx.com
SMTP Authentication Yes
SMTP Security none
SMTP Port 25
SMTP Username [email]form@xxx.com[/email]
SMTP Password xxxxx
SMTP Host mymail.xxx.com
// Prepare email body
$prefix = JText::sprintf('ENQUIRY_TEXT', JURI::base());
$body = $prefix."\n".$name.' <'.$email.'>'."\r\n\r\n".stripslashes($body);
$mail = JFactory::getMailer();
$mail->addRecipient( $contact->email_to );
$mail->setSender( array( $email, $name ) )
$mail->setSubject( $FromName.': '.$subject );
$mail->setBody( $body );
More specifically, I changed this line,
$mail->setSender( array( $email, $name ) )
and when it didn't work changed it back to this. At least what is there now is what I remember it being.At about this also started getting 500 error for that form's parent page.
You are not allowed to access this URL
Last week because of many problems we were having that seemed to be related to our having the site inside the "secure" folder, we set up a duplicate site in "public", set each menu item to SSL 'no' or 'ignore' except for the home page where the link to the secure Chronoform resides.
This solved the 404 and mixed content warnings and we thought all was well until these form problems emerged.
I can't quite make sense of what is happening here . . .
I can see that you missed the closing ; off the line that you edited. It's possible that that is causing some of the other errors.
Bob
I downloaded fresh copy of Joomla, same version (Joomla! 1.5.23 Stable) and replaced the components\com_contact\controller.php file. Can now access the parent page.
Discovered ssl was applied to helptherapists.com instead of helptherapist.com. Found and and corrected the lines that caused that.
Still not accessing the two forms, web host insists one copy of site must be in the folder named "secure" so have gone back to having the site there and having the folder named "Public" holding redirect instructions only. This the way it was until recently. Today I had discovered that having duplicate folders was causing havoc when I added content. I had hoped that going back would get me the forms back, too.
No, the forms are not working.
The Chronoform returns "You are not allowed to access this URL" in Chrome "PHPMAILER_RECIPIENTS_FAILEDxxxx@thesite.com" in IE9.
The Joomla contact form which had never been problematic has been returning,
PHPMAILER_RECIPIENTS_FAILEDdyyyy@thesite.com
.I have not changed the SMTP settings in Global Configuration. I did toggle the SMTP Authentication to no and back once. I also have not altered the form html during these changes.
The client is missing the online secure form badly.
Thank you for any insight,
Scott
ChronoForm form returns same message;
contact form now returns, "SMTP Error! Could not connect to SMTP host."
This still sounds like a problem with the Mail Server setup :-(
Bob
Working on the ChonoForms secure online form as that's the one they want most urgently.
Turned SMTP Security to SSL from none.
I received "session timed out..." and did what Fredrik suggested in here: http://www.chronoengine.com/forums.html?cont=posts&f=2&t=15864#p40543
Now I receive "SMTP Error! Could not connect to SMTP host."
SMTP port is 25 - could this be he issue?
Rest of settings are as described on August 1 and untouched from when forms were working.
Can you point me to other files that impact SMTP that might have been affected by the folder changes?
Here again are the current settings (that were working before we copied the site into duplicate folders:
Mailer
Mail from SMTP Server
From Name [email]form@sitenameonGoogle.com[/email]
Sendmail Path mymail.webhost's name.com
SMTP Authentication Yes
SMTP Security none
SMTP Port 25
SMTP Username [email]form@sitenameonGoogle.com[/email]
SMTP Password xxxxx
SMTP Host mymail.webhost's name.com
How did this work before?
If you are using Google mail then shouldn't the SMTP server be smtp.gmail.com ??
Bob
I remember the person who set it up complaining of the amount of back & forth he had between Google and the host techs. I think it had to do with the mx settings.
Second tech too suggests using G apps settings. Don't understand why the settings we used worked until late.
Works as set up per this link for Gmail worked:http://baylinux.com/resources/45-joomla/64-joomlasecuremailpatch.html
Mail from SMTP Server
From Name [email]login@gmail.com[/email]
Sendmail Path irrelevant
SMTP Authentication Yes
SMTP Security ssl
SMTP Port 465
SMTP Username [email]login@gmail.com[/email]
SMTP Password xxxxx
SMTP Host smtp.gmail.com
Still wonder why the old settings worked all this time...
Again, thank you.