Configure email office365 step

242 views
Skip to first unread message

kunthea kong

unread,
Aug 15, 2018, 3:40:08 AM8/15/18
to jorani
Hi,

I am a new configure of Jorani. And I've search in the forum and I follow how to configure email, but it still not work for me.
I want when the user create new request to take leave or approve from manager ...(etc) we see the notification in the email office365.

When I tried in testmail it show:

ERROR: Please provide a valid e-mail address in testmail.php.

I am do not clear about this and maybe I've missed something.

Could you please help me​ or guide me some step?

You can see my config and email file in the attachment.

I am looking forwards to hearing from you.

Thanks
config.php
email.php

Benjamin BALET

unread,
Aug 15, 2018, 4:11:18 AM8/15/18
to jor...@googlegroups.com
Hi,

Did you study at PNC school (same generation keanimol and nika)?

If you want to test the email, you need to open the file testmail.php in the root folder and change this line:

//Please enter a valid target email address. A test email will be sent here
define('EMAIL_ADDRESS', '');

With a valid email address like yours:
define('EMAIL_ADDRESS', 'myemail...@example.org');

Open again testmail.php as you did with your browser and following the tips and try to understand the error messages if any.





--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+un...@googlegroups.com.
To post to this group, send email to jor...@googlegroups.com.
Visit this group at https://groups.google.com/group/jorani.
To view this discussion on the web visit https://groups.google.com/d/msgid/jorani/1149920e-226e-4b5d-bac9-6a062bd15b0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kunthea kong

unread,
Aug 15, 2018, 4:15:21 AM8/15/18
to jor...@googlegroups.com
Hi Benjamin,

Yes, sure I am PNC student (same generation with Nimol and Nika). So I would say you are my teacher.

Anyways, thanks for your help. I will test it.

Thanks,

Best Regards,

On Wed, Aug 15, 2018 at 3:12 PM, Benjamin BALET <benjami...@gmail.com> wrote:
Hi,

Did you study at PNC school (same generation keanimol and nika)?

If you want to test the email, you need to open the file testmail.php in the root folder and change this line:

//Please enter a valid target email address. A test email will be sent here
define('EMAIL_ADDRESS', '');

With a valid email address like yours:
define('EMAIL_ADDRESS', 'myemail...@example.org');

Open again testmail.php as you did with your browser and following the tips and try to understand the error messages if any.




On Wed, Aug 15, 2018 at 2:40 PM kunthea kong <kunthe...@gmail.com> wrote:
Hi,

I am a new configure of Jorani. And I've search in the forum and I follow how to configure email, but it still not work for me.
I want when the user create new request to take leave or approve from manager ...(etc) we see the notification in the email office365.

When I tried in testmail it show:

ERROR: Please provide a valid e-mail address in testmail.php.

I am do not clear about this and maybe I've missed something.

Could you please help me​ or guide me some step?

You can see my config and email file in the attachment.

I am looking forwards to hearing from you.

Thanks

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+unsubscribe@googlegroups.com.

To post to this group, send email to jor...@googlegroups.com.
Visit this group at https://groups.google.com/group/jorani.
To view this discussion on the web visit https://groups.google.com/d/msgid/jorani/1149920e-226e-4b5d-bac9-6a062bd15b0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+unsubscribe@googlegroups.com.

To post to this group, send email to jor...@googlegroups.com.
Visit this group at https://groups.google.com/group/jorani.

kunthea kong

unread,
Aug 15, 2018, 5:13:30 AM8/15/18
to jor...@googlegroups.com
Hi Benjamin,

I've follow as you send me above.
Then it show:

