Forex
Google

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


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 07-23-2006, 08:04 PM
cardio cardio is offline
Senior Member
 
Join Date: Sep 2005
Location: St Louis, MO, USA
Posts: 176
cardio is an unknown quantity at this point
Help with Send Mail

Hi

I am trying to get an EA to send me an email message when it wants to trade. This will call the SendMail() function. The help says "Sends a message to the e-mail set in the Tools->Options->EMail tab."
My email is provided through charter.net so I put in
smtp server : smtp.charter.net
my login and password, and then I click test - but I get the error message

"Mail: Error connecting to smtp.charter.net"

Any help appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-23-2006, 08:11 PM
cardio cardio is offline
Senior Member
 
Join Date: Sep 2005
Location: St Louis, MO, USA
Posts: 176
cardio is an unknown quantity at this point
Codersguru helps

Hi
I found
http://www.metatrader.info/node/108
and I am trying to implement
Thanks codersguru
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-23-2006, 09:13 PM
cardio cardio is offline
Senior Member
 
Join Date: Sep 2005
Location: St Louis, MO, USA
Posts: 176
cardio is an unknown quantity at this point
Help

I put 'gMail.mqh' in the folder ..\experts\include\ and compile it, no problem.
I put the 'SMail.dll' in the folder ..\experts\libraries\
I put sendMail.mqh in ..\experts\ and try compile it - but it gives the error 'gmail.mqh' -cannot open program file.

I tried the dll example they give in the experts\samples\ folder and it gave no hassles.

Do I have to register the dll with regsvr32 or something.

Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-23-2006, 09:22 PM
cardio cardio is offline
Senior Member
 
Join Date: Sep 2005
Location: St Louis, MO, USA
Posts: 176
cardio is an unknown quantity at this point
Error found

In sendMail.mqh it says
Code:
#include <gMail.mq4>

//this should rather be
#include <gMail.mqh>
Then it all compiles - waiting to see if it will work when the market opens
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-23-2006, 10:15 PM
cardio cardio is offline
Senior Member
 
Join Date: Sep 2005
Location: St Louis, MO, USA
Posts: 176
cardio is an unknown quantity at this point
Also need to change

Also, need to change the path of

string Attachmet = "D:\\....." to the proper path for the screen shots or it also fails.


Found that it works with Outlook express or Outlook - but outlook always gives the message asking if you want to allow the application to send the message - don't know how you switch that off. In Outlook express this is easily shut down. Then I guess one should have code that always changes the title - as Mcafee thinks its a potential worm sending mail with the same subject line.


Great code Codersguru.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 08-09-2006, 01:34 AM
67-17454 67-17454 is offline
Senior Member
 
Join Date: Apr 2006
Location: Oregon
Posts: 110
67-17454 is on a distinguished road
Got this running, but I use Outlook (rather than Outlook Express) and I just don't have the Options in the http://www.metatrader.info/node/108 document. So I end up with the myriad of "someones trying to send out something", "is this OK", "are you sure?" etc.

Any ideas on how to disable these or use an alternative outroute for these e-mail alerts. Great idea, but it's not useful for me if I have to go through three screens to e-mail myself something.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 08-16-2006, 05:19 AM
cardio cardio is offline
Senior Member
 
Join Date: Sep 2005
Location: St Louis, MO, USA
Posts: 176
cardio is an unknown quantity at this point
I will look into this

Hi
I will look into this, but I get the same hassle when using it with 'Outlook'. So I have set 'Outlook express' to my default mail client. And set express to not download my mail from the server.
This works great if you have a machine set up just for trading - on the home computer that everyone is working on not so great.

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 10-23-2006, 03:51 AM
lightkeeper lightkeeper is offline
Junior Member
 
Join Date: Sep 2006
Posts: 1
lightkeeper is on a distinguished road
Hi all,

I've tried to use this sMail dll and it doesn't work for me. It passes a blank parameter for the "to" variable to my email client.

Anyone know or a similar problem or how to fix it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



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
E-mail Notification from Indicators in MT4 webicknell Tools and utilities 5 10-05-2006 02:56 PM
e-mail alert thestellaman Metatrader 4 2 09-11-2006 01:05 PM
i've got this E-mail.. phoenix General Discussion 8 08-17-2006 11:55 AM
Send Order problem intelligent_14 Questions 0 08-03-2006 10:37 AM
Script to Send Emails babarmughal Expert Advisors - Metatrader 4 7 05-16-2006 02:27 AM


All times are GMT. The time now is 07:03 PM.