Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Peter Parker on June 26, 2017, 03:45:00 AM

Title: Email sent from Agent can't to Gmail
Post by: Peter Parker on June 26, 2017, 03:45:00 AM
Hi guys,

First of all, have a nice day  :)

I have been setting eServices 8.5 for my lab, for E-mail Server, I have designed a scenarios on IRD to test, then I have login to Web API to send a E-mail to E-mail Server, now Agent received my email sent, but while Agent reply it, it doesn't send to an address Gmail which I full fill previously on Web API.

I'm looking forward to hearing from everyone to give me a few ideas to fix it.

Thank everyone so much!  ;D

Log for Interaction Server as well as screen-host as below:

https://ibb.co/g6hUTQ

[code]Id=430
  Type=Request
  AppName=
  AppType=
  Service=Email
  Method=Send
  Parameters=
    [
    ]
  UserData=
    [
      ServiceObjective=0
      Subject="Re: TEST EMAIL"
      Origination_Source="Web"
      LastName="Parker"
      EmailAddress="vuvanthan.ict@gmail.com"
      FirstName="Peter"
      ContactId="00007aCMUXUJ004B"
      RVQDBID=""
      RTargetAgSelDBID="105"
      RTargetPlSelDBID="104"
      RTenantDBID="1"
      CustomerSegment="default"
      ServiceType="default"
      IW_CaseUid="5242c7cc-038a-4f55-90b9-a91b3e9355d1"
      IW_BundleUid="cb3c6a99-94f7-40ed-ba14-c19ad41cbd29"
      To="vuvanthan.ict@gmail.com"
      ReferenceId="<4a078b03-046d-42a7-8ee1-f3c2d04bc7a3@ansv.vn>"
      FromAddress="ipcclab@ansv.vn"
      IW_OriginalAgentEmployeeId="thanvv"
      OriginalAgentEmployeeId="thanvv"
      OriginalAgentUserName="thanvv"
      IWAttachedDataInformation=
      [
        ToastCaseDataBusinessAttribute="CaseDataToast"
        CaseDataBusinessAttribute="CaseData"
        Option.interaction.case-data.frame-color="#FFFFBA00"
        Option.interaction.case-data.header-foreground-color="#FFFFFFFF"
        Option.expression.url="(?#Protocol)(?:(?:ht|f)tp(?:s?)\:\/\/|~/|/)?(?#Username:Password)(?:\w+:\w+@)?(?#Subdomains)(?:(?:[-\w]+\.)+(?#TopLevel Domains)(?:com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum|travel|[a-z]{2}))(?#Port)(?::[\d]{1,5})?(?#Directories)(?:(?:(?:/(?:[-\w~!$+|.,=]|%[a-f\d]{2})+)+|/)+|\?|#)?(?#Query)(?:(?:\?(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)(?:&(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)*)*(?#Anchor)(?:#(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)?"
      ]
      PegRejected=3
      IsHeld=0
      InteractionId="0360CW2SA1VGP002"
      ParentId="00007aCMUXUJ0048"
      TenantId=1
      MediaType="email"
      InteractionType="Outbound"
      InteractionSubtype="OutboundReply"
      InteractionState=1
      IsOnline=0
      IsLocked=0
      Queue="Outbound queue"
      SubmittedBy="7001"
      ReceivedAt="2017-06-26T03:04:35Z"
      SubmittedAt="2017-06-26T03:04:35Z"
      DeliveredAt="2017-06-26T03:04:35Z"
      PlacedInQueueAt="2017-06-26T03:05:51Z"
      MovedToQueueAt="2017-06-26T03:04:35Z"
      SubmitSeq="55774748"
      PlaceInQueueSeq="55774943"
      AssignedAt="2017-06-26T03:04:35Z"
      AssignedTo="thanvv"
      InQueues=
      [
        Outbound queue=""
      ]
    ].
