Why does my SENDMAIL not work?

 
I have lines of code like the following:
if(Ordersend(....)>=0)
sendmail(...);

It does NOT work. mails are never sent out. Anyone can help?
Thanks
 
 

I have setup the email account, test messages were successfully sent. but the code do not work. why?
I can not figure out what is wrong with the code:
if(OrderSend(......)>=0)
Sendmail(......);

Anyone can help?
thanks

 
Modify code and check it on-line

if(OrderSend(......)>=0)
      {
      Print("Try to send mail at ",TimeToStr(TimeCurrent()));
      Sendmail(......);
      }
 
I insert the code Print("Try to send mail...), Nothing happened. I did not see "try to send mail at..." in the journal, but pending orders were placed. Anyone pls help. thanks.
 
Put whole code, please. In back-testing sending of e-mails is not allowed.
 

It is a live test, I have seen the message "try to send mail at....", emails were not sent. why?
thanks

 
Hi Marshall,

I had also big troubles sending emails,
I learned, that SSL connections for SMPT might not work.

I tried several smtp server, finally one worked.

My debugging process:
1) go to Tools->Options->eMail
2) Enter a SMTP server and press the Test button.
3) Open the terminal journal windows: View->Terminal->Journal
after a few minutes you see there if your mail server is correct and an email can be sent.

4) if you get an error here, you can´t send messages within your mql code.

Remark: if you have to enter a different port it looks like this: yoursmtpserver. com:465

I hope this gives you an idea where to start.

br
fari
 

Is there any free non-SSL SMTP server out there that we can describe to?

I have accounts with google, yahoo, hotmail, godaddy, but none of them works. I think they are all Secure SMPT server.

Thanks.

fari:
Hi Marshall,

I had also big troubles sending emails,
I learned, that SSL connections for SMPT might not work.

I tried several smtp server, finally one worked.

My debugging process:
1) go to Tools->Options->eMail
2) Enter a SMTP server and press the Test button.
3) Open the terminal journal windows: View->Terminal->Journal
after a few minutes you see there if your mail server is correct and an email can be sent.

4) if you get an error here, you can´t send messages within your mql code.

Remark: if you have to enter a different port it looks like this: yoursmtpserver. com:465

I hope this gives you an idea where to start.

br
fari

 
Hi Guys,

So is not possible to use the SMTP from Google's servers, right? and if that is possible, could anyone kindly let me know how.

So far, I've tried smtp.gmail.com:587 , with my User Name and Password, but with no success.

thanks a lot,
 

I know this was posted in April but could you tell us the name of the SMTP server that worked?


fari wrote:
Hi Marshall,

I had also big troubles sending emails,
I learned, that SSL connections for SMPT might not work.

I tried several smtp server, finally one worked.

My debugging process:
1) go to Tools->Options->eMail
2) Enter a SMTP server and press the Test button.
3) Open the terminal journal windows: View->Terminal->Journal
after a few minutes you see there if your mail server is correct and an email can be sent.

4) if you get an error here, you can´t send messages within your mql code.

Remark: if you have to enter a different port it looks like this: yoursmtpserver. com:465

I hope this gives you an idea where to start.

br
fari

Reason: