Connect dadabik to mail server

D

New member
I want to connect dadabik to a mail server so I can use the mail features. I can't find the instructions for that. Could someone point me there?

Thansk
 

eugenio

Administrator
Staff member
Which mail features are you referring to? The ones you enable with $enable_insert_notice_email_sending and $enable_update_notice_email_sending? If yes, they use by default the standard PHP mail() function, unless you want to define your own custom function (check the config parameter $custom_mail_function).

Best,
 

D

New member
Trying to setup self registration and password retrieval. The email never sends.

//SELF Registration
$enable_users_self_registration=1;
$default_group_user_self_registration=3;
$accept_terms_privacy_checkbox_registration_form_required = [0,0,0];
$enable_email_confirmation=1;
$enable_forgotton_Password=1;
$enable_insert_notice_email_sending=1;
$enable_update_notice_email_sending=1;

Thanks
 

eugenio

Administrator
Staff member
This means that your PHP can't send email through mail() or that the emails are filtered by some spam filter.
Create a PHP file inside your dadabik folder containing just

<?php
mail('youremailaddress@blablabla.com', 'test subject', 'test body');

and check if you receive it. Use the same email address you used for your dadabik self registration tests. Remember to delete the file after the tests.

Best
 

Jaidee

Member
I am intrested in this feature.
Can you elaborate please?
What do you mean by Create a php file inside databik folder ?
Can you be MORE specifivc please ?
There is NO dadbik folder
1. Where excately ???
Do you mean ?? dadabik_11.9-Elba_enterprise ?? folder ??
2. What is the file name ???
anynamemail.php ???
mymail.php ????
3. Registration Where ??
/include config_custom.php ???
//SELF Registration
$enable_users_self_registration=1;
$default_group_user_self_registration=3;

Thanks in advance
Video would be also an excellent way to show :)
 

therickman

New member
I am intrested in this feature.
Can you elaborate please?
What do you mean by Create a php file inside databik folder ?
Can you be MORE specifivc please ?
There is NO dadbik folder
1. Where excately ???
Do you mean ?? dadabik_11.9-Elba_enterprise ?? folder ??
2. What is the file name ???
anynamemail.php ???
mymail.php ????
3. Registration Where ??
/include config_custom.php ???
//SELF Registration
$enable_users_self_registration=1;
$default_group_user_self_registration=3;

Thanks in advance
Video would be also an excellent way to show :)
If it can help :
1)Open a text editor and type the code given by eugenio:
<?php
mail('youremail', 'test subject', 'test body');
?>
2) save this as a php file, for example "email.php"
3) Put this file in the folder on your server where your dadabik app is installed. You can put it in the root folder.
4) in a web browser, navigate to where this file is : yoursite.com/yourdadabik-app/email.php
5)Some time later ( not long ) check your email to see if you received an email from your server : it means your php version / config can send emails.
It worked for me.
 
Top