*

Lvin81

  • **
  • 6 posts
No E-mail is being sent (not even with Gmail server)
« on: June 07, 2021, 12:14:45 AM »
Can anybody help me?

The Osclass is not sending any emails, but when I test mail server in admin it gives no errors. I tried the mailserver of the hosting provider, but they disabled SMTP and advised me to use PHP Mailer.

Further I also tried SMTP.GOOGLE.NL with my google credentials, but the only thing I get is a warning that the site is not secure enough to use the SMTP server..

I tried to log the error but the only thing which is returned is :

[04-Jun-2021 22:04:33 Europe/Amsterdam] PHP Notice:  Undefined index: apache2handler in /var/www/vhosts/markttrading.eu/httpdocs/market/oc-admin/themes/omega/tools/info.php on line 73
[04-Jun-2021 22:04:33 Europe/Amsterdam] PHP Notice:  Trying to access array offset on value of type null in /var/www/vhosts/markttrading.eu/httpdocs/market/oc-admin/themes/omega/tools/info.php on line 73

Can anybody help me by resolvoling the issue? (I even tried to to chmod 777 all files to see if there is a writing problem), but somewhow no email reached the destination (validation email, update email, reacties to adds, etc)...

What am I doing wrong?

*

MB Themes

Re: No E-mail is being sent (not even with Gmail server)
« Reply #1 on: June 07, 2021, 10:54:50 AM »
@Lvin81
Notice you got is not related to mail server at all.
Your hosting must have option to create mail server to your domain, I would not believe hosting does not provide mail servers.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Lvin81

  • **
  • 6 posts
Re: No E-mail is being sent (not even with Gmail server)
« Reply #2 on: June 07, 2021, 05:15:33 PM »
They mention: use PHPMailer....

E-mails versturen vanaf jouw webhostingpakket is alleen mogelijk met een PHP-e-mailscript waarin het 'envelope-from'-adres is opgenomen. Door een 'envelope-from'-adres te vereisen bij het versturen van e-mails vanaf ons platform, wordt de kans verkleind dat kwaadwillenden misbruik maken van het webhostingplatform.

In English:

Sending emails from your web hosting package is only possible with a PHP email script that includes the 'envelope-from' address. Requiring an 'envelope-from' address when sending emails from our platform reduces the chance of malicious people taking advantage of the web hosting platform.

__________________

<?PHP
 

$onderwerp = "E-mailonderwerp";
$inhoud = "Mijn tekstbericht.";
$ontvanger = "[email protected]";
$afzender = "[email protected]";
$headers = array();
$headers[ ] = "MIME-Version: 1.0";
$headers[ ] = "Content-type: text/plain; charset=utf-8";
$headers[ ] = "From: Afzendernaam <{$afzender}>";
$headers[ ] = "Reply-To: Afzendernaam <{$afzender}>";
$headers[ ] = "X-Mailer: PHP/".phpversion();
mail($ontvanger, $onderwerp, $inhoud, implode("\r\n", $headers), "-f".$afzender);

?>

___________________


I saw PHPMailer folder in the script; I think this is also being used to send email?
« Last Edit: June 07, 2021, 05:21:10 PM by Lvin81 »

*

MB Themes

Re: No E-mail is being sent (not even with Gmail server)
« Reply #3 on: June 07, 2021, 07:19:34 PM »
It sounds crazy, then your hosting should provide ways how to do it on different scripts.
Check oc-includes/osclass/utils.php, mail function should be there.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots