I have posted this previously in the Checkout Modules section of the forum but I don't think this is an issue with that module.
I have 2 problems.
1 when I try to send a test mail in the general setting of site admin I get:
Error (ERROR_UNKNOWN) : Could not send mail to
* in modules/core/classes/helpers/MailHelper_simple.class at line 102 (gallerystatus::error)
* in modules/core/classes/GalleryCoreApi.class at line 2540 (mailhelper_simple::sendtemplatedemail)
* in modules/core/AdminCore.inc at line 237 (gallerycoreapi::sendtemplatedemail)
* in main.php at line 174 (admincorecontroller::handlerequest)
* in main.php at line 87
* in main.php at line 80
file_exists(/homepages/12/d83406494/htdocs/storage/smf/smarty/templates_c/%%3631292045)
file_exists(/homepages/12/d83406494/htdocs/storage/smf/smarty/templates_c/%%3631292045)
file_exists(/homepages/12/d83406494/htdocs/storage/smf/smarty/templates_c/%%3631292045)
getParameter permissions.directory for core plugin
file_exists(/homepages/12/d83406494/htdocs/storage/smf/cache/module/core/0/0/0.inc)
file_exists(/homepages/12/d83406494/htdocs/storage/smf/cache/module/core/0/0)
is_dir(/homepages/12/d83406494/htdocs/storage/smf/cache/module/core/0/0)
rename(/homepages/12/d83406494/htdocs/storage/smf/cache/module/core/0/0/0.incoPKaUl,
/homepages/12/d83406494/htdocs/storage/smf/cache/module/core/0/0/0.inc)
file_exists(/homepages/12/d83406494/htdocs/storage/smf/smarty/templates_c/%%3631292045)
file_exists(/homepages/12/d83406494/htdocs/storage/smf/smarty/templates_c)
is_dir(/homepages/12/d83406494/htdocs/storage/smf/smarty/templates_c)
mkdir(/homepages/12/d83406494/htdocs/storage/smf/smarty/templates_c/%%3631292045,
755)
fopen(/homepages/12/d83406494/htdocs/storage/smf/smarty/templates_c/%%3631292045/v_8,
w, 0)
fclose(Resource id #98)
file_exists(/homepages/12/d83406494/htdocs/seemyfotos/gallery/modules/core/classes/helpers/../../../../modules/core/templates/local/EmailTest.tpl)
file_exists(/homepages/12/d83406494/htdocs/seemyfotos/gallery/modules/core/classes/helpers/../../../../modules/core/templates/local/EmailTest.tpl)
file_exists(/homepages/12/d83406494/htdocs/seemyfotos/gallery/modules/core/classes/helpers/../../../../modules/core/templates/EmailTest.tpl)
stat(/homepages/12/d83406494/htdocs/seemyfotos/gallery/modules/core/classes/helpers/../../../../modules/core/templates/EmailTest.tpl)
getParameter smtp.from for core plugin
mail(xx@xx.co.uk, Gallery Email Test, This is a test email
from Gallery2, Content-Type: text/plain; charset="utf-8"
From:
)
realpath(/homepages/12/d83406494/htdocs/seemyfotos/gallery/modules/core/classes/../../../)
smtpmail error: Error (ERROR_PLATFORM_FAILURE) : Could not connect to smtp
host : 111 : Connection refusedin lib/smtp/smtp.php at line
71 (gallerystatus::error)
in modules/core/classes/GalleryPlatform.class at line 1030
in modules/core/classes/helpers/MailHelper_simple.class at
line 99 (unixplatform::mail)
in modules/core/classes/GalleryCoreApi.class at line 2540
(mailhelper_simple::sendtemplatedemail)
in modules/core/AdminCore.inc at line 237
(gallerycoreapi::sendtemplatedemail)
in main.php at line 174 (admincorecontroller::handlerequest)
in main.php at line 87
in main.php at line 80
Then when I am using the checkout module and do the checkout by E-mail option I get:
Error (ERROR_UNKNOWN) : Could not send mail to
* in modules/core/classes/helpers/MailHelper_simple.class at line 102 (gallerystatus::error)
* in modules/core/classes/GalleryCoreApi.class at line 2540 (mailhelper_simple::sendtemplatedemail)
* in modules/checkoutemail/Email.inc at line 171 (gallerycoreapi::sendtemplatedemail)
* in main.php at line 174 (emailcontroller::handlerequest)
* in main.php at line 87
* in main.php at line 80
I think these 2 problems are related, I have searched the forum and not found anything that looks like it would help.
Any Ideas?
Findo
SYS INFO
|
V
Gallery version = 2.0 core 1.0.0n Unpossible
PHP version = 4.3.10 cgi
Webserver = Apache/1.3.33 (Unix)
Database = mysql 4.0.25-standard-log
Toolkits = ArchiveUpload, Exif, NetPBM, Gd
Operating system = Linux infong 2.4 #1 SMP Mon Aug 9 10:21:08 CEST 2004 i686 unknown
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.12) Gecko/20050919 Firefox/1.0.7
Posts: 32509
Could not connect to smtp
host : 111 : Connection refusedin lib/smtp/smtp.php
connection refused... so your smtp connection or your mail server is not configured correctly.
Posts: 15
Would this have anything to do with my host using auth.smtp? and if so how do I get around it?
Posts: 32509
did you try the same smtp settings in another application, e.g. outlook? and did they work?
maybe ask your webhost...
Posts: 15
Valiant,
yes the account I am using is set up and running in outlook 2000.
I'll keep playing around and see if I can fix it.
Posts: 32509
what settings do you use in outlook?
(other than the same smtp server, email address, password which should be the same in g2)?
Posts: 15
Valiant,
The settings are:
pop.myhost.co.uk on port 110
auth.smtp.myhost.co.uk on port 25
auth is the same password as the mail server
any others you need to know
When a new user registers G2 sends mail to me without any problems to tell me...
Posts: 32509
? so the email function of g2 actually is working?
Posts: 15
Umm well it was. I just tested it again by registering as a new user and got the following:
* in modules/core/classes/helpers/MailHelper_simple.class at line 102 (gallerystatus::error)
* in modules/core/classes/GalleryCoreApi.class at line 2540 (mailhelper_simple::sendtemplatedemail)
* in modules/register/classes/GalleryPendingUserHelper.class at line 187 (gallerycoreapi::sendtemplatedemail)
* in modules/register/UserSelfRegistration.inc at line 153 (gallerypendinguserhelper::sendconfirmationemail)
* in main.php at line 174 (userselfregistrationcontroller::handlerequest)
* in main.php at line 87
* in main.php at line 80
But previously it has been working ok.
Posts: 32509
if it has been working before, then your host probably changed something.
or you changed something in g2.
Posts: 15
Every other mail account works on the same host. Like you say I have probably changed something. I think I will do a complete new install and see how that goes.
I'll be back!
Thanks for all the assistance
Posts: 15
Well I have had a complete fresh reinstsall.
I no longer get mail when a new user registers and when I try and send a test mail from the general tab I still get:
Error (ERROR_UNKNOWN) : Could not send mail to
* in modules/core/classes/helpers/MailHelper_simple.class at line 102 (gallerystatus::error)
* in modules/core/classes/GalleryCoreApi.class at line 2540 (mailhelper_simple::sendtemplatedemail)
* in modules/core/AdminCore.inc at line 237 (gallerycoreapi::sendtemplatedemail)
* in main.php at line 174 (admincorecontroller::handlerequest)
* in main.php at line 87
* in main.php at line 80
file_exists(/homepages/12/d83406494/htdocs/storage/smf/smarty/templates_c/%%3631292045)
is_dir(/homepages/12/d83406494/htdocs/storage/smf/smarty/templates_c/%%3631292045)
file_exists(/homepages/12/d83406494/htdocs/storage/smf/smarty/templates_c/%%3631292045)
is_writeable(/homepages/12/d83406494/htdocs/storage/smf/smarty/templates_c/%%3631292045)
file_exists(/homepages/12/d83406494/htdocs/storage/smf/smarty/templates_c/%%3631292045/v_8)
file_exists(/homepages/12/d83406494/htdocs/seemyfotos/gallery/modules/core/classes/helpers/../../../../modules/core/templates/local/EmailTest.tpl)
file_exists(/homepages/12/d83406494/htdocs/seemyfotos/gallery/modules/core/classes/helpers/../../../../modules/core/templates/EmailTest.tpl)
stat(/homepages/12/d83406494/htdocs/seemyfotos/gallery/modules/core/classes/helpers/../../../../modules/core/templates/EmailTest.tpl)
getParameter smtp.from for core plugin
file_exists(/homepages/12/d83406494/htdocs/storage/smf/cache/module/core/0/0/0.inc)
file_exists(/homepages/12/d83406494/htdocs/storage/smf/cache/module/core/0/0)
is_dir(/homepages/12/d83406494/htdocs/storage/smf/cache/module/core/0/0)
rename(/homepages/12/d83406494/htdocs/storage/smf/cache/module/core/0/0/0.incSCTr7s,
/homepages/12/d83406494/htdocs/storage/smf/cache/module/core/0/0/0.inc)
mail(test@--.co.uk, Gallery Email Test, This is a test email
from Gallery2, Content-Type: text/plain; charset="utf-8"
From: ----
)
realpath(/homepages/12/d83406494/htdocs/seemyfotos/gallery/modules/core/classes/../../../)
smtpmail error: Error (ERROR_PLATFORM_FAILURE) : Could not connect to smtp
host : 111 : Connection refusedin lib/smtp/smtp.php at line
71 (gallerystatus::error)
in modules/core/classes/GalleryPlatform.class at line 1030
in modules/core/classes/helpers/MailHelper_simple.class at
line 99 (unixplatform::mail)
in modules/core/classes/GalleryCoreApi.class at line 2540
(mailhelper_simple::sendtemplatedemail)
in modules/core/AdminCore.inc at line 237
(gallerycoreapi::sendtemplatedemail)
in main.php at line 174 (admincorecontroller::handlerequest)
in main.php at line 87
in main.php at line 80
Posts: 32509
still the same error.
i don't know why a reinstall should have changed that.
either your settings are incorrect or your smtp webhost changed something.
explain the matter to them
tell them it worked with the same script a few days ago, but now it doesn't anymore. which is the truth as far as i can tell. so they must have changed something.
also show them the error Could not connect to smtp
host : 111 : Connection refusedin lib/smtp/smtp.php
Posts: 15
I have sent a mail off to the tech people at my host. Lets wait and see what they come back with.
Thanks for the help
Posts: 15
Right,
I have had a play about with the settings again and I am now getting the new user registration mails from the site. With this happening, logic dictates that the smtp is working.
I still can't get the mail setting in the general tab to work. I have created a whole new E-mail account for the domain, I have set it up in outlook and sent test mails so I know the server is working and the account is good..
I have managed to change the error from
host : 111 : Connection refusedin lib/smtp/smtp.php
to
Server response: 504 LOGIN mechanism not supported
the time it takes to return the different errors is different as well. When I change the settings so I get the 504 LOGIN mechanism not supported it is returned in less than a second. When I revert back to the settings that get the connection refused it takes a couple of seconds to return the error. Would this have anything at all to do with the fact my host uses SMTP authentication? If it is how do I get round it?
Findo
Posts: 32509
so g2 is sending mails when users register and it works?
("and I am now getting the new user registration mails from the site" could also mean you have another php application on this server etc)
for the test email feature, already tried leaving the smtp field empty? or the password field? or the host field, ...?
Posts: 15
Valiant,
I took the smtp server out and sent a test mail. It said it was sent successfuly but I have yet to receive it at the other end!
I have removed the SMTP server details, the account user name and password, just leaving the SMTP From address and it works!
Thanks for the pointers.
::Wanders off scratching head::
Posts: 4
I have the same problem just like you.I tried to figure it out just as what you have done,but it is unluckly, I got failed again and again!
What is wrong with my G2?
My configuration:
Is that all right?
There is noproblem with Gmail, for it work probliy with outlook2003!
AN urgent SOS!
Posts: 3
Wow it's working - thanks very very much ;)
Posts: 19
i like you to set but can't work...
Posts: 3
well done. this topic very good for me, up and up, so the server, username,password should be blank, god! up again!
Posts: 28
I was having the same problem, leaving the 'Server' section blank in the email settings but providing a valid 'SMTP From Address' sorted it
Thanks