AmgadMHM / clients-oriented-ftp

Automatically exported from code.google.com/p/clients-oriented-ftp
0 stars 0 forks source link

Unable to send emails #247

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Add client
2.Upload file
3.create client

What is the expected output? What do you see instead?
I expected an email to be sent

What version of the product are you using? On what operating system?
r375

Linux

Please provide any additional information below.
I have tried setting

PHP mail 
SMTP
Gmail
and sendmail

with no joy as the  nessage 
One or more notifications couldn't be sent
 comes up.
And i get no emails. 
I am still in testing mode and its great except for this.

Original issue reported on code.google.com by AlanReib...@googlemail.com on 31 Mar 2013 at 6:13

GoogleCodeExporter commented 9 years ago
Did a test mail on this and get
-----
Current PHP version: 5.2.6

Warning: preg_match() [function.preg-match]: Compilation failed: reference to 
non-existent subpattern at offset 10 in 
/home/fhlinux134/b/berenicecostumes.co.uk/user/htdocs/clientfiles/includes/phpma
iler/class.phpmailer.php on line 747
Invalid address: alan@cedar-view.co.uk

Warning: preg_match() [function.preg-match]: Compilation failed: reference to 
non-existent subpattern at offset 10 in 
/home/fhlinux134/b/berenicecostumes.co.uk/user/htdocs/clientfiles/includes/phpma
iler/class.phpmailer.php on line 747
Invalid address: alan@berenicecostumes.co.uk

1: Unable to send to: alan@berenicecostumes.co.uk
-----------

I am not good with reg edit strings so cannot say if it is incorrect or it may 
be that the literal string is too long for the compiler.

Original comment by AlanReib...@googlemail.com on 3 Apr 2013 at 3:22

GoogleCodeExporter commented 9 years ago
Hi Alan.
I've been looking into this and found this issue on phpmailer's page.

https://code.google.com/a/apache-extras.org/p/phpmailer/issues/detail?id=124

Can you update php to 5.3 on your hosting or are you stuck with 5.2.x?

Another solution seems to be replacing phpmailer with an older version.

Original comment by i...@subwaydesign.com.ar on 4 Apr 2013 at 7:27

GoogleCodeExporter commented 9 years ago
Thanks

I did actually convert the preg_match string to recognise a simpler email 
address which covered all the ones I use. This worked fine using the the test 
mail facility successfully sending the emails. But the projectsend system still 
came up with 
E-mail notification couldn't be sent. when I do anything.
I use a service provider for my web sites and although I may be able to get 
them to upgrade to version 5.3 It will take some time.

I do presume the Projectsend is using the same files as the test.

I have now replaced the validate part with the example given in the issue you 
specified from phpmailer's page. from PHPMailer 5.2.4 and it works fine for the 
test but not for the actual project.

If I can get this to work sending email notifications we would be happy to use 
it and give a donation.

Original comment by AlanReib...@googlemail.com on 4 Apr 2013 at 8:53

GoogleCodeExporter commented 9 years ago
I have now changed all of the PHPMailer to version 5.2.4

Still no change even though the email test works

Still get "Notifications not sent"

Original comment by AlanReib...@googlemail.com on 5 Apr 2013 at 1:37

GoogleCodeExporter commented 9 years ago
I found the issue with the emailing and it was related to my smtp provider and 
extra security. I found this by setting the error reporting level for PHP 
Mailer Class
on line 280 of includes/classes/send-email.php

/*debugging 0 = none 1= messages and errors 2= messages */
$this->send_mail->SMTPDebug = 1; 

This identified the issue and i have fixed it.

Thanks for the help

Original comment by AlanReib...@googlemail.com on 6 Apr 2013 at 4:38

GoogleCodeExporter commented 9 years ago
I  am having the same problem as described above, nothing works regarding 
emails sending : One or more notifications couldn't be sent.

I have tried SMTP, with Debug on as described above, the message I am getting 
is invalid email???
while my email is valid.

I need help here to get this product going live

All the best, and thank you in advance for the great product.

Jimmy

Original comment by jawda...@gmail.com on 18 Apr 2013 at 3:14

GoogleCodeExporter commented 9 years ago
I updated the PHPMailer pert of r375 with the latest PHPMailer from their area.
This got all the parts of mailer working for me.

SMTP can have other issues relating to your email provider uses an 
authenticated SMTP server which requires a user Id and password for 
authentication as well as either a sender or receiver is also a standard 
mailbox user on their system (not a redirected mailbox). I fixed this by my 
initial email box for the system being a full mailbox eg 
noreply@domain.somewhere. This change allowed SMTP to work for me. Check with 
your email provider if there any special requirements for sending mail via SMTP 
from a web site (like a referrers list). My ftpuploader has the facility to 
protect files and folder from accident upload. I protected the PHPmailer 
directory in this way now as I uploaded r405 into a separate development area 
to check changes and email notifications stopped working.

I would hope that any future release would incorporate the work done on 
PHPMAILER.

Alan

Original comment by AlanReib...@googlemail.com on 18 Apr 2013 at 8:31