Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Email on turing ASAP
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
mk2000




PostPosted: Wed Jan 27, 2010 5:13 pm   Post subject: Email on turing ASAP

is there a way or coding i send email through turing. like maybe through outloook?


i need this asap. please help
Sponsor
Sponsor
Sponsor
sponsor
ecookman




PostPosted: Wed Jan 27, 2010 5:58 pm   Post subject: RE:Email on turing ASAP

im not sure if yo can do this with thuring, but i have seen it been done with other languages such as MIRC and VB
ProgrammingFun




PostPosted: Wed Jan 27, 2010 5:59 pm   Post subject: RE:Email on turing ASAP

you could get turing to run an e-mail client by using the Sys.exec command (I think its that).
Look this up in the Turing Reference
mk2000




PostPosted: Wed Jan 27, 2010 6:06 pm   Post subject: RE:Email on turing ASAP

thanks but there was a code on this website that let me do it from outlook when i type the persons email. but i lost wher i found it
Dan




PostPosted: Wed Jan 27, 2010 6:11 pm   Post subject: RE:Email on turing ASAP

If you implemented SMTP (or a simple subset of it) you could send e-mails directly from Turing using the Net commands.


Net module: http://compsci.ca/holtsoft/doc/netmodule.html

Wikipedia page on SMTP: http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol

RFC: http://tools.ietf.org/html/rfc5321
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
DtY




PostPosted: Wed Jan 27, 2010 7:06 pm   Post subject: RE:Email on turing ASAP

Quick google search brought this: http://glob.com.au/sendmail/

There's a program that most Unices come with called `sendmail`, which does exactly that. You give it an email, and it sends it. A quick google search for sendmail windows found that.

You need to give it a whole email, complete with all the headers and stuff. It will look something like this

code:
from: your@email
to: other@email

the body of the email


Iirc, those are the only two required headers. You can look around the internet for other headers (to do stuff like cc, bcc, et cetera)
[Gandalf]




PostPosted: Wed Jan 27, 2010 7:13 pm   Post subject: RE:Email on turing ASAP

Confirmed, I implemented a subset of SMTP in Turing using the Net module, however the quirks of various SMTP servers are rather annoying to handle (in general and more so in Turing).

Otherwise, your only other reasonable option is to Sys.Exec into a real email client, perhaps passing in some parameters for email address, etc.

Edit: True, DtY bring up another option, you can send your email data to some web server (again, most likely using the Net module) that then sends the email for you.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: