Forum

not able to sent ma...
 
Notifications
Clear all

not able to sent mail

14 Posts
5 Users
0 Reactions
18.1 K Views
(@yassine)
Posts: 26
Active Member
Topic starter
 
[#712]

hi,
wehen i want to send an email to a contact, an error occurred and a message box "not able to send mail to dammakyassine@gmail.com contact your administrateur "
but i use the account admin :unsure:


 
Posted : 09 Oct 2012 13H15
(@babynus)
Posts: 14952
Member Admin
 

The message "contact your administrator" means you'll find description of the error in the log file.


 
Posted : 09 Oct 2012 14H31
(@yassine)
Posts: 26
Active Member
Topic starter
 

Maybe I should change
$paramMailSmtpServer='localhost'; // SMTP Server (default is localhost) to smtp.gmail.com
in the file parameters.php


 
Posted : 09 Oct 2012 14H43
(@babynus)
Posts: 14952
Member Admin
 

If you don't have a local smtp server, yes you should find a remote server :whistle:


 
Posted : 09 Oct 2012 14H50
aziz knina
(@azizknina)
Posts: 9
Active Member
 

Hi,

I'm facing also the same problem even though I have setup the smtp server in the global parameters and alos in the file tool/parameters.php

Is there any thing else to be setup?

should I also change the value of $param['MailSmtpServer'] = 'localhost'; in the config.php file?

RG,
Aziz


 
Posted : 11 Mar 2013 13H37
(@babynus)
Posts: 14952
Member Admin
 

The smtp server must be configured in the global parameters screen.
The value in the config.php file is just the default value proposed on setup. It is not used after first installation.
There are two possibilities :
1) you have a local smtp server : let the 'localhost' as parameter should work
2) you don't have a local smtp server : you must get a remote smpt server and specify its location in the parameter. Some providers give you a smtp server. For instance, free proposes smtp.free.fr (not very quick, but works).

On linux servers your are more likely to be in situation 1 : sendmail is installed by default on most linux distributions.
On windows, you will always be in situation 2. No smtp server is setup by defaut, and even if you install one locally, it will not be locally reachable from PHP.


 
Posted : 11 Mar 2013 14H08
aziz knina
(@azizknina)
Posts: 9
Active Member
 

Indeed, I use projectorria on a linux installation (centos for instance) and I have already setup the ip adress of the smtp server in the global parameters (I don't use sendmail).
the problem is still there, I get the message error: contact the administator.


 
Posted : 11 Mar 2013 14H21
(@babynus)
Posts: 14952
Member Admin
 

In your case, you need to define the "sendmail program path".
See user manual.

http://demo.projectorria.org/manual/manual.php?page=12&tag=parameter


 
Posted : 11 Mar 2013 14H31
(@andresch)
Posts: 20
Active Member
 

I completed setup the system on my test webserver. the email server is a online server/ I configured all and even made sure my mail settings is 100% as er my Outlook test account settings.

I tried to sent email form user setup page by clicking on sent information to user.

In the log file I got the following:
2016-08-17 12:15:18.025 ** ERROR ** Error sending mail
2016-08-17 12:15:18.025 ** ERROR ** SMTP Server : host319.hostmonster.com
2016-08-17 12:15:18.025 ** ERROR ** SMTP Port : 465
2016-08-17 12:15:18.025 ** ERROR ** Mail stored in Database : #4
2016-08-17 12:15:18.025 ** ERROR ** PHPMail error : Message body empty
2016-08-17 12:15:18.025 ** ERROR ** PHPMail debug :


 
Posted : 17 Aug 2016 15H16
(@babynus)
Posts: 14952
Member Admin
 

Issue is clear : "Message body empty"

Did you define an email and password for the user ?
Can you check Mail (in tools) and look for mail #4 : what is its body ?
Do you have any error in log file ?


 
Posted : 17 Aug 2016 20H42
 Robb
(@robb1976)
Posts: 9
Active Member
 

Hello,

I have the same isssue, mails are not working. I tyr to send password reset email to the user and I get error message.

log file:
2016-09-09 15:07:13.755 ** ERROR ** Mail stored in Database : #14
2016-09-09 15:07:13.755 ** ERROR ** PHPMail error : Message body empty
2016-09-09 15:07:13.755 ** ERROR ** PHPMail debug :

1. system: ubuntu 16 with sendmail configured properly as I can send mail with php command from ssh command line

2. global parameters/emailing filled out properly, I checked both remote smtp on port 25 and localhost with ssmtp configured...

3. In tools/Emails sent: I see a list of emails with errors, no titles, no text of the email, I see just date, time, email to and nothing more...

Is it possible that despite working there is some misconfiguration of sendmail in ubuntu? Can you show piece of php code that you use in projeqtor for email sending?
I can't understand error: >Message body empty<... I'm not doing anything with mail body message. It is defined by Projeqtor...

Please help


 
Posted : 09 Sep 2016 17H31
 Robb
(@robb1976)
Posts: 9
Active Member
 

Here is more from my log file:
2016-09-09 14:56:03.155 ** ERROR ** Error sending mail
2016-09-09 14:56:03.155 ** ERROR ** SMTP Server : mail.inven.com.pl
2016-09-09 14:56:03.155 ** ERROR ** SMTP Port : 25
2016-09-09 14:56:03.155 ** ERROR ** Mail stored in Database : #13
2016-09-09 14:56:03.155 ** ERROR ** PHPMail error : Message body empty
2016-09-09 14:56:03.155 ** ERROR ** PHPMail debug :
2016-09-09 15:07:13.755 ** ERROR ** Error sending mail
2016-09-09 15:07:13.755 ** ERROR ** SMTP Server : localhost
2016-09-09 15:07:13.755 ** ERROR ** SMTP Port : 25
2016-09-09 15:07:13.755 ** ERROR ** Mail stored in Database : #14
2016-09-09 15:07:13.755 ** ERROR ** PHPMail error : Message body empty
2016-09-09 15:07:13.755 ** ERROR ** PHPMail debug :

Maybe there is some error in the php code? I use php7.0 as it is native for ubuntu 16
http://stackoverflow.com/questions/13816571/phpmailer-mailer-error-message-body-empty


 
Posted : 09 Sep 2016 17H52
 Robb
(@robb1976)
Posts: 9
Active Member
 

SOLVED. I have no idea why. I know how...

I had other projeqtor instance on co-hosting service, with working email service. I have there limited access (directadmin, no ssh) MySql installation is very simple through GUI.

So I made a copy of that database and imported into my ubuntu server through myphpadmin. All done on newest projeqtor 5.5.1 versions (both instances).

I login into my ubuntu projeqtor and emails are working. I see no connection between database and emails but something must have changed... I'm so happy.

IT is like magic!


 
Posted : 09 Sep 2016 19H22
(@babynus)
Posts: 14952
Member Admin
 

While copying database you copied email configuration (smtp parameters).
So possibly something was wrong on first install.


 
Posted : 09 Sep 2016 19H42
Share:

Scroll to Top