Thread: C++ email server to communicate with another programs C++ API

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    3

    C++ email server to communicate with another programs C++ API

    Hello, I am interested in hiring someone to complete a fairly simple task for me. I subscribe to (Sang Lucci - Options Made Simple ) who sends out stock options alerts. He is fairly profitable, but since I work all day I cannot be at the computer to make the trades myself when he sends out the email alerts, thus I cannot follow his trades. I am trying to set up a simple C++ email server to receive the alert emails, and then use the API in (https://speedtrader....tedTrading.aspx ) to automatically execute the trades after the code I write extracts the ticker symbol, buy or sell, etc from the email. It may be better to use a different language for the server, but the API is in C++, so it may be easier that way. I know there are lots of open source C++/java/etc email server packages out there, but Ive been out of programming for nearly 10 years so idk what the hell is going on. I could be wrong, but the only thing that the email server would need to be able to do is receive emails as fast as possible (at least within 1/4 of a second, the quicker the better) with one or multiple email addresses. I would like to have some room to play around some with the code that decides how much to buy/sell etc. Could someone here do this for a fee?

    Thanks in advance,

    Chris

  2. #2
    Registered User
    Join Date
    Jan 2012
    Posts
    3
    Is $500 anywhere near the right ballpark for this task?? $1,000????

  3. #3
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    You mean email client -- the server is where you get your mail from. It does not get sent directly to your computer; it gets sent to your ISP, and your software picks it up from them.

    It is not feasible to be checking for mail every 1/4 second either. Every 15 or 30 seconds might be possible, but realistically, every few minutes is probably fine. If you use an email program that alerts you when you have mail, it does not poll more often than that. No one expects completely instantaneous communication via email; for that you would use messaging. I notice Sang Lucci also offers SMS updates, but you can't receive those online. I think there is software you can use if you plug an SMS mobile phone into the computer.

    Have you heard of this?
    Elance

    Also, maybe you should post some contact info
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  4. #4
    Registered User
    Join Date
    Jan 2012
    Posts
    3
    yes, thank you for correcting me on the email terminology. That is exactly why I am asking for help! I think that 15 seconds would be acceptable. Also, thank you for pointing out that I needed to include contact information. you can email me at ctharrigan0704 at gmail dot com

  5. #5
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    This calls for an old-school solution -- Linux box running standard mail server which will receive the emails. Delivery via the ".forwards" file which runs a simple C++ program that parses the email and invokes the trading API.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  6. #6
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by brewbuck View Post
    This calls for an old-school solution -- Linux box running standard mail server which will receive the emails.
    Unfortunately, I don't think you will find it so easy to run your own public mailserver anymore, as major mailservers now use circulated whitelists, and good luck getting myplace.com on it. That's mostly an issue for the from: address tho -- it might work out if you only use the address to receive.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  7. #7
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by MK27 View Post
    Unfortunately, I don't think you will find it so easy to run your own public mailserver anymore, as major mailservers now use circulated whitelists, and good luck getting myplace.com on it. That's mostly an issue for the from: address tho -- it might work out if you only use the address to receive.
    Huh? You're suggesting that anybody who wants to buy a domain and throw up a mailserver has to get some kind of dark-alley authorization from some sneaky SMTP cabal who ordains who is and is not worthy of participating with the rest of the Internet? First I've heard of it.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  8. #8
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    I know gmail had no problem letting me send emails from my own postfix server to my gmail account as late as september last year (haven't tried it after that but i doubt they changed it).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to communicate with the web server
    By nadeem athani in forum Linux Programming
    Replies: 1
    Last Post: 03-09-2011, 09:11 AM
  2. Email Server on c#!
    By andhikacandra in forum C# Programming
    Replies: 0
    Last Post: 10-09-2007, 08:49 PM
  3. using socket to communicate between programs on one computer
    By axr0284 in forum Networking/Device Communication
    Replies: 2
    Last Post: 03-20-2006, 11:53 AM
  4. Email Server
    By Thantos in forum Tech Board
    Replies: 2
    Last Post: 11-18-2003, 06:35 AM
  5. Getting two programs to communicate
    By Thantos in forum Windows Programming
    Replies: 4
    Last Post: 08-27-2003, 07:39 AM