2016-12-01 51 views
0

我是Hybris的新手,我得到了一個在應用程序中配置郵件服務的任務。 郵件的代碼已經寫入,但郵件仍然無法使用。 我試圖配置它,並且smtp配置很好。我正在使用Google的SMTP配置。 然而,當我執行的過程中,它打破的第一個節點引用:Hybris中的電子郵件過程不工作

Something Went Wrong 

我使用下面的鏈接:

http://flexblog.faratasystems.com/index.php/ecommerce-with-hybris-sending-emails/ 

<process xmlns="http://www.hybris.de/xsd/processdefinition" 
     start="generateOneMillionPurchaseEmail" 
     name="oneMillionPurchaseProcess" 
     processClass="com.project.model.OneMillionPurchaseProcessModel" 
     onError="error"> 

    <action id="generateOneMillionPurchaseEmail" bean="generateOneMillionPurchaseEmail"> 
     <transition name="OK" to="sendEmail"/> 
     <transition name="NOK" to="error"/> 
    </action> 

這是第一個節點:generateOneMillionPurchaseEmail 但是當我執行它,它不工作。

任何人都可以建議任何關於如何完成它?

+0

你有任何日誌嗎? –

+0

試試這個:https://www.stackextend.com/hybris/sending-emails-in-hybris/ –

回答

0

首先猜測沒有任何日誌:

得到fakeSMTP(https://nilhcem.github.io/FakeSMTP/),並通過設定值

mail.smtp.server=127.0.0.1 

嘗試將其作爲本地服務作爲谷歌需要身份驗證使用有SMTP服務,沒有任何認證的本地版本將是一個很好的第一個測試。