10:05:54.568 Trc 25019 [SvcSrvW-29] <430 0360CW2SA1VGP002 tcp://hcmors01:49344> Service 'Email' method 'Send' started.
10:05:54.568 Trc 23191 [SvcSrvW-29] <430 0360CW2SA1VGP002 tcp://hcmors01:49344> Request:
  Type=Request
  Service=Email
  Method=Send
  Parameters=
    [
    ]
  UserData=
    [
      ParentId="00007aCMUXUJ0048"
      MediaType="email"
      InQueues=
        [
          Outbound queue=""
        ]
      InteractionId="0360CW2SA1VGP002"
      IW_BundleUid="cb3c6a99-94f7-40ed-ba14-c19ad41cbd29"
      IW_CaseUid="5242c7cc-038a-4f55-90b9-a91b3e9355d1"
      AssignedAt="2017-06-26T03:04:35Z"
      ServiceType="default"
      IsHeld=0
      PegRejected=3
      IsOnline=0
      LastName="Parker"
      SubmitSeq="55774748"
      IW_OriginalAgentEmployeeId="thanvv"
      DeliveredAt="2017-06-26T03:04:35Z"
      TenantId=1
      SubmittedBy="7001"
      EmailAddress="vuvanthan.ict@gmail.com"
      FirstName="Peter"
      Queue="Outbound queue"
      InteractionType="Outbound"
      OriginalAgentEmployeeId="thanvv"
      MovedToQueueAt="2017-06-26T03:04:35Z"
      RVQDBID=""
      IWAttachedDataInformation=
        [
          CaseDataBusinessAttribute="CaseData"
          Option.interaction.case-data.header-foreground-color="#FFFFFFFF"
          Option.expression.url="(?#Protocol)(?:(?:ht|f)tp(?:s?)\:\/\/|~/|/)?(?#Username:Password)(?:\w+:\w+@)?(?#Subdomains)(?:(?:[-\w]+\.)+(?#TopLevel Domains)(?:com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum|travel|[a-z]{2}))(?#Port)(?::[\d]{1,5})?(?#Directories)(?:(?:(?:/(?:[-\w~!$+|.,=]|%[a-f\d]{2})+)+|/)+|\?|#)?(?#Query)(?:(?:\?(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)(?:&(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)*)*(?#Anchor)(?:#(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)?"
          ToastCaseDataBusinessAttribute="CaseDataToast"
          Option.interaction.case-data.frame-color="#FFFFBA00"
        ]
      PlacedInQueueAt="2017-06-26T03:05:51Z"
      IsLocked=0
      CustomerSegment="default"
      OriginalAgentUserName="thanvv"
      SubmittedAt="2017-06-26T03:04:35Z"
      Subject="Re: TEST EMAIL"
      RTenantDBID="1"
      To="vuvanthan.ict@gmail.com"
      ReceivedAt="2017-06-26T03:04:35Z"
      ServiceObjective=0
      Origination_Source="Web"
      AssignedTo="thanvv"
      RTargetPlSelDBID="104"
      RTargetAgSelDBID="105"
      InteractionSubtype="OutboundReply"
      PlaceInQueueSeq="55774943"
      FromAddress="ipcclab@ansv.vn"
      ContactId="00007aCMUXUJ004B"
      ReferenceId="<4a078b03-046d-42a7-8ee1-f3c2d04bc7a3@ansv.vn>"
      InteractionState=1
    ].
10:05:54.568 Trc 23191 [SvcSrvW-29] <430 0360CW2SA1VGP002> Request:
  Type=Request
  Target=UCS
  Service=OMInteractions
  Method=GetInteractionContent
  Parameters=
    [
      IncludeAttachments="TRUE"
      InteractionId="0360CW2SA1VGP002"
      IncludeBinaryContent="TRUE"
    ]
  UserData=
    [
    ].
