Page 1 of 1

Mailform Settings

Posted: Thu 18. May 2017, 11:00
by tze_frog
Hi Gert

I am administrating/maintaining two websites with different providers.
Problem: e-mails do not get through

Site #1:
CMSimple: 4.7.2
template: skyview_2nb_R
PHP-version: 5.6.30
I cannot get e-mails through. I have tried with the standard mailform included with template functions and also with the plugin mailforms.
As the site is quite busy right now I have removed the e-mail icon (no e-mail address entered in the CMS Settings line Mailform).

From your earlier communication 'Mailforms Mails kommen nicht an by chesswizard 6/3 2017', I suspected provider requirements to block the e-mails. I contacted and received the following answer:

<---reply begin--
Using a mailform 6/6
Added May 17, 2017 9:15 PM
Your rating: Not rated
Support - rbmr
Hi there,

Thank you for contacting!

If you are using a script for the contact form, you have to enable the authentication by using the below code:

$smtp = Mail::factory('smtp', array(
'host' => $smtpHost,
'port' => $smtpPort,
'auth' => true,
'username' => $username,
'password' => $password

For the username, you should use your email address and for the password, you have to use your email's password.

If you have any questions or need any help at all, please do not hesitate to contact us again. We will be happy to help you.

You can also contact our customer support 24/7. Click on the "Chat with us" icon at and get instant answers to your questions.

Best regards

--reply end--->

where to place this information? I can see a call to tf_mailform in file: templatefuncs.php.
I would like to have it working in both the standard mailform and the plugin mailform.

Site #2:
CMSimple: 4.7.2
template: skyview_2nb_R
PHP-version: 5.4.45

Same problem as above. As this site is not so active now, I have kept the standard e-mail icon active so I can test it.
Also here I would like to have both working.

Best regards

Anders Pedersen
Hjortespringparken 10
DK-2730 Herlev

Re: Mailform Settings

Posted: Thu 18. May 2017, 12:29
by Gert
Hi Anders,

sorry - but if both mailforms does not work, you can't use the forms on this webspace. Seems your provider does not support the php function mail().

Ask your provider (or simply try it), whether the usage of mail() is limited. For example, some providers only allows shipping mails to the same domain. That means: if the mailform is on, only mail addresses like are allowed. That shall prevent misusage of mailforms for spam.

The CMSimple mailforms are not supporting smtp mail.

At the moment I do not have the time to make a special variant of mailforms for every provider :roll:

Sorry again - Gert

Re: Mailform Settings

Posted: Thu 18. May 2017, 13:46
by Gert
tze_frog wrote:where to place this information?
If you want to try it, place it in the index.php of the mailforms plugin, somewhere above/before this line:

Code: Select all

But I do not believe, that there is nothing else to do,

Good luck - Gert ;)