Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible solution to email notifcations error? #508

Open
GoogleCodeExporter opened this issue Mar 23, 2015 · 0 comments
Open

Possible solution to email notifcations error? #508

GoogleCodeExporter opened this issue Mar 23, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

I've recently restarted my attempts to implement ProjectSend on our website, 
having been discouraged by ProjectSend failing to send email notifications. 
(I'd been getting the error "E-mail notification couldn't be sent" ever since 
upgrading from r514 -- see <a 
href="https://code.google.com/p/clients-oriented-ftp/issues/detail?id=439&can=4"
>Issue 439</a>). After some digging this morning, I finally got email 
notifications working by modifying some of your code, so I wanted to report it 
to you.


I had discovered that ProjectSend utilizes PHPMailer, and recalled that we are 
using PHPMailer successfully elsewhere on our site. In that implementation, we 
are not using SMTP username/password authentication, so I aimed to recreate 
those settings within ProjectSend.

Thus in the file includes/classes/send-email.php, after I commented out the 
lines below (property settings on the PHPMailer object), everything worked:

$this->send_mail->SMTPAuth = true;
$this->send_mail->Port = SMTP_PORT;
$this->send_mail->Username = SMTP_USER;
$this->send_mail->Password = SMTP_PASS;


That section of code in send-email.php could be tweaked a little further to 
make SMTP authentication optional (if SMTP_USER and SMTP_PASS are blank then 
they don't get passed to the PHPMailer object and SMTPAuth is not set to true).


Original issue reported on code.google.com by [email protected] on 20 Nov 2014 at 4:44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant