Invite user with MAIL method

1,196 views
Skip to first unread message

kama...@gmail.com

unread,
Apr 29, 2016, 11:20:27 AM4/29/16
to Orangescrum Community Support

Hello;

I am inviting new user and send invitation to user. invitation is sent successfully but problem is that invitee did not get any invitation from my side.
and when i am trying to resend invitation it gives me error "Error in sending invitation link!"

can you help for regarding this issue?

Thank You



<?php
########################################################################
##################### Email Sending Options ############################
########################################################################
/**
 * What method should the email be sent by
 * Supported methods:
 * - mail
 * - smtp *
 * @var string
 */
define("EMAIL_DELIVERY", "smtp");

//Make sure to enable "php_openssl" in PHP. In WAMP, you need to enable extension=php_openssl.dll on php.ini file

//Gmail SMTP
define('SMTP_HOST', 'ssl://smtp.gmail.com');
define('SMTP_PORT', '465');
define('SMTP_UNAME', 'kama...@gmail.com');
define('SMTP_PWORD', '-------');
//https://www.arclab.com/en/amlc/list-of-smtp-and-imap-servers-mailserver-list.html (Get the list of Host names)

### OR ###


//Mandrill smtp
//define('SMTP_HOST', 'smtp.mandrillapp.com');
//define('SMTP_PORT', '587');
//define('SMTP_UNAME', 'chri...@kamara.com.py');
//define('SMTP_PWORD', '----'); //Mandrill API Key
//https://www.mandrill.com/signup/ (free signup to mandrill)

### OR ###

//Sendgrid smtp
//define("SMTP_HOST", "smtp.sendgrid.net");
//define("SMTP_PORT", "587");
//define("SMTP_UNAME", "your...@domain.com");
//define("SMTP_PWORD", "******");
//https://sendgrid.com/user/signup (free signup to sendgrid)

########################################################################
define('WEB_DOMAIN', 'project.kamara.com.py'); //ex. demo.orangescrum.com
define('FROM_EMAIL_NOTIFY', 'notifi...@kamara.com.py'); //(REQUIRED)
define('SUPPORT_EMAIL', 'sop...@kamara.com.py'); //(REQUIRED) From Email
define('FROM_EMAIL',  'kamara_project<'.SUPPORT_EMAIL.'>');

define('DEV_EMAIL', 'deve...@kamara.com.py'); // Developer Email ID to report the application error
define('EMAIL_SUBJ', '[kamara_project]');




kama...@gmail.com

unread,
May 4, 2016, 4:08:44 PM5/4/16
to Orangescrum Community Support

HELP, RELIEF, HELP, SUPPORT, S.O.S

Team Orangescrum

unread,
May 9, 2016, 3:42:10 AM5/9/16
to Orangescrum Community Support
Hi kamara,

Please download the latest version of community edition(v1.5.9), this functionality is working.
We have fixed the issue.

Let us know if you have any more issue?

Deepak Itkar

unread,
Jun 8, 2016, 8:48:26 AM6/8/16
to Orangescrum Community Support
Has this been fixed?

I downloaded the latest version and I am getting this error. I tried gmail and sendgrid. Still getting errors.

thanks

jac...@gmail.com

unread,
Jul 8, 2016, 3:38:19 AM7/8/16
to Orangescrum Community Support
Hi, I've the same situation.
My resolution for gmail: in file  lib/Cake/Network/Email/SmtpTransport.php, line 85
I changed

 'tls' => false

to

'tls' => true

In config/constants.php I set:


define("EMAIL_DELIVERY", "smtp");
define("SMTP_HOST", "smtp.gmail.com");
define("SMTP_PORT", "587");

and now it works!

Jacek

andrea manconi

unread,
Sep 6, 2016, 10:54:08 AM9/6/16
to Orangescrum Community Support
this is exactly the solution, because gmail smtp server wasn't sending at all and instead it was blocking  it.

Eva Rahman

unread,
Feb 22, 2017, 10:06:45 PM2/22/17
to Orangescrum Community Support
Hello, I try to change like that, but I still get the same error, can you help?

reethish...@gmail.com

unread,
Feb 23, 2017, 1:30:27 AM2/23/17
to Orangescrum Community Support
me too facing the same problem can any one help me please?

Akbar Ibnu

unread,
Feb 24, 2017, 3:45:51 PM2/24/17
to Orangescrum Community Support

haii i have same problem, I am inviting new user and send invitation to user. invitation is sent successfully but problem new user mail cant recieve email from my side.

and when i am trying to resend invitation it gives me error "Error in sending invitation link!"
//Gmail SMTP
define('SMTP_HOST', 'ssl://smtp.gmail.com');
define('SMTP_PORT', '465');
define('SMTP_UNAME', 'sekolah...@gmail.com');

define('SMTP_PWORD', '-------');
//https://www.arclab.com/en/amlc/list-of-smtp-and-imap-servers-mailserver-list.html (Get the list of Host names)

please help me
 

Akbar Ibnu

