View Single Post
  #2 (permalink)  
Old 08-25-2006, 03:10 PM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 16,311
Blog Entries: 106
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
Originally Posted by skyline
Hi All
I'm trying to code a procedure to send an email but it doesn't send it.
In particular i guess there is an error related to \r\n usage in Body part of email :

Code:
string BodyEmail = " Account Balance = "+DoubleToStr(AccountBalance(),2)+"$"+
                          "\r\nAccount Equity =+DoubleToStr(AccountEquity(),2)+"$"+
                          "\r\nAccount Profit ="+DoubleToStr(AccountProfit(),2);
So my question is : how can i code Body email to be able to show something like this in body email ?

Account Balance = 1234$
Account Equite = 1234$
Account Profit = 1234$
I don't know the answer on your particular question but some weeks ago I collected everything related to email coding to one thread: coding, examples, sample indicators and so on. Besides we have one indicator with email already (some version of PriceChannel from Igorad). It was coded to have sms (but via email of course).
So, it is here Email
Attached Files
File Type: mq4 PriceChannel_Stop_v1.2.mq4 (6.3 KB, 16 views)
Reply With Quote