Hi there,
I'm using SendMail() to send out emails when some of my indicator calculation values have changed. I noticed that SendMail uses the server date/time for sending out emails. This is kind of confusing because my server time is 2 hour ahead.
I.e. the indicator sends out an email at 8:00 am (local time) but my email program shows 10:00 am. Even if this time is in the future. So it seems the server time is some kind of hard coded into the email.
Is there any way to change this?
You can easy try it if you just send a test email from the options->email dialog and your server time and local time does not match.
I have just written two articles about time:
- www.mql5.com
I have just written two articles about time:
Hi Carl,
thanks for your reply. Very useful articles.
I'm aware of those date/time "issues" and developed some technics and workarounds myself to deal with it. Bu it does not help with my SendMail() problem. Because SendMail creates the email header by itself and as it seems I have no option to set the email date/time manually. Or am I missing something?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi there,
I'm using SendMail() to send out emails when some of my indicator calculation values have changed. I noticed that SendMail uses the server date/time for sending out emails. This is kind of confusing because my server time is 2 hour ahead.
I.e. the indicator sends out an email at 8:00 am (local time) but my email program shows 10:00 am. Even if this time is in the future. So it seems the server time is some kind of hard coded into the email.
Is there any way to change this?
You can easily try it if you just send a test email from the options->email dialog and your server time and local time does not match.