Alaska Software Inc. - The email sender dosn't work
Username: Password:
AuthorTopic: The email sender dosn't work
Istvn JzsefThe email sender dosn't work
on Tue, 14 Dec 2004 14:31:46 -0100
Hi,

I would like to try the email.exe from the ASINET.
I got error message:

Info: Socket created succesfully
Info: Successfully connected to matavnet.hu
Info: Server response: 220 fe03.axelero.hu ESMTP Sendmail rulez @ Axelero
Internet; Tue, 14 Dec 2004 14:15:08 +0100 (CET)
Info: Sending: HELO nowhere.com
Info: Server response: 250 fe03.axelero.hu Hello 213-163-18-153.vnet.hu
[213.163.18.153], pleased to meet you
Info: Sending: MAIL FROM:<slr@slr.hu>
Info: Server response: 250 2.1.0 <slr@slr.hu>... Sender ok
Info: Sending: RCPT TO:slr@slr.hu
Info: Server response: 550 5.7.1 slr@slr.hu... Relaying denied. Proper
authentication required.
Error: Unexpected response from server 5
Message transmission failed
Info: Sending: QUIT

Where is the mistake?

Thank
            Istvn Jzsef
Phil Ide
Re: The email sender dosn't work
on Tue, 14 Dec 2004 13:45:22 +0000
István,

> Info: Server response: 550 5.7.1 slr@slr.hu... Relaying denied. Proper
> authentication required.
> Error: Unexpected response from server 5
> Message transmission failed
> Info: Sending: QUIT
> 
> Where is the mistake?

You need to log on to the SMTP server. Until you do, you will be an
unathenticated user, which your SMTP server does not allow to relay mail
(this is to prevent the server being hijacked by spammers).

ASINET v1.9 will allow you to connect using authentication.

Regards,

Phil Ide

***************************************
* Xbase++ FAQ, Libraries and Sources: *
* goto: http://www.idep.org.uk/xbase  *
***************************************

On a clear disk you can seek forever.
Istvn JzsefRe: The email sender dosn't work
on Tue, 14 Dec 2004 15:16:45 -0100
Hi Phil,

Here is my short source code.

#pragma library("ASINET10.LIB")
#define CRLF  Chr(13)+Chr(10)

PROCEDURE Main
      LOCAL oSmtp, oMail, oSender, oRecepient, cText, cImage

      cText      := "Hello" + CRLF + CRLF

      oMail      := MIMEMessage():new()
      oSender    := MailAddress():new( "<todi@westel900.net>" )
      oRecipient := MailAddress():new( "<slr@slr.hu>" )

      oMail:setFrom     ( oSender     )
      oMail:setSubject  ( "Greetings" )
      oMail:setMessage  ( cText       )
      oMail:addRecipient( oRecipient  )
      oMail:addHeader   ( "Reply-To", "<todi@westel900.net>" )

      oSmtp := SMTPClient():new( "mail.invitel.hu",25 )
      IF oSmtp:connect()
         nvalue:=oSmtp:send( oMail )
         oSmtp:disconnect()
         ? "Message sent: "+iif(nvalue,"Successful","Unsuccessful")
      ELSE
         ? "Unable to connect to mail server"
      ENDIF
      wait""
   RETURN
Can you help me?
Thank
            Istvn Jzsef

"Phil Ide" <phil@idep.org.uk> az albbiakat rta a kvetkezo zenetben
news:gx0wp48sfzz9.dlg@idep.org.uk...
> Istvn,
>
> > Info: Server response: 550 5.7.1 slr@slr.hu... Relaying denied. Proper
> > authentication required.
> > Error: Unexpected response from server 5
> > Message transmission failed
> > Info: Sending: QUIT
> >
> > Where is the mistake?
>
> You need to log on to the SMTP server. Until you do, you will be an
> unathenticated user, which your SMTP server does not allow to relay mail
> (this is to prevent the server being hijacked by spammers).
>
> ASINET v1.9 will allow you to connect using authentication.
>
> Regards,
> -- 
> Phil Ide
>
> ***************************************
> * Xbase++ FAQ, Libraries and Sources: *
> * goto: http://www.idep.org.uk/xbase  *
> ***************************************
>
> On a clear disk you can seek forever.
Phil Ide
Re: The email sender dosn't work
on Tue, 14 Dec 2004 14:42:29 +0000
István,

> Here is my short source code.

Well, until v1.9 comes out, the only thing you can try is to log-on to the
POP3 server first, as this sometimes works:

  oPop3 := POP3():new(...):connect()
  Sendail(...)
  oPop3:disconnect()

Regards,

Phil Ide

***************************************
* Xbase++ FAQ, Libraries and Sources: *
* goto: http://www.idep.org.uk/xbase  *
***************************************

"16 Hawaiian Love Songs" by Kamanawanaleha - Now on CD!
Istvn JzsefRe: The email sender dosn't work
on Wed, 15 Dec 2004 10:02:07 -0100
Hi Phil,

