Jump to content

c++ mail

- - - - -

  • Please log in to reply
6 replies to this topic

#1
sh4

sh4

    Newbie

  • Members
  • PipPip
  • 16 posts
Hello all,

i made a program and i have used a visual c++ 6.0 ,i want to send to mail output of the program may be written in txt file.

is that possible or not?if possible how?
Please help me

Erkin,

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
There are a few ways of doing it:
1) most mail clients provide an interface for requesting to send an email
2) you can implement the SMTP protocol to send an email to your mail server
3) you can implement the mail protocol directly to act like a mail server sending out emails
4) there may be additional libraries available to VC++ 6.0

Note: VC++ 6.0 is very old, is there any reason you aren't using a more recent version?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
sh4

sh4

    Newbie

  • Members
  • PipPip
  • 16 posts
Thanks for your help WingedPanther

VC++ 6.0 is very old yes but more recent versions exe files are doesnt work or causing problems in 32 bit file system computers,

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Were you using managed code in more recent versions?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
sh4

sh4

    Newbie

  • Members
  • PipPip
  • 16 posts
yes i tried in visaul c++ 2008 its giving an error in xp and vista,i didnt try others

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Without knowing the errors, it's hard to know if your issue was invalid C++, compiling 64 bit instead of 32 bit, etc.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#7
natad123

natad123

    Newbie

  • Members
  • Pip
  • 3 posts
try to save your mail to a text file then send the whole file... use fstream for creating a text file..




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users