unread,
Feb 24, 2017, 3:58:12 PM2/24/17
to Orangescrum Community Support
this my error after i run => http://intranet.d***alal.com/todo/cron/test_email/?to=mr.ak***u...@gmail.com

php_openssl in php.ini is enabled 

smtp.gmail.com:587 () is open.

Simple Email Caught exception: SMTP Error: 534 5.7.14 https://support.google.com/mail/answer/78754 n77sm1924619qkn.18 - gsmtp
Template Email Caught exception: SMTP Error: 534 5.7.14 https://support.google.com/mail/answer/78754 d33sm5521597qta.50 - gsmtp

Akbar Ibnu

unread,
Feb 24, 2017, 4:20:43 PM2/24/17
to Orangescrum Community Support
Well I found the error.

If the password contains symbol, numeric or unique char it won't authenticate

this problem solved after change my password from "P4ssword." to "password"

Tom Hooper

unread,
Mar 5, 2017, 8:33:52 PM3/5/17
to Orangescrum Community Support
Please dont tell me you're actuailly using "Password" as your actual password. 
That's terrible security. 

Marco Del Gaizo

unread,
Mar 24, 2017, 7:25:37 AM3/24/17
to Orangescrum Community Support
Hello to all,
I installed orangescrum on my Windows server 2012, with a wamp distribution, I configured successfully the sso with Google, but when I try to send e-mail invitation, I receive an exception and the email was not sent.
I followed different solutions proposed in yours orange google group, but without success.
In particular I set tls=true in smtpTransport.php, and configured my SMTP parameter, in constants.php file, as :

define("EMAIL_DELIVERY", "smtp");
//Make sure to enable "php_openssl" in PHP. In WAMP, you need to enable extension=php_openssl.dll on php.ini file
//Gmail SMTP

define("SMTP_HOST", "smtp.gmail.com");
define("SMTP_PORT", "587");
define("SMTP_UNAME", "ciemmein...@gmail.com"); // real account gmail
define("SMTP_PWORD", "xxxxxxxxx");
define("WEB_DOMAIN", "ciemmeinformatica.it"); // real domain registred in Aruba provider
define('FROM_EMAIL_NOTIFY', 'in...@ciemmeinformatica.it'); // email not real (fake)
define('SUPPORT_EMAIL', 'sup...@ciemmeinformatica.it'); // From Email support not real (fake)
define('FROM_EMAIL',  'Orangescrum<'.SUPPORT_EMAIL.'>');
define("DEV_EMAIL", 'deve...@ciemmeinformatica.it'); // Developer Email ID non reale (fake)



but it failed :

php_openssl in php.ini is enabled
smtp.gmail.com:587 () is open.
Simple Email Caught exception: SMTP Error: 535 5.7.8  https://support.google.com/mail/?p=BadCredentials 43sm6626426wry.45 - gsmtp
Template Email Caught exception: SMTP Error: 535 5.7.8  https://support.google.com/mail/?p=BadCredentials h3sm6634245wrb.6 - gsmtp

In my Gmail account is enabled the two step authentication, I read that this should be a problem, is there a workaround to avoid change my gmail account security?

Do you have any suggestions to help me ?

Thank you.
Marco

Marco Del Gaizo

unread,
Mar 24, 2017, 7:43:36 AM3/24/17
to Orangescrum Community Support
Sorry I wrong to indicate that 'in...@ciemmeinformatica.it' is a real email.

Marco


Il giorno venerdì 24 marzo 2017 12:25:37 UTC+1, Marco Del Gaizo ha scritto:
Hello to all,
I installed orangescrum on my Windows server 2012, with a wamp distribution, I configured successfully the sso with Google, but when I try to send e-mail invitation, I receive an exception and the email was not sent.
I followed different solutions proposed in yours orange google group, but without success.
In particular I set tls=true in smtpTransport.php, and configured my SMTP parameter, in constants.php file, as :
define("EMAIL_DELIVERY", "smtp");
//Make sure to enable "php_openssl" in PHP. In WAMP, you need to enable extension=php_openssl.dll on php.ini file
//Gmail SMTP
define("SMTP_HOST", "smtp.gmail.com");
define("SMTP_PORT", "587");
define("SMTP_UNAME", "ciemmein...@gmail.com"); // real account gmail
define("SMTP_PWORD", "xxxxxxxxx");
define("WEB_DOMAIN", "ciemmeinformatica.it"); // real domain registred in Aruba provider
define('FROM_EMAIL_NOTIFY', 'in...@ciemmeinformatica.it'); // email not real (fake)
define('SUPPORT_EMAIL', 'sup...@ciemmeinformatica.it'); // From Email support not real (fake)
define('FROM_EMAIL',  'Orangescrum<'.SUPPORT_EMAIL.'>');
define("DEV_EMAIL", 'developer@ciemmeinformatica.it'); // Developer Email ID non reale (fake)


Furthermore I executed the following command :

hysim...@gmail.com

