@AliceTheCamel said:
thanks for the replies. I have already tried using multiple SMTP providers:
-sendpulse
-google
-mailjet
However, none have been successful. I believe this is because they require SSL or TLS and i get the error “Apache Module mod_ssl is not loaded” therefore no SSL, therefore no SMTP.
I tried to follow this discussion and you keep referring to mod_ssl
for things which have nothing to do with mod_ssl
as far as I know. mod_ssl
is a module for the Apache web server which allows you to serve HTTPS requests through Apache.
That module is not installed on our servers because the SSL connection is handled by the NGINX webserver which sits before Apache on our servers.
But setting up SMTP connections from PHP or a PHP-based website depends on the modules available for PHP. The webserver does not affect outgoing connections from PHP to external services, like external websites or SMTP servers.
If your website code checks for Apache modules instead of SSL support in PHP itself, then the issue is with the website code.
@AliceTheCamel said:
I have enabled cloudflare however when i use CSR and privatekey that infinity/ifastnet provides to request an SSL certificate it gives me the error “this cert is not for this domain”. I think this may be because cloudflare uses a shared SSL model where they bundle fifty-some clients into one cert.
You can install multi domain certs here, but the certificate must be issued by a recognized SSL provider. Cloudflare’s Origin Certificates are not from a recognized SSL provider, they are more or less self signed certificates from Cloudflare. So you cannot install them here.
@AliceTheCamel said:
How is it that scripts like vBulletin and Wordpress can send email to clients without the use of SMTP servers? This is the first time i’ve had to set something up of this nature. Could i not possibly create a plugin or something to send mail the same way wordpress would?
First of all, I would like to stress that the SSL from your visitors to your website and from your website to an external server are completely separated from each other. Cloudflare can help add SSL from your visitors to your website, but Cloudflare does not affect the ability to do SMTP connections from your site. Connections between your site and an external service do not pass through Cloudflare (unless the external service uses Cloudflare as well).
An alternative to using an SMTP server is to use PHP’s built-in mail()
function. However, that function is heavily restricted on InfinityFree, so for most email you need to use an external SMTP service anyways.