Mail problem

Discuss everything related to Business Directory. All versions. Any questions related to the Business Directory developing or using should be posted to this forum.

Moderators: ne_moj, zewa

Mail problem

Postby FreddoB on Dec 5th, '13, 04:31

I am trying to setup SMTP mail so customers receive an email to confirm their account. I receive a message: SMTP Error: Could not connect to SMTP host.

I have setup mail as follows:

E-mail address: me@mydomain.com I have established this account
SMTP host: mail.mydomain.com This is correct
SMTP Port: 587 - I have tried 25. Either of these works usually
Username: me@mydomain.com The same as e-mail address
Password: correct password

I have used the e-mail account as Webmail and it works fine, I have setup the account on my computer with my mail client and it works fine. It is just not sending from the site.

Thank you for your help.
FreddoB
Junior
Junior
 
Posts: 20
Joined: Nov 16th, '13, 23:41

Re: Mail problem

Postby administrator on Dec 5th, '13, 09:07

Please read this:
http://www.apphp.net/forum/viewtopic.ph ... 13&start=0

Also check your hosting allows sending SMTP requests.
User avatar
administrator
Site Admin
Site Admin
 
Posts: 5911
Joined: Jan 7th, '09, 23:18

Re: Mail problem

Postby FreddoB on Dec 5th, '13, 17:54

I changed in handler_settings.php , line 158 to as follows and the test mail from Settings works fine but system emails are not sent:


$mail->SMTPSecure = ' '; // sets the prefix to the server ( took out ssl )

Please advise how I can activate system emails. Account activation emails are not being sent, but the test works fine.
FreddoB
Junior
Junior
 
Posts: 20
Joined: Nov 16th, '13, 23:41

Re: Mail problem

Postby administrator on Dec 8th, '13, 08:51

Make the same changes in include/functions.common.inc.php function send_email()

also what about $mail->SMTPAuth = true; parameter. Did you also change it?
User avatar
administrator
Site Admin
Site Admin
 
Posts: 5911
Joined: Jan 7th, '09, 23:18

Re: Mail problem

Postby FreddoB on Dec 8th, '13, 22:39

Thank you, Administrator, that worked perfectly. The email system is good. New signups receive email for confirmation and confirmation works.

I had previously changed SMTP to 'false' but it didn't make any difference, because the SMTP works anyway.

Your help is very much appreciated. Your support is excellent, I think the best I have found.
FreddoB
Junior
Junior
 
Posts: 20
Joined: Nov 16th, '13, 23:41

Re: Mail problem

Postby administrator on Dec 9th, '13, 07:25

Please show us you current code - we need this to help other customers.
How did you define
$mail->SMTPSecure and $mail->SMTPAuth ?
User avatar
administrator
Site Admin
Site Admin
 
Posts: 5911
Joined: Jan 7th, '09, 23:18

Re: Mail problem

Postby FreddoB on Dec 9th, '13, 21:48

This is what I did to get the mail system working:

File:Admin/handlers/ handler_settings.php
I didn't edit line 157, but SMTP could be removed if the mailing system doesn't work. I tried with and without and it works fine with the 'ssl' removed in line 158.

Line 158 default is:
$mail->SMTPSecure = 'ssl'; // sets the prefix to the server
I removed ssl so now line 158 reads:
$mail->SMTPSecure = ''; // sets the prefix to the server

File:include/functions.common.inc.php
I didn't edit line 643, but SMTP could be removed if the mailing system doesn't work. I tried with and without and it works fine with the 'ssl' removed in line 644

Line 644 default is:
$mail->SMTPSecure = 'ssl'; // sets the prefix to the server
I removed ssl so now line 644 reads:
$mail->SMTPSecure = ''; // sets the prefix to the server

Hope this helps someone.
FreddoB
Junior
Junior
 
Posts: 20
Joined: Nov 16th, '13, 23:41

Re: Mail problem

Postby administrator on Dec 10th, '13, 08:19

Thank you for your help. In the next version it will be integrated into admin panel, so you could define SMTPSecure SSL, TSL or NO via settings.
User avatar
administrator
Site Admin
Site Admin
 
Posts: 5911
Joined: Jan 7th, '09, 23:18

Re: Mail problem

Postby FreddoB on Dec 10th, '13, 21:23

administrator wrote:Thank you for your help. In the next version it will be integrated into admin panel, so you could define SMTPSecure SSL, TSL or NO via settings.


That sounds good. Thank you.
FreddoB
Junior
Junior
 
Posts: 20
Joined: Nov 16th, '13, 23:41

Re: Mail problem

Postby tukoji on Mar 26th, '15, 05:12

previously changed SMTP to 'false' but it didn't make any difference, because the SMTP works anyway.
We provide fast success in pmp certification dumps exam by using our high quality testking ielts exam prep resources. We offer up-to-dated 101languages dumps with definite guarantee of network+ training success surfacelanguages
tukoji
Newbie
Newbie
 
Posts: 1
Joined: Mar 26th, '15, 05:11


Return to ApPHP Business Directory / uBusinessDirectory Talk {developers/users}

Who is online

Users browsing this forum: No registered users and 1 guest