Forex
Google

Go Back   Forex Trading > Discussion Areas > Setup Questions
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-25-2006, 02:47 PM
skyline's Avatar
skyline skyline is offline
Member
 
Join Date: Apr 2006
Location: Pisa
Posts: 63
skyline is on a distinguished road
Problem sending email

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$
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-25-2006, 03:10 PM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 15,160
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-25-2006, 03:29 PM
skyline's Avatar
skyline skyline is offline
Member
 
Join Date: Apr 2006
Location: Pisa
Posts: 63
skyline is on a distinguished road
Quote:
Originally Posted by newdigital
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
Thx NewDigital
i will look carefull to those links
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Email newdigital Tools and utilities 48 06-27-2008 12:22 AM
Email sending jyrik Tools and utilities 4 01-21-2007 11:15 AM
email set up gmail dazminder Setup Questions 2 11-29-2006 11:14 AM
Metatrader email? hhsmoney General Discussion 4 11-19-2006 04:31 PM
Problem with Email.... babarmughal Metatrader 4 6 10-05-2006 11:57 AM


All times are GMT. The time now is 05:58 AM.