email settings

Permalink
Hey,

I am unable to send private messages to my users.
They receive no email at all, although it is activated on the user account.
I did test the email settings (with a smtp method "default php mail function") and receive a error message. There is a screenshot in attachment.
What is wrong?
can you help me out of this?

1 Attachment

stedereu
 
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Possibly because your php is running in 'Safe Mode' which typically does not allow a fifth parameter to be used..
Best solution is to use an external SMTP server for your emails and thus bypass the php restriction.
stedereu replied on at Permalink Reply 1 Attachment
stedereu
I am not sure what I have to put in the settings of the external smtp.
I did try and receive an error.
See attachment for more.
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
You need to setup the default email sender address, this varies on the version of concrete you are using, if it is version 5.7 or version 8 you can put this code in application/config/concrete.php
<?php
return array(
    'email' => array(
        // The system default sender 
        'default' => array(
            'address' => 'your email address here',
            'name' => '', // this can be left out
        ),
        // The individual senders 
        // Form block:
        'form_block' => array(
            'address' => 'your email address here',
        ),
        // User registration email validation messages
        'validate_registration' => array(

If there is no concrete.php in that location, you must create one with the above code entered.
If you are using concrete 5.6 use this in config/site.php
define('EMAIL_DEFAULT_FROM_ADDRESS', 'your email address here');
define('FORM_BLOCK_SENDER_EMAIL', 'your email address here');
define('EMAIL_ADDRESS_FORGOT_PASSWORD', 'your email address here');
define('EMAIL_ADDRESS_REGISTER_NOTIFICATION', 'your email address here');
barkingtuna replied on at Permalink Reply
barkingtuna
How would one insert the necessary code in an already existing concrete.php file?

<?php
/**
 * -----------------------------------------------------------------------------
 * Generated 2018-03-02T09:10:46-07:00
 *
 * DO NOT EDIT THIS FILE DIRECTLY
 *
 * @item      misc.do_page_reindex_check
 * @group     concrete
 * @namespace null
 * -----------------------------------------------------------------------------
 */
return [
    'version_installed' => '8.3.2',
    'version_db_installed' => '20180122213656',
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
@barkingtuna the file you are displaying is the concrete/config/concrete.php file.
You must place that code in the application/config/concrete.php file.
If that file does not exist, you must create it yourself.
stedereu replied on at Permalink Reply
stedereu
Hey C5,

The smtp settings are tested and are working fine.
When using the Toesslab addon nevertheless, the newsletter is not received.
But the message in the mailing history of Toesslab says that the mail has been send.

best regards,

Stefaan De Reu

> Op 2 mrt. 2018, om 17:53 heeft concrete5 Community <discussions@concretecms.com> het volgende geschreven:
stedereu replied on at Permalink Reply
stedereu
Hey C5,

The smtp settings are tested and are working fine.
When using the Toesslab addon nevertheless, the newsletter is not received.
But the message in the mailing history of Toesslab says that the mail has been send.

best regards,

Stefaan De Reu