unread,
May 23, 2017, 12:30:00 AM5/23/17
to Orangescrum Community Support
Hi Team Orangescrum,

I have configured Orangescrum 1.6.1, still i am facing this issue.

Can you please help me.

Regards,
Orange

Team Orangescrum

unread,
May 26, 2017, 12:31:15 AM5/26/17
to Orangescrum Community Support
Hello All,
 
Sorry for delay reply.

 Please run the following URL to check email is working or not:
 
Example: 
 
 
 
 
If the email is not working then please send your server access details to sup...@orangescrum.com.


Best Regards
 
Team Orangescrum

Francisco Yu

unread,
Sep 8, 2017, 9:31:03 PM9/8/17
to Orangescrum Community Support
Hi there!

I installed OrangeScrum on a Ubuntu 16.04, all the application works fine, but when I try to add a user to a project, the server does not send any email. When I try to  resend an email to the invited user, a message error shows on top-right of the browser that says "Error in sending invitation link".

I'm using my own email server that uses zimbra, using smtp authentication on plain text and TLS, this account is used by other systems to send notifications, and is already tested.

My constats.php configuration is this:


define("EMAIL_DELIVERY", "smtp");
//Make sure to enable "php_openssl" in PHP. In WAMP, you need to enable extension=php_openssl.dll on php.ini file
//Server SMTP
define("SMTP_HOST", "smtp.myserver.mx");
define("SMTP_PORT", "25");
define("SMTP_UNAME", "no-r...@myserver.mx");
define("SMTP_PWORD", "**********");

When I try to use the link to test the email:


The application send the next message:


The page you requested was not found

You may have clicked an expired link or mistyped the address.
Some web addresses are case sensitive.


Any Ideas to solve this issue?

Regards,
Francisco Yu

Aaron Shaan

unread,
Oct 5, 2017, 12:27:59 AM10/5/17
to Orangescrum Community Support

Hello Francisco,

Thank you for reaching us.

Can you please add the valid email id in the place of  "emailId" in  http://orange.myserver.mx:8082/cron/test_email/?to=emailId ?

Please let us know the response you get.

You can also reach us with your queries at sup...@orangescrum.com

Regards,
Aaron
Orangescrum Team

Aaron Shaan

unread,
Oct 28, 2017, 2:05:31 AM10/28/17
to Orangescrum Community Support
Hi Francisco,

I guess there might be an issue in SMTP configuration.

Please follow these steps:-



Please follow the steps:

Setp 1:

Go to the path in your application: app/Config/constants.php

Setp 2:

Set the following in Gmail SMTP:


define(“SMTP_HOST”, “ssl://smtp.gmail.com”);

define(“SMTP_PORT”, “465”);

define(“SMTP_UNAME”, “your...@gmail.com”);

define(“SMTP_PWORD”, “******”);

Please provide your smtp username and password to configure your SMTP.

If you are finding problem after setting the username and password then please check the below:

Go to your php.ini file and enable the “php_openssl” in you PHP setting.

You need to enable extension=php_openssl.dll on php.ini file. If you are still facing the problem then the port 465 is not available. Try with 587 port.

Otherwise, Please contact with your server administrator.

Please run the following URL to check email is working or not:

If the email is not working then please follow the installation guide again.

Check gmail security issues here. Please see below links , you have to change some configuration at email end.

https://support.google.com/accounts/answer/6010255?hl=en

https://www.google.com/settings/security/lesssecureapps

Also check app/tmp/logs/os-email.log file for any error.

If you want to send emails to your internal server without authentication use the below code to get the following changes in place;

“Replace define(“EMAIL_DELIVERY”, “mail”); in place of define(“EMAIL_DELIVERY”, “smtp”); in constants.php app/Config/constants.php”

SMTP Email Configuration Issue:-


If it is not gmail configuration and you’re using either sendgrid or mandrill, then
open lib/cake/network/email/SmtpTransport.php – change the tls to true
open app/Controller/Component/SendgridComponent.php – add ‘tls’ => true to email config array in both sendgridSmtp and sendGridEmail functions

check the below url to check if email is working properly or not:

http://customersdomain.com/cron/test_email/?to=your_emailid

Check SMTP Port:

If ports(465,587) are not enabled, then open it.
Still mail functionality is not working then try with changing the ports to (465,587, 25)
If still it does not work:- in constants.php file remove the <> symbols from FROM_EMAIL in app/webroot/EmailReply.php
Add the hostname according to the mail server imap setting and Imap port. If ssl is enable then add novalidate-cert parameter to the host name.
Then Add HOST Name, User Name & Password

To Use Own Email Server:


For own Email server: Add HOST_NAME, PORT, SMTP_UNAME, SMTP_PWORD in constant.php instead of gmail configuration.

Incorrect authentication data error:
Please double check the username and password.
If both are correct then check the server configuration. It’s somehow blocking the server to connect to the mail server.

Please contact your mail server vendor regarding this.

Regards,
Aaron
The Orangescrum team
Reply all
Reply to author
Forward
0 new messages