Showing results for 
Search instead for 
Did you mean: 

Mail sending but incorrectly, received from admin email (detailed post)

Mail sending but incorrectly, received from admin email (detailed post)

Hello everyone,


I have been trouble shooting this issue for days now and i can't get it to work and was hoping for a second pair of eyes on this one.


So my order emails where working fine until Magento switched it to be handled by CRON, after which i found the queue filled up with unsent emails. After this discovery i have setup cron jobs for Magento which indeed processed the queue and send out all the emails.


Now here is the strange part, i received this email not from the email i defined in the setup but rather from the admin email account, and it looks like it is being forwarded.


This is the header which is on top of my sales email. (i changed the email addresses in the email below for privacy reasons, but is indeed setup correctly), the remainder of the email is in plain text with mail-inline.css shown as plain text as well. (see last item of this post.)


The email header.>
es <>
Date: Fri, 02 Dec 2016 21:20:02 +0000
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
MIME-Version: 1.0
Message-Id: <1480713602.97806.19@vs>

So first thing, get AOE scheduler installed to see if the crons are working.


It tells me there is a heartbeat, and the cron is working, i confirmed this by looking in the DB to see if the mails would send and they do, it tells me 'processed'' and a time. sometimes especially after install AOE does let the task stack up and would cancel some because of the stack up but the one next in line will just run fine. (see CRON.log at the end of this post)


I did run the following PHP script on my root folder, which worked just fine and i received the email in my mail box without any errors, or plain text, or the forward header. (also our contact form is working perfectly) 


ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "emailtest@YOURDOMAIN";
$subject = "PHP Mail Test script";
$message = "This is a test to check the PHP Mail functionality";
$headers = "From:" . $from;
mail($to,$subject,$message, $headers);
echo "Test email sent";

Some website's posted out that the following line may cause issues in the, both the default and the one from AOE


PHP_BIN=`which php`

Changed to 
#PHP_BIN=`which php`


