I'm getting very close to getting this form working, thanks to greyheart. He spent a bit of time, but it's still not working right so I want to post it here because I saw it in another forum but my form is slightly different.
There is a drop down menu to select a recipient. The visitor fills out a form, and gets a thank you message on the website, PLUS an email template of what they fill out on the form. One of the recipients gets the email, and replies to the email which goes to the visitor. Got it?
I have the visitor email working fine (gets the email, replies to recipient).
The recipient gets the results of the form. However, when the recipient clicks to Reply, that's the problem. It's either Admin And Visitor, or just Admin. I want the recipient to be able to reply only to Visitor.
Here's the Before Email(s) code:
Below On Submit I have: Custom Code - Before Emails(s), Email to Staff, Email to User, Show Thanks Message, Debugger.
In Email to Staff Static Tab, To(Required) goes to "recipients", From email (Required) is the "admin@domain.org", reply to email is "email" (that's the visitor's email)
In Email to Staff Dynamic Tab, Dynamic to is "to_email", Dynamic From email is "recipients".
Debugger shows the error message: Invalid address: recipientsInvalid address: emailInvalid address: recipients. However, visitor gets the email, recipient gets the email but the reply to goes to [email]Admin@domain.org[/email].
Thanks for helping me out.
There is a drop down menu to select a recipient. The visitor fills out a form, and gets a thank you message on the website, PLUS an email template of what they fill out on the form. One of the recipients gets the email, and replies to the email which goes to the visitor. Got it?
I have the visitor email working fine (gets the email, replies to recipient).
The recipient gets the results of the form. However, when the recipient clicks to Reply, that's the problem. It's either Admin And Visitor, or just Admin. I want the recipient to be able to reply only to Visitor.
Here's the Before Email(s) code:
<?php
$emails = array(
'em1' => 'principal@domain.org',
'em2' => 'recipient2@domain.org',
'em3' => 'recipient3@domain.org',
'em4' => 'recipient4@domain.org',
'em5' => 'recipient5@domain.org',
'em6' => 'recipient6@domain.org',
'em8' => 'recipient7@domain.org',
'em7' => 'webmaster@domain.org'
);
$recipient = $form->data['recipients'];
$form->data['to_email'] = $emails[$recipient];
?>
Below On Submit I have: Custom Code - Before Emails(s), Email to Staff, Email to User, Show Thanks Message, Debugger.
In Email to Staff Static Tab, To(Required) goes to "recipients", From email (Required) is the "admin@domain.org", reply to email is "email" (that's the visitor's email)
In Email to Staff Dynamic Tab, Dynamic to is "to_email", Dynamic From email is "recipients".
Debugger shows the error message: Invalid address: recipientsInvalid address: emailInvalid address: recipients. However, visitor gets the email, recipient gets the email but the reply to goes to [email]Admin@domain.org[/email].
Thanks for helping me out.
Hi DeafBiz,
There is a Joomla! bug that adds the admin email address to any Reply To email address used. (the bug has been reported). See this post for a description and fix to the Joomla! code.
Bob
There is a Joomla! bug that adds the admin email address to any Reply To email address used. (the bug has been reported). See this post for a description and fix to the Joomla! code.
Bob
Hi DeafBiz,
Sorry about the spam. We've been having major spam problems on the forums but they have been mostly been hidded because new posters are moderated. Max updated PHPBB yesterday to the latest release which gives us some better spam control . . . but in the process it seems as though all the existing users were removed from the moderation queue and their posts are showing up :-( Unfortunately many of our spammers register and then come back later to post so this will take a while to work through.
Bob
Sorry about the spam. We've been having major spam problems on the forums but they have been mostly been hidded because new posters are moderated. Max updated PHPBB yesterday to the latest release which gives us some better spam control . . . but in the process it seems as though all the existing users were removed from the moderation queue and their posts are showing up :-( Unfortunately many of our spammers register and then come back later to post so this will take a while to work through.
Bob
This topic is locked and no more replies can be posted.