READ THE FOLLOWING IF YOUR WEB HOST IS GO DADDY!
If GoDaddy is your web host certain e-mail domain names will result in messages NOT being sent when you use the Adsmanager contact form (these domain names are shown in the posting above.) This has nothing to do with Adsmanager component, but restrictions GoDaddy has placed on certain e-mail domains that are used in the From or E-mail field on certain contact forms integrated into Joomla! components that are used with your website that GoDaddy hosts. This includes the Adsmanager contact form, but not other mailing systems within the Joomla! core such as website registration and your website’s general contact form because your website’s domain name is usually part of the e-mail address that is being communicated to, for example, office @
mysite.com.
There is really no work around for all e-mail domain names to be accepted with the Adsmanager contact form, as it is clearly a restriction GoDaddy has implemented. What I have managed to do is put a message above the e-mail form for users to read before sending a message.
To do this I created a constant:
ADSMANAGER_EMAIL_RESTRICT_MSG
and put it into the adsmanager (front end) language file with the value:
“Messages are NOT sent if e-mail addresses with the domain names:
aim.com,
aol.com,
gmail.com,
hotmail.com,
live.com,
msn.com and
yahoo.com are used in the E-mail field of the contact form.”
You then need to add the following code:
<?php echo JText::_('ADSMANAGER_EMAIL_RESTRICT_MSG'); ?>
into the
default.php file, which can be found at the end of this path:
components/adsmanager/views/message/tmpl/
default.php
between the closing script tag and before the opening fieldset id tag <fieldset id="adsmanager_fieldset">
</script
<?php echo JText::_('ADSMANAGER_EMAIL_RESTRICT_MSG'); ?>
<fieldset id="adsmanager_fieldset">
Save the edited files. This should display your message above the contact form to inform users about the e-mail restrictions. The language file and php entries will have to be added every time you update Adsmanager.
If you have doubts that e-mails are sent or not and your web host is GoDaddy, test the Adsmanager contact form yourself using a restricted e-mail domain.
Thanks for the great component M. Papin. Will the code change above have an effect on the functioning of the mailing form? I sent and received an e-mail without any problems after the change. Thanks – Merci
Nsm