Announcement

Collapse
No announcement yet.

configuration about smtp with username/password autentication

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • configuration about smtp with username/password autentication

    Some one can tell me how can I send an email from otm by my smtp server with username/password autentication? My configuration about mail is below:

    File[glog.common.properties]:
    glog.mail.smtp.host=user_xxx/[email protected]
    glog.mail.smtp.port=465
    glog.mail.smtp.useStartTLS=false
    glog.mail.smtp.useSSL=true

    File[glog.properties]:
    [email protected]
    glog.workflow.notify.advisor.name=XX Mail Admin
    [email protected]
    glog.workflow.notify.defaultSmtphost=internal-mail-router.oraclecorp.com
    glog.workflow.notify.advisor.fax=555-555-1212

    When I tendering shipment to carrier by email notification, I got an exception below:

    2021-03-11 12:50:01.417 0 Error Exception [000012] cause.mailInvalidSmtpPassword

    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:423)
    at glog.util.exception.GLException.factory(GLExceptio n.java:481)
    at glog.util.exception.GLException.factory(GLExceptio n.java:457)
    at glog.util.exception.GLException.factory(GLExceptio n.java:453)
    at glog.util.exception.GLException.factory(GLExceptio n.java:441)
    at glog.util.mail.MailProperties.getSessionSingleHost (MailProperties.java:231)
    at glog.util.mail.MailProperties.getSession(MailPrope rties.java:195)
    at glog.util.mail.MailEvent$Listener.trigger(MailEven t.java:980)
    at glog.util.event.MemoryEventQueueRunnable.processEv ent(MemoryEventQueueRunnable.java:145)
    at glog.util.event.MemoryEventQueueRunnable.run(Memor yEventQueueRunnable.java:100)
    at glog.util.event.EventThread.run(EventThread.java:8 6)
    at java.lang.Thread.run(Thread.java:745)
    [transport - SMTP - 1]

    Please correct my configuration, or tell me someting wrong in my configuration, Thanks.

  • #2
    Password should be authorization code from 163

    Comment


    • #3
      Originally posted by FSHI View Post
      Password should be authorization code from 163
      Hi FSHI, Thank you for your reply.

      Yes, I used the authorization code generated by 163 smtp service, but I got the exception - cause.mailInvalidSmtpPassword.

      "/" is the dividing character for the username and password, is that correct? I used to try ":" as the dividing character, but got the exception below:

      2021-03-11 11:53:01.015 0 Error Exception [000012] java.util.NoSuchElementException

      java.util.NoSuchElementException
      at java.util.StringTokenizer.nextToken(StringTokenize r.java:349)
      at glog.util.mail.MailProperties.getSessionSingleHost (MailProperties.java:222)
      at glog.util.mail.MailProperties.getSession(MailPrope rties.java:195)
      at glog.util.mail.MailEvent$Listener.trigger(MailEven t.java:980)
      at glog.util.event.MemoryEventQueueRunnable.processEv ent(MemoryEventQueueRunnable.java:145)
      at glog.util.event.MemoryEventQueueRunnable.run(Memor yEventQueueRunnable.java:100)
      at glog.util.event.EventThread.run(EventThread.java:8 6)
      at java.lang.Thread.run(Thread.java:745)

      Comment

      Working...
      X