1 Reply Latest reply on Aug 3, 2006 5:38 AM by Alexander Fedoroff

    Send mail using MailService

    Alexander Fedoroff Newbie

      Need SMTP authorization. How can I configure it ?


      When I try send mail from EJB:


      2006-08-03 08:46:49,168 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
      2006-08-03 08:46:49,168 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth false
      2006-08-03 08:46:49,168 INFO [STDOUT] DEBUG SMTP: trying to connect to host "smtp.xxxxxxx", port 25
      2006-08-03 08:46:49,371 INFO [STDOUT] 220 smtp-5.xxxxxxx ESMTP
      2006-08-03 08:46:49,371 INFO [STDOUT] DEBUG SMTP: connected to host "smtp.masterhost.ru", port: 25
      2006-08-03 08:46:49,371 INFO [STDOUT] EHLO notebook
      2006-08-03 08:46:49,403 INFO [STDOUT] 250-smtp-5.xxxxxxx
      250-AUTH LOGIN PLAIN
      250-AUTH=LOGIN PLAIN
      250-PIPELINING
      250 8BITMIME
      2006-08-03 08:46:49,403 INFO [STDOUT] DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN"
      2006-08-03 08:46:49,403 INFO [STDOUT] DEBUG SMTP: Found extension "AUTH=LOGIN", arg "PLAIN"
      2006-08-03 08:46:49,403 INFO [STDOUT] DEBUG SMTP: Found extension "PIPELINING", arg ""
      2006-08-03 08:46:49,403 INFO [STDOUT] DEBUG SMTP: Found extension "8BITMIME", arg ""
      2006-08-03 08:46:49,403 INFO [STDOUT] DEBUG SMTP: use8bit false
      2006-08-03 08:46:49,403 INFO [STDOUT] MAIL FROM:<xxxxxxx@xxxxxxx>
      2006-08-03 08:46:49,434 INFO [STDOUT] 250 ok
      2006-08-03 08:46:49,434 INFO [STDOUT] RCPT TO:<xxxxxxx@xxxxxxx>
      2006-08-03 08:46:49,450 INFO [STDOUT] 553 authorization failed, relaying denied (#5.7.1)
      2006-08-03 08:46:49,450 INFO [STDOUT] DEBUG SMTP: Invalid Addresses
      2006-08-03 08:46:49,450 INFO [STDOUT] DEBUG SMTP: xxxxxxx@xxxxxxx
      2006-08-03 08:46:49,450 INFO [STDOUT] DEBUG SMTP: Sending failed because of invalid destination addresses
      2006-08-03 08:46:49,450 INFO [STDOUT] RSET
      2006-08-03 08:46:49,481 INFO [STDOUT] 250 flushed
      2006-08-03 08:46:49,481 INFO [STDOUT] QUIT