Cant send email. Smtp connect failed (TLS)

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
User avatar
yae
Joomla! Intern
Joomla! Intern
Posts: 95
Joined: Sun Jul 12, 2009 6:03 pm

Cant send email. Smtp connect failed (TLS)

Post by yae » Tue Nov 17, 2015 11:20 am

Hello:

I can send mails using PHP functions (mailer: php). But now I need to send them using SMTP with TLS. Then, I configure these parameters in the backend, but I am getting this error
"SMTP Error! Could not connect to SMTP host."
I 've looked at log "php errors" in my hosting and I see these errors:

Code: Select all

PHP Warning:  is_writable(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/usr/home/xxxxxxxxxx.es/:/home/xxxxxxxx.es/:/usr/home/services/:/usr/share/php/) in /usr/home/xxxxxxxxx.es/web/libraries/joomla/filesystem/path.php on line 200
any idea?
Last edited by yae on Wed Nov 18, 2015 4:07 pm, edited 1 time in total.
Regards

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30931
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Sending mails via SMTP. Error: open_basedir restriction

Post by Per Yngve Berg » Tue Nov 17, 2015 3:00 pm

/tmp is not included in your server's open_basedir. Contact your host.

User avatar
yae
Joomla! Intern
Joomla! Intern
Posts: 95
Joined: Sun Jul 12, 2009 6:03 pm

Post by yae » Wed Nov 18, 2015 4:05 pm

Hello:

This error is solved. I have updated "subject". But I still can not send emails with TLS . I can send emails via SMTP without TLS, but if I select TLS, returns this error: "SMTP Error! Could not connect to SMTP host."

My hosting provider says that this should be an issue of Joomla.
SMTP Authentication = Yes
SMTP Security = TLS or SSL
SMTP Port = 587 or 578
SMTP Username = [mail id]
SMTP Password = xxxxxx
SMTP Host = smtp.xxxxx.es or localhost
Returns error.

This:
SMTP Authentication = Yes
SMTP Security = NONE
SMTP Port = 578
SMTP Username = [mail id]
SMTP Password = xxxxxx
SMTP Host = smtp.xxxxx.es
works well.

But I need send secure mails
Regards

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30931
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Sending mails via SMTP. Error: open_basedir restriction

Post by Per Yngve Berg » Wed Nov 18, 2015 4:08 pm

Is OpenSSL installed on the server?

User avatar
yae
Joomla! Intern
Joomla! Intern
Posts: 95
Joined: Sun Jul 12, 2009 6:03 pm

Re: Cant send email. Smtp connect failed (TLS)

Post by yae » Wed Nov 18, 2015 4:39 pm

Yes.
Regards

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30931
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Cant send email. Smtp connect failed (TLS)

Post by Per Yngve Berg » Wed Nov 18, 2015 6:25 pm

There is no point in using TSL/SSL for sending mails internally in the server between the Joomla Web Server and the SMTP Server. If it goes over a network to another server yes, but not internally on the same server.

User avatar
yae
Joomla! Intern
Joomla! Intern
Posts: 95
Joined: Sun Jul 12, 2009 6:03 pm

Re: Cant send email. Smtp connect failed (TLS)

Post by yae » Wed Nov 18, 2015 6:56 pm

to send encrypted mail to receiver. Ie.: from my host to Gmail. https://www.google.com/transparencyrepo ... ?hl=en-419
Regards

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30931
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Cant send email. Smtp connect failed (TLS)

Post by Per Yngve Berg » Wed Nov 18, 2015 8:45 pm

The transmission you are configuring is the transport between Joomla and the SMTP Server only. How it sent from the SMTP server to the mail Server of the recipient is configured at the mail server.

User avatar
yae
Joomla! Intern
Joomla! Intern
Posts: 95
Joined: Sun Jul 12, 2009 6:03 pm

Re: Cant send email. Smtp connect failed (TLS)

Post by yae » Thu Nov 19, 2015 10:50 am

Hello:

then, to send encrypted, is the task of hosting provider configure the mail server?
Regards


Locked

Return to “General Questions/New to Joomla! 1.5”