My cron settings at my provider are: (please note that i do not have SSH access to the server.



Run every 5 min, (*/5****)
/usr/bin/php -q /storage/web/public/sites/

Running on Magento with the theme: Ultimo - fluid responsive magento theme from theme forrest (updated for, and the Siswo payment module, no other extensions.


I would be the most great full man in the world if some of you could assist me in this challenge.




Tags (1)

Re: Mail sending but incorrectly, received from admin email (detailed post)

2016-12-02T19:25:21+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T19:25:21+00:00 DEBUG (7): History cleanup (Duration: 0.07 sec)
2016-12-02T19:30:05+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T19:30:05+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T19:30:05+00:00 DEBUG (7): Start: captcha_delete_expired_images
2016-12-02T19:30:05+00:00 DEBUG (7): Stop: captcha_delete_expired_images
2016-12-02T19:30:05+00:00 DEBUG (7): Start: captcha_delete_old_attempts
2016-12-02T19:30:05+00:00 DEBUG (7): Stop: captcha_delete_old_attempts
2016-12-02T19:30:05+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T19:30:05+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T19:30:05+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T19:30:05+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T19:35:03+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T19:35:03+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T19:35:04+00:00 DEBUG (7): Generated schedule. Newest task is scheduled at "2016-12-02 19:54:00". (Duration: 0.4 sec)
2016-12-02T19:55:21+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T19:55:22+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T19:55:22+00:00 DEBUG (7): Start: captcha_delete_expired_images
2016-12-02T19:55:22+00:00 DEBUG (7): Stop: captcha_delete_expired_images
2016-12-02T19:55:22+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T19:55:22+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T19:55:22+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T19:55:22+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T19:55:22+00:00 DEBUG (7): Generated schedule. Newest task is scheduled at "2016-12-02 20:14:00". (Duration: 0.31 sec)
2016-12-02T19:55:22+00:00 DEBUG (7): History cleanup (Duration: 0.13 sec)
2016-12-02T20:00:28+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T20:00:28+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T20:00:28+00:00 DEBUG (7): Start: captcha_delete_expired_images
2016-12-02T20:00:28+00:00 DEBUG (7): Stop: captcha_delete_expired_images
2016-12-02T20:00:28+00:00 DEBUG (7): Start: captcha_delete_old_attempts
2016-12-02T20:00:28+00:00 DEBUG (7): Stop: captcha_delete_old_attempts
2016-12-02T20:00:28+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T20:00:28+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T20:00:28+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T20:00:28+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T20:15:08+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T20:15:08+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T20:15:08+00:00 DEBUG (7): Start: captcha_delete_expired_images
2016-12-02T20:15:08+00:00 DEBUG (7): Stop: captcha_delete_expired_images
2016-12-02T20:15:08+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T20:15:08+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T20:15:08+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T20:15:08+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T20:15:08+00:00 DEBUG (7): Generated schedule. Newest task is scheduled at "2016-12-02 20:34:00". (Duration: 0.32 sec)
2016-12-02T20:15:08+00:00 DEBUG (7): History cleanup (Duration: 0.09 sec)
2016-12-02T20:20:02+00:00 DEBUG (7): Start: captcha_delete_expired_images
2016-12-02T20:20:02+00:00 DEBUG (7): Stop: captcha_delete_expired_images
2016-12-02T20:20:02+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T20:20:02+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T20:20:02+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T20:20:02+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T20:20:02+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T20:20:02+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T20:25:02+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T20:25:02+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T20:25:02+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T20:25:02+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T20:25:02+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T20:25:02+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T20:30:21+00:00 DEBUG (7): Start: captcha_delete_expired_images
2016-12-02T20:30:21+00:00 DEBUG (7): Stop: captcha_delete_expired_images
2016-12-02T20:30:21+00:00 DEBUG (7): Start: captcha_delete_old_attempts
2016-12-02T20:30:21+00:00 DEBUG (7): Stop: captcha_delete_old_attempts
2016-12-02T20:30:21+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T20:30:21+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T20:30:21+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T20:30:21+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T20:30:22+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T20:30:22+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T20:30:22+00:00 DEBUG (7): Pending schedule for "core_email_queue_send_all" at "2016-12-02 20:31" already exists 1 times. Skipping.
2016-12-02T20:30:22+00:00 DEBUG (7): Pending schedule for "core_email_queue_send_all" at "2016-12-02 20:32" already exists 1 times. Skipping.
2016-12-02T20:30:22+00:00 DEBUG (7): Pending schedule for "core_email_queue_send_all" at "2016-12-02 20:33" already exists 1 times. Skipping.
2016-12-02T20:30:22+00:00 DEBUG (7): Pending schedule for "core_email_queue_send_all" at "2016-12-02 20:34" already exists 1 times. Skipping.
2016-12-02T20:30:22+00:00 DEBUG (7): Generated schedule. Newest task is scheduled at "2016-12-02 20:49:00". (Duration: 0.29 sec)
2016-12-02T20:30:22+00:00 DEBUG (7): History cleanup (Duration: 0.07 sec)
2016-12-02T20:35:15+00:00 DEBUG (7): Start: captcha_delete_expired_images
2016-12-02T20:35:15+00:00 DEBUG (7): Stop: captcha_delete_expired_images
2016-12-02T20:35:15+00:00 DEBUG (7): Start: captcha_delete_old_attempts
2016-12-02T20:35:15+00:00 DEBUG (7): Stop: captcha_delete_old_attempts
2016-12-02T20:35:15+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T20:35:15+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T20:35:15+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T20:35:15+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T20:35:15+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T20:35:15+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T20:40:19+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T20:40:19+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T20:40:19+00:00 DEBUG (7): Start: captcha_delete_expired_images
2016-12-02T20:40:19+00:00 DEBUG (7): Stop: captcha_delete_expired_images
2016-12-02T20:40:19+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T20:40:19+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T20:40:19+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T20:40:19+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T20:45:01+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T20:45:01+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T20:45:01+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T20:45:01+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T20:45:01+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T20:45:01+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T20:45:01+00:00 DEBUG (7): History cleanup (Duration: 0.04 sec)
2016-12-02T20:50:29+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T20:50:29+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T20:50:29+00:00 DEBUG (7): Generated schedule. Newest task is scheduled at "2016-12-02 21:09:00". (Duration: 0.38 sec)
2016-12-02T20:55:06+00:00 DEBUG (7): Start: captcha_delete_expired_images
2016-12-02T20:55:07+00:00 DEBUG (7): Stop: captcha_delete_expired_images
2016-12-02T20:55:07+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T20:55:07+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T20:55:07+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T20:55:07+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T20:55:07+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T20:55:07+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T20:55:07+00:00 DEBUG (7): History cleanup (Duration: 0.05 sec)
2016-12-02T21:00:03+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T21:00:03+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T21:00:03+00:00 DEBUG (7): Start: captcha_delete_expired_images
2016-12-02T21:00:03+00:00 DEBUG (7): Stop: captcha_delete_expired_images
2016-12-02T21:00:03+00:00 DEBUG (7): Start: captcha_delete_old_attempts
2016-12-02T21:00:03+00:00 DEBUG (7): Stop: captcha_delete_old_attempts
2016-12-02T21:00:03+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T21:00:03+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T21:00:03+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T21:00:03+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T21:05:06+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T21:05:06+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T21:05:06+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T21:05:06+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T21:05:06+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T21:05:06+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T21:10:16+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T21:10:16+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T21:10:16+00:00 DEBUG (7): Generated schedule. Newest task is scheduled at "2016-12-02 21:29:00". (Duration: 0.34 sec)
2016-12-02T21:10:16+00:00 DEBUG (7): History cleanup (Duration: 0.17 sec)
2016-12-02T21:15:16+00:00 DEBUG (7): Start: captcha_delete_expired_images
2016-12-02T21:15:16+00:00 DEBUG (7): Stop: captcha_delete_expired_images
2016-12-02T21:15:16+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T21:15:16+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T21:15:16+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T21:15:16+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T21:15:16+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T21:15:16+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T21:20:02+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T21:20:02+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T21:20:02+00:00 DEBUG (7): Start: captcha_delete_expired_images
2016-12-02T21:20:02+00:00 DEBUG (7): Stop: captcha_delete_expired_images
2016-12-02T21:20:02+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T21:20:02+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T21:20:02+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T21:20:02+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T21:25:14+00:00 DEBUG (7): Start: aoescheduler_heartbeat
2016-12-02T21:25:14+00:00 DEBUG (7): Stop: aoescheduler_heartbeat
2016-12-02T21:25:14+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T21:25:14+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T21:25:14+00:00 DEBUG (7): Start: newsletter_send_all
2016-12-02T21:25:14+00:00 DEBUG (7): Stop: newsletter_send_all
2016-12-02T21:25:14+00:00 DEBUG (7): History cleanup (Duration: 0.07 sec)
2016-12-02T21:30:29+00:00 DEBUG (7): Start: core_email_queue_send_all
2016-12-02T21:30:29+00:00 DEBUG (7): Stop: core_email_queue_send_all
2016-12-02T21:30:30+00:00 DEBUG (7): Generated schedule. Newest task is scheduled at "2016-12-02 21:49:00". (Duration: 0.32 sec)