0

My Magento 2 webshop don't send any email. My cronjob is running and The settings are the same as in this ticket: order confirmation email not send in magento 2

Does anyone have any idea what might be wrong?

I'm using Magento 2.1.5

1 Answer 1

-2

Create simple php script on root of magento and check if its working or not. Change $to and $from email address.

<?php
$to = "your email address";
$subject = "PHP Test mail";
$message = "Hello! This is a simple email message.";
$from = "random email address";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
?> 
3
  • I have received the email
    – NielN98
    Commented Sep 7, 2017 at 20:14
  • then php mail is working fine. Commented Sep 7, 2017 at 20:25
  • Yes, I know. So the problem is in my Magento webshop? Do you have another idea?
    – NielN98
    Commented Sep 7, 2017 at 20:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.