Re: [twsocket] FtpCli upload problem

2006-09-21 Thread New Era
Thanks for the reply and advice, I looked at the component again it contains a property if I am not wrong isSent or named with a similiar name. Looked the property in the source code, it also checks the status against 226 and with other some constants. Anyway I will do the check you sugges

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 -Or

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] 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 the recipient'sSMTPserver?

2006-09-21 Thread [EMAIL PROTECTED]
> Ooops You help a lot. > Very, very thanks for the lesson ! No problem. > I understood what to do, and also understood that still > remains some type of problem in the solution that I intend to implement. What kind of problems? What is the overall solution you want to implement? -dZ. --

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)

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

2006-09-21 Thread marcos nobre
I saw the DNSLoopkup and NSLook1 ICS's demos and got some basic understanding, but some doubts persists. What kind (type) of info will DNSQuery will supply to me in way that I must use in the SMTP connection with recipient's SMTP server ? MN. On 9/21/06, marcos nobre <[EMAIL PROTECTED]> wrote:

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

2006-09-21 Thread Arno Garrels
marcos nobre wrote: > > 1) How can I check the MX record of a DNS lookup ? I would have to use > TDNSQuery to do this ? Can any one give me a little peace of code to > do this checking ? I think it is included in the TDnsQuery demo. > > 2) How I will be able to connect in the SMTP server if I

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.

[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 jus

[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);