10:05:54.568 Trc 23191 [SvcSrvW-29] <430 0360CW2SA1VGP002> Response:
  Type=Response
  Target=UCS
  Service=OMInteractions
  Method=GetInteractionContent
  Parameters=
    [
      InteractionContent=
        [
          Text="Hello,\n\nHow can I help you?\n\n\n\nOn 6/26/2017 10:03 AM, Peter Parker  wrote:\n> Hi, Can I ask you the question?"
          StructTextMimeType=""
        ]
      InteractionAttributes=
        [
          TheComment=""
          ParentId="00007aCMUXUJ0048"
          Subject="Re: TEST EMAIL"
          ThreadId="00007aCMUXUJ0047"
          OwnerId=105
          EntityTypeId=1
          CanBeParent="true"
          Timeshift=420
          Status=2
          AllAttributes=
            [
              CustomerSegment="default"
              Subject="Re: TEST EMAIL"
              RTenantDBID="1"
              To="vuvanthan.ict@gmail.com"
              IW_BundleUid="cb3c6a99-94f7-40ed-ba14-c19ad41cbd29"
              IW_CaseUid="5242c7cc-038a-4f55-90b9-a91b3e9355d1"
              ServiceType="default"
              ServiceObjective=0
              Origination_Source="Web"
              LastName="Parker"
              RTargetPlSelDBID="104"
              RTargetAgSelDBID="105"
              EmailAddress="vuvanthan.ict@gmail.com"
              FirstName="Peter"
              FromAddress="ipcclab@ansv.vn"
              ContactId="00007aCMUXUJ004B"
              ReferenceId="<4a078b03-046d-42a7-8ee1-f3c2d04bc7a3@ansv.vn>"
              RVQDBID=""
            ]
          TenantId=1
          TypeId="Outbound"
          StartDate="2017-06-26T03:04:30.000Z"
          SubtypeId="OutboundReply"
          Id="0360CW2SA1VGP002"
          ContactId="00007aCMUXUJ004B"
          CreatorAppId=127
          MediaTypeId="email"
        ]
      Attachments=
        [
        ]
      EntityAttributes=
        [
          ToAddresses="vuvanthan.ict@gmail.com"
          FromAddress="ipcclab@ansv.vn"
        ]
    ]
  UserData=
    [
    ].
10:05:54.568 Dbg 23090 [SvcSrvW-29] <430 0360CW2SA1VGP002> Sender : mark as reserved 0360CW2SA1VGP002.
10:05:54.568 Trc 23191 [SvcSrvW-29] <430 0360CW2SA1VGP002> Request:
  Type=Request
  Target=UCS
  Service=OMInteractions
  Method=UpdateInteraction
  Parameters=
    [
      InteractionContent=
        [
        ]
      InteractionAttributes=
        [
          Status=2
          TenantId=1
          TypeId="Outbound"
          ExternalId="reserved_206"
          Id="0360CW2SA1VGP002"
          EntityTypeId=1
          MediaTypeId="email"
        ]
      EntityAttributes=
        [
        ]
    ]
  UserData=
    [
    ].
10:05:54.584 Trc 23191 [SvcSrvW-29] <430 0360CW2SA1VGP002> Response:
  Type=Response
  Target=UCS
  Service=OMInteractions
  Method=UpdateInteraction
  Parameters=
    [
    ]
  UserData=
    [
    ].