I would like to send email!
I can download email(s) with the pop3... function. It's working. I can't 
send it.
IJ

"Phil Ide" <phil@idep.org.uk> az albbiakat rta a kvetkezo hrzenetben: 
1rcxvwabgjuvq.dlg@idep.org.uk...
> Istvn,
>
>> Here is my short source code.
>
> Well, until v1.9 comes out, the only thing you can try is to log-on to the
> POP3 server first, as this sometimes works:
>
>  oPop3 := POP3():new(...):connect()
>  Sendail(...)
>  oPop3:disconnect()
>
> Regards,
> -- 
> Phil Ide
>
> ***************************************
> * Xbase++ FAQ, Libraries and Sources: *
> * goto: http://www.idep.org.uk/xbase  *
> ***************************************
>
> "16 Hawaiian Love Songs" by Kamanawanaleha - Now on CD!
Phil Ide
Re: The email sender dosn't work
on Wed, 15 Dec 2004 10:02:04 +0000
István,

> I would like to send email!
> I can download email(s) with the pop3... function. It's working. I can't 
> send it.

Look at the code again.  First, log on to the POP3 server, then send your
email, then log off the POP3 server.  Many SMTP servers will acept a client
without authentication if they are logged on to the POP3 port.

Regards,

Phil Ide

***************************************
* Xbase++ FAQ, Libraries and Sources: *
* goto: http://www.idep.org.uk/xbase  *
***************************************

A virtuoso is a musician with real high morals
Frans VermeulenRe: The email sender dosn't work
on Wed, 15 Dec 2004 11:04:26 +0100
Istvn,

> I would like to send email!

Yup, Phil is aware of that.

Your SMTP-server requires a password, which is not standard
SMTP. That's why you cannot send mail through your server.

Some email servers can be tricked into accepting email to be
sent out, if you first download email -which requires authentification-

If this does not work, you either have to wait for 1.9, or create your
own authenticated SMTP engine, which is really not too hard to do
using ASINet.

HTH,
Frans Vermeulen
Thomas Braun Re: The email sender dosn't work
on Wed, 15 Dec 2004 12:10:59 +0100
Frans Vermeulen wrote:

> If this does not work, you either have to wait for 1.9, or create your
> own authenticated SMTP engine, which is really not too hard to do
> using ASINet.

In addition, more information can be found here:

http://en.wikipedia.org/wiki/SMTP-AUTH
http://www.faqs.org/rfcs/rfc2554.html

Thomas Braun
Istvn JzsefRe: The email sender dosn't work
on Wed, 15 Dec 2004 10:21:30 -0100
Hi Frans,

>Some email servers can be tricked into accepting email to be
> sent out, if you first download email -which requires authentification-

I think the problem is this.
I should have to use in the authentification mode.
Well I'm wating when I will get the new veriso.(1.9)
Thank everybody!
Istvn Jzsef

"Frans Vermeulen" <FransV@VisSpec.nl> az albbiakat rta a kvetkez 
hrzenetben: XCRDW2o4EHA.6512@S15147418...
> Istvn,
>
>> I would like to send email!
>
> Yup, Phil is aware of that.
>
> Your SMTP-server requires a password, which is not standard
> SMTP. That's why you cannot send mail through your server.
>
> Some email servers can be tricked into accepting email to be
> sent out, if you first download email -which requires authentification-
>
> If this does not work, you either have to wait for 1.9, or create your
> own authenticated SMTP engine, which is really not too hard to do
> using ASINet.
>
> HTH,
> Frans Vermeulen
>
>
Thomas Braun Re: The email sender dosn't work
on Wed, 15 Dec 2004 11:51:45 +0100
István József wrote:

> I would like to send email!
> I can download email(s) with the pop3... function. It's working. I can't 
> send it.

You need to authenticate with the SMTP server before you are allowed to 
send email, the error message you are getting...

> Info: Server response: 550 5.7.1 slr@slr.hu... Relaying denied. Proper
> authentication required.

...is exactly telling this.

The problem with that is that the current ASINET lib does not support 
SMTP authentication.

Some internet providers cirumvent problems like this by a method called
"SMTP after POP". 

With this method, you first have to pull messages with POP3 and immediately
after this you connect again using SMTP. 

The server "remembers" the IP address that was used for the POP3 connection
and if the same address is used shortly afterwards, it will allow the
sending of mails for a limited time frame.

This is why Phil recommended to first pull mails via POP3.

But as I said, not all ISPs are allowing this method, since SMTP-AUTH is
the preferred standard method.

HTH
Thomas Braun
Phil Ide
Re: The email sender dosn't work
on Wed, 15 Dec 2004 14:00:47 +0000
Thomas,

> This is why Phil recommended to first pull mails via POP3.

Correct, but it is not actually necessary to pull mail from the POP3 server
- it is only necessary to connect!

Regards,

Phil Ide

***************************************
* Xbase++ FAQ, Libraries and Sources: *
* goto: http://www.idep.org.uk/xbase  *
***************************************

If you take the plunge, return it by Tuesday.