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.
Mail problem
Moderators: ne_moj, zewa, vadimako, ne_moj, zewa, vadimako
-
- Site Admin
- Posts: 5976
- Joined: Jan 7th, '09, 23:18
- Contact:
Re: Mail problem
Please read this:
http://www.apphp.net/forum/viewtopic.ph ... 13&start=0
Also check your hosting allows sending SMTP requests.
http://www.apphp.net/forum/viewtopic.ph ... 13&start=0
Also check your hosting allows sending SMTP requests.
Re: Mail problem
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.
$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.
-
- Site Admin
- Posts: 5976
- Joined: Jan 7th, '09, 23:18
- Contact:
Re: Mail problem
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?
also what about $mail->SMTPAuth = true; parameter. Did you also change it?
Re: Mail problem
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.
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.
-
- Site Admin
- Posts: 5976
- Joined: Jan 7th, '09, 23:18
- Contact:
Re: Mail problem
Please show us you current code - we need this to help other customers.
How did you define
$mail->SMTPSecure and $mail->SMTPAuth ?
How did you define
$mail->SMTPSecure and $mail->SMTPAuth ?
Re: Mail problem
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.
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.
-
- Site Admin
- Posts: 5976
- Joined: Jan 7th, '09, 23:18
- Contact:
Re: Mail problem
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.
Re: Mail problem
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.
Re: Mail problem
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