Hi Carsten,
I think I know, what the problem is.
Here a brief explanation.
When I started with Visforms the result mail used the parameters "email from" and "email from name" (from the form configuration) as mail from headers. That was awkward because you could not use the "answer" button of your email client to answer, but you had to copy the email adress form the mail text manually into the reply email.
As an "improvement" I made a change for the next release, which uses now the email address a user enters in the form als mail from header in the email. That allow you now to use the "answer" button in an email client but some mailer, especially SMTP mailer, may require, that the mail from header is consistant with your domain and if not consider the mail as spam. So this one isn't a really good one either
As there are obviously not so many mailer with this feature, the problem does not occure too often and as the error messages of the mailer are often just useless (I found this interessting article on google
www.massmailsoftware.com/smtp/554-5-7-1.php
) it was difficutl to figure the problem, but with the help of one Visforms user it was possible some weeks ago. I just then realized, that there is a replyTo header., which I should use.
So in Visform 3.2.0 I changed the code once again. The replyTo header contains the user email and allows you to easily answer a result mail. The mail from headers contain the correct mail from which you set up in your configuration and which should be an email address with your domain in the address.
I do not want to push you to update to Visforms 3.2.0 for this is a beta and I rely on Visforms users to test it before I can savely say, you can use it on a productive system. But you can just make some small changes to the code of your 3.1.1 installation and I think this will (hopefully) solve your problem.
Open the file components/com_visforms/models/visforms.php and find the
private function sendResultMail($visform)
find the following code (it's the last function of the file and this code ist almost at the bottom of the file).
Code:
if ($emailSender == "")
{
$emailSender = $visform->emailfrom;
}
$mail->setSender( array( $emailSender, $visform->emailfromname ) );
and replace it with
Code:
$mail->setSender( array( $visform->emailfrom, $visform->emailfromname ) );
if ($emailSender != "")
{
$mail->addReplyTo($emailSender);
}
Regards,
Aicha