magento new order send mail not work - email

magento can send new user mail confirmation, newsletter subscription, invoice and shipment success but can't send new order mail and send order email to customer in admin panel.
in database core_email_queue is full of not sent emails
also i did:
sudo crontab -u www-data -e
and add:
* * * * * /bin/sh /home/salar/public_html/cron.sh
this is my AOE Scheduler:
http://i.stack.imgur.com/OiYcw.png

As of magento 1.9, emails are queued up and are sent via the cron job. If you haven't set this up, you can manually run it by pointing your browser to the file, e.g. http://www.yoursite/cron.php . After you run this, you should receive your emails
The extension AOE_Scheduler can help you in confirming that your Magento cronjob has been configured correctly and is running.

Related

Why Magento send newsletter emails to all subscribers one time, not every minute

Magento newsletter cron job work sending newsletter mail only one time. But "cron_schedule" table update newsletter records with success status every minute. I want to send newsletter email by scheduled time. How can i fix it? Please guide me...
Here's how:
Choose the correct timezone to solve the timing issue as follow.
Stores-> Configuration -> General -> General -> Locale Options -> Timezone
You have to set Cronjob to send the newsletter automatically at a scheduled time or you can manually run this command to run cron manually:
php bin/magento cron:run
For more details please visit the below link: https://www.mageworx.com/wiki/cat/magento-2-email-newsletter/
Note: I had to install the SMTP extension (https://www.mageplaza.com/magento-2-smtp/) to send emails from my local host.

Magento 2.0.2 mail not sending

All Mail is not sending from Magento 2.0.2. Mail function is enabled. I tested in index.php file. while testing the PHP mail function like mail($to,$subject,$message, $headers) mail is not sending. I am using Ubuntu server. Let me know anything we need to configure in my php.ini file or any thing else.
You will have to set cron job first, because Magento does not send email without setting cron.
You can send email which is not Magento default email.But when you want to send all Magento default email like order email, shipment email, customer etc then you have set cron first.

How to stop (Cron Daemon) sending multiple emails?

I'm a newbie in server administration (centos 7) and have a problem with email notifications from the cron. There is 1 cron job.
15 * * * * user cd /var/www/domain/public_html/cron && php -d error_reporting="E_ALL & ~E_NOTICE" cron.php
and I set MAILTO in order to be notified about errors. But cron daemon sends me multiple emails every hour or two (also with previous cron errors). Then I wanted to disable email notifications completely so set MAILTO="" but still receiving messages. Probably there is a problem with mail or cron log.
Permission denied after trying to clear maillog.
sudo > /var/log/maillog
Any suggestion what to do in order to receive only one email for the cron job?

Get recipient's email address from a json file in MUTT

So I am using MUTT on my Ubuntu server where I want to email a particular file to the user once he enters his email address in a webpage (hosted on the server).
I am storing his response as a .json file in the server but now I want to send email to the email address provided by him.
As far as i know, MUTT has a command to send the email to a recipient
mutt -s "Mail Subject" username#domain.com -a attachment.zip < mail_body.txt
What I want is, to get the username#domain from a file rather than hardcoding it.
Any leads on how to do this will be appreciated.
Thanks
Turns out that I had to create an executable script for this job.
I stored the email to a variable by using EMAIL=cat email.txt and then used this EMAIL variable as the recipient.

Magento Cart, Newsletter

Magento ver. 1.7.0.0
We are currently using Magento and want to send Newsletters out. It has this build in. We have created templates and then when it gets moved into the queue it sticks there and does not get sent out at the appropriate time. There is no other way of sending the newsletter out immediately and there are no error messages to give you a clue as to why the situation has arisen.
Has anyone come across this and found a fix?
You need to enable cron for scheduled tasks in Magento. Login to your server in ssh (putty), open your crontab;
crontab -e
and add this line to it;
*/5 * * * * php -f /path/to/magento/shell/cron.php
Obviously change /path/to/magento/ to the actual path on the server.
You can now also enable log cleaning in admin which sheds alot of db records which slows Magento down.
Hope this helps
T