Opcache
Test of your e-mail configuration
INFO: Selecting SMTP Protocol.
SERVER -> CLIENT: 220 HK2PR0401CA0001.outlook.office365.com Microsoft ESMTP MAIL Service ready at Wed, 15 Aug 2018 08:55:46 +0000
CLIENT -> SERVER: EHLO localhost
SERVER -> CLIENT: 250-HK2PR0401CA0001.outlook.office365.com Hello [96.9.67.45]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
CLIENT -> SERVER: STARTTLS
SERVER -> CLIENT: 220 2.0.0 SMTP server ready
CLIENT -> SERVER: EHLO localhost
SERVER -> CLIENT: 250-HK2PR0401CA0001.outlook.office365.com Hello [96.9.67.45]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH LOGIN XOAUTH2
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
CLIENT -> SERVER: MAIL FROM:
SERVER -> CLIENT: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [HK2PR0401CA0001.apcprd04.prod.outlook.com]
SMTP ERROR: MAIL FROM command failed: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [HK2PR0401CA0001.apcprd04.prod.outlook.com]
The following From address failed: na...@domainname.org : MAIL FROM command failed,5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [HK2PR0401CA0001.apcprd04.prod.outlook.com]
,530,SMTP server error: MAIL FROM command failed Detail: 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [HK2PR0401CA0001.apcprd04.prod.outlook.com]
SMTP code: 530ERROR: PHPMailer has encountered an error.
The following From address failed: na...@domainname.or : MAIL FROM command failed,5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [HK2PR0401CA0001.apcprd04.prod.outlook.com] ,530,SMTP server error: MAIL FROM command failed Detail: 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [HK2PR0401CA0001.apcprd04.prod.outlook.com] SMTP code: 530
Troubleshooting
In case of error, here are some additional steps:

Check the configuration with your IT Admin team.
If you are using GMAIL, please read this article.
The STMP port may be blocked by your organization/server's security policy (firewall, etc.).
When running SELinux, the webserver is blocked by default (it cannot send e-mails or open a network connection). Please consider unblocking it:
$ setsebool -P httpd_can_sendmail 1
$ setsebool -P httpd_can_network_connect 1
Some e-mail servers (eg Office 360) require to set a valid sender e-mail. Update config/config.php
$config['from_mail'] = 'do....@reply.me';

Some antivirus block STMP port by default.
Some SMTP server require the application server sending emails (i.e. Jorani) to be whitelisted (on the SMTP server).
Your webhosting company may forbid email functions.
Maybe that the emails are sent but put into SPAM folder.
CLIENT -> SERVER: QUIT
SERVER -> CLIENT: SMTP ERROR: QUIT command failed:

I am sure what I have to do next, because I am not clear about this.

I am looking forwards to hearing from you.

Thanks,

Kunthea KONG

Benjamin BALET

unread,
Aug 15, 2018, 5:26:12 AM8/15/18
to jor...@googlegroups.com
It can be many things:
  1. You MUST use a valid email address in application/config/config.php, $config['from_mail'] must be an account known by office365.
  2. Please check the port that you must use (depends if it is not secured with port 25, or by SSL), I cannot know.
  3. You are maybe using the wrong SMTP server. Please read this article from Microsoft (or search Google): https://answers.microsoft.com/en-us/msoffice/forum/msoffice_outlook-mso_winother-mso_o365b/client-was-not-authenticated-to-send-anonymous/d405bcb0-f40c-42fa-b1b2-477597100123
The problem with emails is that we cannot help you much as we are not on your network and we don't have credentials and the same level of information that you have.




Best Regards,

To unsubscribe from this group and stop receiving emails from it, send an email to jorani+un...@googlegroups.com.

To post to this group, send email to jor...@googlegroups.com.
Visit this group at https://groups.google.com/group/jorani.
To view this discussion on the web visit https://groups.google.com/d/msgid/jorani/1149920e-226e-4b5d-bac9-6a062bd15b0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+un...@googlegroups.com.

To post to this group, send email to jor...@googlegroups.com.
Visit this group at https://groups.google.com/group/jorani.

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+un...@googlegroups.com.

To post to this group, send email to jor...@googlegroups.com.
Visit this group at https://groups.google.com/group/jorani.

kunthea kong

unread,
Aug 16, 2018, 12:54:11 AM8/16/18
to jor...@googlegroups.com
Hello  benjamin,

Now It work great for me with the email function.

Thanks you so much.

Kunthea KONG

Best Regards,


Best Regards,

To unsubscribe from this group and stop receiving emails from it, send an email to jorani+unsubscribe@googlegroups.com.

To post to this group, send email to jor...@googlegroups.com.
Visit this group at https://groups.google.com/group/jorani.
To view this discussion on the web visit https://groups.google.com/d/msgid/jorani/1149920e-226e-4b5d-bac9-6a062bd15b0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+unsubscribe@googlegroups.com.

To post to this group, send email to jor...@googlegroups.com.
Visit this group at https://groups.google.com/group/jorani.

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+unsubscribe@googlegroups.com.

To post to this group, send email to jor...@googlegroups.com.
Visit this group at https://groups.google.com/group/jorani.

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+unsubscribe@googlegroups.com.

To post to this group, send email to jor...@googlegroups.com.
Visit this group at https://groups.google.com/group/jorani.
Reply all
Reply to author
Forward
0 new messages