10:05:54.584 Dbg 23092 [SvcSrvW-29] <430 0360CW2SA1VGP002> Sender : mark as reserved done 0360CW2SA1VGP002.
10:05:54.584 Dbg 23072 [SvcSrvW-29] <430 0360CW2SA1VGP002> 'From' address : ipcclab@ansv.vn
10:05:54.584 Dbg 23107 [SvcSrvW-29] <430 0360CW2SA1VGP002> Candidate 'To' addresses : [vuvanthan.ict@gmail.com]
10:05:54.584 Dbg 23107 [SvcSrvW-29] <430 0360CW2SA1VGP002> Candidate 'Cc' addresses : []
10:05:54.584 Dbg 23107 [SvcSrvW-29] <430 0360CW2SA1VGP002> Candidate 'Bcc' addresses : []
10:05:54.584 Dbg 23111 [SvcSrvW-29] <430 0360CW2SA1VGP002> Excluded addresses : [ipcclab@ansv.vn]
10:05:54.584 Dbg 23112 [SvcSrvW-29] <430 0360CW2SA1VGP002> Actual 'To' addresses : [vuvanthan.ict@gmail.com]
10:05:54.584 Dbg 23112 [SvcSrvW-29] <430 0360CW2SA1VGP002> Actual 'Cc' addresses : []
10:05:54.584 Dbg 23112 [SvcSrvW-29] <430 0360CW2SA1VGP002> Actual 'Bcc' addresses : []
10:05:54.584 Dbg 23073 [SvcSrvW-29] <430 0360CW2SA1VGP002> UserData : [InQueues=[Outbound queue=""]|IW_BundleUid="cb3c6a99-94f7-40ed-ba14-c19ad41cbd29"|IW_CaseUid="5242c7cc-038a-4f55-90b9-a91b3e9355d1"|AssignedAt="2017-06-26T03:04:35Z"|ServiceType="default"|IsHeld=0|PegRejected=3|LastName="Parker"|SubmitSeq="55774748"|IW_OriginalAgentEmployeeId="thanvv"|_ContainsAttachment="false"|_AttachmentsSize="0"|EmailAddress="vuvanthan.ict@gmail.com"|FirstName="Peter"|OriginalAgentEmployeeId="thanvv"|RVQDBID=""|IWAttachedDataInformation=[Option.expression.url="(?#Protocol)(?:(?:ht|f)tp(?:s?)\:\/\/|~/|/)?(?#Username:Password)(?:\w+:\w+@)?(?#Subdomains)(?:(?:[-\w]+\.)+(?#TopLevel Domains)(?:com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum|travel|[a-z]{2}))(?#Port)(?::[\d]{1,5})?(?#Directories)(?:(?:(?:/(?:[-\w~!$+|.,=]|%[a-f\d]{2})+)+|/)+|\?|#)?(?#Query)(?:(?:\?(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)(?:&(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)*)*(?#Anchor)(?:#(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)?"|Option.interaction.case-data.header-foreground-color="#FFFFFFFF"|CaseDataBusinessAttribute="CaseData"|ToastCaseDataBusinessAttribute="CaseDataToast"|Option.interaction.case-data.frame-color="#FFFFBA00"]|CustomerSegment="default"|OriginalAgentUserName="thanvv"|Subject="Re: TEST EMAIL"|RTenantDBID="1"|To="vuvanthan.ict@gmail.com"|ServiceObjective=0|AssignedTo="thanvv"|Origination_Source="Web"|RTargetPlSelDBID="104"|RTargetAgSelDBID="105"|PlaceInQueueSeq="55774943"|FromAddress="ipcclab@ansv.vn"|ContactId="00007aCMUXUJ004B"|FromPersonal=""|ReferenceId="<4a078b03-046d-42a7-8ee1-f3c2d04bc7a3@ansv.vn>"].
10:05:54.584 Dbg 23083 [SvcSrvW-29] <430 0360CW2SA1VGP002> Acquiring new SMTP connection from pool (current total nb of connections: 1 , free connections: 1 , used connections: 0).
10:05:54.584 Dbg 23100 [SvcSrvW-29] <430 0360CW2SA1VGP002> Activating SMTP connection nb 1.
10:05:54.584 Dbg 23103 [SvcSrvW-29] <430 0360CW2SA1VGP002> SMTP connection 1 already established.
10:05:54.584 Dbg 23084 [SvcSrvW-29] <430 0360CW2SA1VGP002> Acquired new SMTP connection from pool in 0 ms.
10:05:54.584 Dbg 23085 [SvcSrvW-29] <430 0360CW2SA1VGP002> Sending message '<0360CW2SA1VGP002@ansv.vn>'...
10:05:54.584 Dbg 23087 [SvcSrvW-29] <430 0360CW2SA1VGP002> Returning SMTP connection into the pool.
10:05:54.584 Dbg 23106 [SvcSrvW-29] <430 0360CW2SA1VGP002> Passivating SMTP connection nb 1.
10:05:54.584 Dbg 23096 [SvcSrvW-29] <430 0360CW2SA1VGP002> Sender : unreserve 0360CW2SA1VGP002.
10:05:54.584 Trc 23191 [SvcSrvW-29] <430 0360CW2SA1VGP002> Request:
  Type=Request
  Target=UCS
  Service=OMInteractions
  Method=UpdateInteraction
  Parameters=
    [
      InteractionContent=
        [
        ]
      InteractionAttributes=
        [
          Status=2
          NullAttributes="ExternalId"
          ParentId="00007aCMUXUJ0048"
          TenantId=1
          TypeId="Outbound"
          SubtypeId="OutboundReply"
          Id="0360CW2SA1VGP002"
          EntityTypeId=1
          MediaTypeId="email"
        ]
      EntityAttributes=
        [
        ]
    ]
  UserData=
    [
    ].
