[twsocket] FtpCli upload problem

2006-09-21 Thread New Era
[input][input][input][input] I am using the following code in the FtpRequestDone event handler; case RqType of ... ftpPutAsync: begin if(FtpCli.StatusCode= 226) then Delete(FileName);

[twsocket] How to send e-mail directly to the recipient's SMTP server?

2006-09-21 Thread marcos nobre
Hi all. I know that the question is a FAQ one, but I don't understand some parts of explained solution. Let me say... All you need to do is find out the recipient's SMTP server. You can do this by checking the MX record of a DNS lookup to the [EMAIL PROTECTED] part of the address. Then you

Re: [twsocket] How to send e-mail directly to the recipient's SMTPserver?

2006-09-21 Thread [EMAIL PROTECTED]
--- Original Message --- 2) How I will be able to connect in the SMTP server if I only have the email account and I do not have the password? What do you mean with connect ? Under normal circumstances, you would connect to your local SMTP Server (or your ISP's) to send e-mail. In

Re: [twsocket] How to send e-mail directly to the recipient's SMTPserver?

2006-09-21 Thread marcos nobre
Ooops You help a lot. Very, very thanks for the lesson ! I understood what to do, and also understood that still remains some type of problem in the solution that I intend to implement. MN. On 9/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: --- Original Message --- 2) How I

Re: [twsocket] How to send e-mail directly to the recipient'sSMTPserver?

2006-09-21 Thread marcos nobre
The problem?! The main problem is that fact of most SMTP servers reject connections from dynamic IP ranges. Most server policies also reject a connection if the IP cannot be reverse looked up. My program (application) in almost time act as a mobile program (solution), in which it's user is using

Re: [twsocket] How to send e-mail directly to therecipient'sSMTPserver?

2006-09-21 Thread [EMAIL PROTECTED]
Yes, that is definitely a problem. Another alternative would be to ask the user (sender) for his e-mail address and credentials (if necessary), and use *his* ISP's SMTP server for the transaction. That way, the SMTP server is still dynamically determined according to the user. Or perhaps set up

Re: [twsocket] FtpCli upload problem

2006-09-21 Thread Dan
Not sure why it happens, but to guard against this I would do a SIZE command on the remote file after uploading it, then check if it matches the local file size before deleting it. SIZE is supported by every FTP server I have used, although I'm not sure if its in the initial FTP RFC. Dan