Need Help Sending Email In Turing

Computer builds, hardware and software discussion or troubleshooting, including peripherals. Essentially a general place to talk about desktop computers.
Locked
Anonymous

Need Help Sending Email In Turing

Post by Anonymous »

Let's say I make a program that copies what you write into a .txt file. How can I made it so it sends that .txt file to an email. Like does it have to do with establishing a connection using Net.OpenURLConnection or something? Please help would be greatly appreciated.

Archived topic from Iceteks, old topic ID:4349, old post ID:35018
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Need Help Sending Email In Turing

Post by Red Squirrel »

I dont know turing, so cant help you with the syntax and functions to establish a network connection, but studying SMTP may help you with the rest. Either use a packet sniffer, or find some RFCs.

http://www.ietf.org/rfc/rfc0821.txt This document is older then I am, but it goes in dept on the workings of SMTP, probably more then you need though...


This looks more friendly:

http://www.yuki-onna.co.uk/email/smtp.html



Archived topic from Iceteks, old topic ID:4349, old post ID:35020
Honk if you love Jesus, text if you want to meet Him!
Anonymous

Need Help Sending Email In Turing

Post by Anonymous »

I'm trying to follow it, but when I establish a connection to gmail, it exits all my Turing windows! But I think I can connect to hotmail.. But II'm not sure cause of this:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>The page cannot be found</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<STYLE type="text/css">
  BODY { font: 8pt/12pt verdana }
  H1 { font: 13pt/15pt verdana }
  H2 { font: 8pt/12pt verdana }
  A:link { color: red }
  A:visited { color: maroon }
</STYLE>
</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>

<h1>The page cannot be found</h1>
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
<hr>
<p>Please try the following:</p>
<ul>
<li>Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.</li>
<li>If you reached this page by clicking a link, contact
 the Web site administrator to alert them that the link is incorrectly formatted.
</li>
<li>Click the <a href="java-script history.back(1)">Back</a> button to try another link.</li>
</ul>
<h2>HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)</h2>
<hr>
<p>Technical Information (for support personnel)</p>
<ul>
<li>Go to <a href="http://go.microsoft.com/fwlink/?linkid=8180">Microsoft Product Support Services</a> and perform a title search for the words <b>HTTP</b> and <b>404</b>.</li>
<li>Open <b>IIS Help</b>, which is accessible in IIS Manager (inetmgr),
 and search for topics titled <b>Web Site Setup</b>, <b>Common Administrative Tasks</b>, and <b>About Custom Error Messages</b>.</li>
</ul>

</TD></TR></TABLE></BODY></HTML>
[code] 

[color=#888888][size=85]Archived topic from Iceteks,  old topic ID:4349, old post ID:35043[/size][/color]
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Need Help Sending Email In Turing

Post by Red Squirrel »

Oh webmail, that's different, and could get more complicated. I would just use pop3/smtp gmail has it so just connect to that server instead.

Archived topic from Iceteks, old topic ID:4349, old post ID:35046
Honk if you love Jesus, text if you want to meet Him!
Anonymous

Need Help Sending Email In Turing

Post by Anonymous »

You try connecting to gmail, or google anything. It closes!

Archived topic from Iceteks, old topic ID:4349, old post ID:35048
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Need Help Sending Email In Turing

Post by Red Squirrel »

Are you fetching the response from the server, and pausing? or is it just connecting then exiting? If there's a pause but it's still exiting, sounds like you got some kind of memory issue. (buffer overflow or something). Not sure how it works in turing but I would assume it would be the same as C++. thing with network coding is you never know what type of response the server will send so you need a way to handle any amount of data.

Archived topic from Iceteks, old topic ID:4349, old post ID:35049
Honk if you love Jesus, text if you want to meet Him!
Locked