10:05:54.615 Trc 23191 [SvcSrvW-29] <430 0360CW2SA1VGP002> Response:
  Type=Response
  Target=UCS
  Service=OMInteractions
  Method=UpdateInteraction
  Parameters=
    [
    ]
  UserData=
    [
    ].
10:05:54.615 Dbg 23098 [SvcSrvW-29] <430 0360CW2SA1VGP002> Sender : unreserve done 0360CW2SA1VGP002.
10:05:54.615 Std 25100 [SvcSrvW-29] <430 0360CW2SA1VGP002> Service 'Email' failed in method 'Send' (ErrorCode=701 ErrorMsg=Unexpected error (Not connected) Not connected).
java.lang.IllegalStateException: Not connected
at com.sun.mail.smtp.SMTPTransport.checkConnected(SMTPTransport.java:2206)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1053)
at com.genesyslab.icc.emailserver.service.outbound.EmailSender.smtpSend(EmailSender.java:1138)
at com.genesyslab.icc.emailserver.service.outbound.EmailSender.send(EmailSender.java:622)
at com.genesyslab.icc.emailserver.service.EmailServiceLogic.send(EmailServiceLogic.java:186)
at com.genesyslab.icc.emailserver.service.EmailServiceImpl$3.op(EmailServiceImpl.java:203)
at com.genesyslab.icc.emailserver.service.EmailServiceImpl.doCall(EmailServiceImpl.java:549)
at com.genesyslab.icc.emailserver.service.EmailServiceImpl.Send(EmailServiceImpl.java:198)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.genesyslab.icc.util.esp.ServiceServerPSDKImpl.invokeService(ServiceServerPSDKImpl.java:379)
at com.genesyslab.icc.util.esp.ServiceServerPSDKImpl.process(ServiceServerPSDKImpl.java:244)
at com.genesyslab.icc.util.esp.RequestHandler.run(RequestHandler.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at com.genesyslab.util.concurrent16.NamedThreadFactory$1.run(NamedThreadFactory.java:55)
at java.lang.Thread.run(Thread.java:745)

10:05:54.615 Trc 25020 [SvcSrvW-29] <430 0360CW2SA1VGP002> Service 'Email' method 'Send' ended, processing time (ms): 47.
10:05:54.615 Std 25080 [SvcSrvW-29] <430> Exception message: Unexpected error (Not connected).
10:05:54.615 Trc 25097 [SvcSrvW-29] <430> Response:
  Id=430
  Type=Fault
  AppName=e_mail_srv
  AppType=EMAIL_SERVER
  Service=Email
  Method=Send.
10:05:54.615 Trc 25098 [SvcSrvW-29] <430> 'Email.Send' (request id 430) handling duration : 47 ms.



[/code]
Title: Re: Email sent from Agent can't to Gmail
Post by: Kubig on June 26, 2017, 04:12:26 AM
Is there any SMTP server? Check there what happenned.
Title: Re: Email sent from Agent can't to Gmail
Post by: Peter Parker on June 26, 2017, 04:17:40 AM
Hi Kubig,

I have been fixed, it is simple, just set enable-authentication = true.  ;D
Title: Re: Email sent from Agent can't to Gmail
Post by: cavagnaro on June 26, 2017, 05:29:39 AM
Check your smtp settings... Message is clear. After you test your smtp settings fill correct values. Enable debug at SMTP account and check ESJ logs

Enviado de meu E6633 usando Tapatalk