2015-07-13 83 views
0

我已經盡我所知配置了出站端點,但組件仍然無法發送任何郵件。Mule SMTP不發送任何郵件

我使用的是最新的工作室3.7開發和最新運行時

<smtp:outbound-endpoint host="smtp.gmail.com" port="465" user="aaa%40gmail.com" password="password" connector-ref="Gmail" to="zhk%40gmail.com" from="aaa%40gmail.com" subject="TestMessage" responseTimeout="10000" doc:name="SMTP" mimeType="text/plain" bcc="xyz%40gmail.com" cc="xyz%40gmail.com"> 
     <reconnect/> 
    </smtp:outbound-endpoint> 

請注意,這不會引發任何錯誤。

回答

0

在SMTP組件的安全選項卡上,啓用SMTPS。然後再試一次。

如果不起作用,請嘗試刪除用戶的「@ gmail.com」。

0
<smtp:gmail-connector name="Gmail" contentType="text/plain" validateConnections="true" doc:name="Gmail"/> 

<smtp:outbound-endpoint host="${smtp.host}" port="${smtp.port}" user="${smtp.from.address}" password="${smtp.from.password}" 
           to="${smtp.to.address}" from="${smtp.from.address}" subject="${mail.success.subject}" responseTimeout="10000" 
           doc:name="SuccessEmail" connector-ref="Gmail"/> 


smtp.host=smtp.gmail.com 
smtp.port=587 
smtp.from.address=youremail%40gmail.com 
smtp.from.password=yourpassword 
[email protected] 

我認爲端口587應該做的伎倆

此配置是一個測試/工作配置:)