Thread: Sending Files with Email using dev C++ (help).

  1. #1
    Registered User
    Join Date
    Jan 2013
    Posts
    4

    Unhappy Sending Files with Email using dev C++ (help).

    Dear forum.
    I were making a dev C++ program which allows to send to someone specific file. But the code all was wrong.

    Could I get help from some one who knows dev C++ better.

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    post your code. explain what's wrong. ask specific questions.

  3. #3
    Registered User hex_dump's Avatar
    Join Date
    Dec 2012
    Posts
    88
    Quote Originally Posted by Roleaxes View Post
    Dear forum.
    I were making a dev C++ program which allows to send to someone specific file. But the code all was wrong.

    Could I get help from some one who knows dev C++ better.
    DevC++ is an Integrated Development Enviroment (IDE). Has almost nothing to do with your code.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Only that dev-c++ hasn't been maintained in the last decade (the last supported OS was win2K), so running it on XP/Vista/Win7/Win8/...... (I'm getting that TurboC obsolescent feeling again) is going to be increasingly unlikely and frustrating.

    Pick something recent.
    Visual Studio Express 2012 Products | Microsoft Visual Studio
    smorgasbordet - Pelles C
    Code::Blocks
    Orwell Dev-C++ | Free Development software downloads at SourceForge.net (this is an updated fork of the original dev-c++, so you might like this the most)

    If you can find a library which does it all for you, then it will be easy.

    If you want to do all the work yourself, you need to read this -> http://www.ietf.org/rfc/rfc2821.txt
    and get yourself settled in for a good month of coding.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    There's always MinGW which includes the useful `make' utility. It's not so bad. For simple projects I start with a batch file like this

    makeit.bat:
    Code:
    @echo off
    call "%userprofile%\bin\env-mingw.bat"
    make main run
    pause
    Then I can build either by double clicking or by typing `make run' at the command prompt

    Another trick is

    Code:
    subst p: "C:\Path\To\Some\Project\Directory"
    Then Windows will assign P: to your project directory. This overcomes some of the limitations of the Windows command prompt.

  6. #6
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Or you can use an IDE which typically have syntax highlighting, code completion and compiling with the press of a single button.
    Seems like a better way to do coding.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Novice
    Join Date
    Jul 2009
    Posts
    568
    Quote Originally Posted by c99tutorial View Post
    There's always MinGW which includes the useful `make' utility. It's not so bad. For simple projects I start with a batch file like this

    makeit.bat:
    Code:
    @echo off
    call "%userprofile%\bin\env-mingw.bat"
    make main run
    pause
    Then I can build either by double clicking or by typing `make run' at the command prompt
    It'd be better to just install MinGW with MSYS, which comes with a shell that gives you a sane if minimalistic *nix environment to work in.
    Disclaimer: This post shows my ignorance at the time of its making. I claim ownership of but not responsibility for all errors in it. Reference at your own peril.

  8. #8
    Registered User hex_dump's Avatar
    Join Date
    Dec 2012
    Posts
    88
    Quote Originally Posted by msh View Post
    It'd be better to just install MinGW with MSYS, which comes with a shell that gives you a sane if minimalistic *nix environment to work in.
    Or you could just partition your HDD and install Ubuntu or Linux mint alongside windows and learn to code on there. Espeacially since all those tools are already on there.

  9. #9
    Novice
    Join Date
    Jul 2009
    Posts
    568
    Quote Originally Posted by hex_dump View Post
    Or you could just partition your HDD and install Ubuntu or Linux mint alongside windows and learn to code on there. Espeacially since all those tools are already on there.
    Madness! (That'd work, too.)
    Disclaimer: This post shows my ignorance at the time of its making. I claim ownership of but not responsibility for all errors in it. Reference at your own peril.

  10. #10
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    I love how this kid just dumped the problem on us, and then ran away when the answer wasn't presented right away.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sending email HELP!
    By hakermania in forum C++ Programming
    Replies: 3
    Last Post: 06-20-2010, 04:40 AM
  2. Sending Email via C
    By fguy817817 in forum Networking/Device Communication
    Replies: 1
    Last Post: 09-04-2008, 01:51 PM
  3. sending email
    By hiya in forum Networking/Device Communication
    Replies: 11
    Last Post: 08-06-2005, 03:05 AM
  4. Sending a email using c++
    By Guttih in forum C++ Programming
    Replies: 4
    Last Post: 12-08-2003, 07:00 PM
  5. Sending Email via C++?
    By Monte in forum C++ Programming
    Replies: 0
    Last Post: 07-30-2002, 01:14 PM