Ecere Software
/
sdk
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleaned all trailing white space from source files.
[sdk]
/
samples
/
net
/
smtp
/
smtp.ec
diff --git
a/samples/net/smtp/smtp.ec
b/samples/net/smtp/smtp.ec
index
79e870d
..
b4e52a6
100644
(file)
--- a/
samples/net/smtp/smtp.ec
+++ b/
samples/net/smtp/smtp.ec
@@
-18,7
+18,7
@@
class SMTPSocket : Socket
}
void OnDisconnect(int code)
{
}
void OnDisconnect(int code)
{
- replied = true;
+ replied = true;
}
void WaitReply()
{
}
void WaitReply()
{
@@
-41,15
+41,15
@@
void Send(char * host, char * to, char * from, File file)
socket.WaitReply();
socket.SendString("HELO localhost\n");
socket.WaitReply();
socket.WaitReply();
socket.SendString("HELO localhost\n");
socket.WaitReply();
- socket.Sendf("MAIL from: %s\n", from);
+ socket.Sendf("MAIL from: %s\n", from);
socket.WaitReply();
socket.WaitReply();
- socket.Sendf("RCPT To: %s\n", to);
+ socket.Sendf("RCPT To: %s\n", to);
socket.WaitReply();
socket.WaitReply();
- socket.SendString("DATA\n");
+ socket.SendString("DATA\n");
socket.WaitReply();
socket.SendString("Subject: Email test\n");
socket.SendString("Content-Type: text/html; charset=Windows-1252\n");
socket.WaitReply();
socket.SendString("Subject: Email test\n");
socket.SendString("Content-Type: text/html; charset=Windows-1252\n");
-
+
file.Seek(0, start);
while(!file.Eof())
{
file.Seek(0, start);
while(!file.Eof())
{
@@
-75,5
+75,5
@@
class MyApp : GuiApplication
Send("mail.mailserver.com", "destaddress@destdomain.com", "srcaddress@srcdomain.com", f);
delete f;
getch();
Send("mail.mailserver.com", "destaddress@destdomain.com", "srcaddress@srcdomain.com", f);
delete f;
getch();
- }
+ }
}
}