ofbiz 邮件
来源:互联网 发布:易观数据造假 编辑:程序博客网 时间:2024/06/02 23:24
最近在研究ofbiz的一些东东,看到了,就记录下。
ofbiz 邮件发送,先看一下邮件发送在哪应用了,直接上图。在party管理中。
这个是需要配置party的联系机制,当然邮件发送嘛,一定要配置邮件信息,在这里就不说了,自己配置。
那调用的哪个服务呢?
services_email.xml 这个就会告诉你ofbiz中邮件系统的管理有哪些服务,当然,您也可以自己拓展,在这我只说个例子而已。
ofbiz的邮件配置
framework\common\config\general.properties 这里包含基本的配置
# -- general default 'fromEmailAddress' can be overridden in: EmailTemplateSettingdefaultFromEmailAddress=ofbiztest@example.com# -- The default domainname used in the notification emails links# as 'baseUrl' and 'baseSecureUrl' are set in the url.properties file. # -- mail notifications enabled (Y|N)mail.notifications.enabled=N# -- redirect all mail notifications to this address for testing#mail.notifications.redirectTo=# -- the default mail server to usemail.smtp.relay.host=localhost# -- SMTP Auth settings#mail.smtp.auth.user=#mail.smtp.auth.password=# -- Additional Required Fields needed for Gmail and other non traditional smtp servers# -- These added fields also work for Yahoo business mail for instance# -- Gmail smtp port can be either 465 or 587#mail.smtp.port=465# -- Gmail requires StartTLS#mail.smtp.starttls.enable=true# -- Gmail requires a JSSE socket factory, the following socketFactory settings will override JavaMail's default socketFactory settings# -- Port needs to be the same as mail.smtp.port#mail.smtp.socketFactory.port=465#mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory#--Fallback [true|false] determines whether you will allow a non secure connection if you are unable to get a secure one#mail.smtp.socketFactory.fallback=false# -- how the address are matched with the CRM addressesmail.address.caseInsensitive=N# -- debug SMTP mail option enabled (Y|N)mail.debug.on=N# -- if some addresses fail the SMTP check using the RCPT TO: command then setting this property to false will abort sending the message# to any recipients valid or notmail.smtp.sendpartial=true
贴出来几个发送邮件的服务,基本的一个是:
<service name="sendMail" engine="java" location="org.ofbiz.common.email.EmailServices" invoke="sendMail"> <description>Send E-Mail Service. partyId and communicationEventId aren't used by sendMail but are passed down to storeEmailAsCommunication during the SECA chain. See sendMailInterface for more comments.</description> <implements service="sendMailOnePartInterface"/> </service>
具体的代码需要自己慢慢研究了。。。
0 0
- ofbiz 邮件
- ofbiz邮件配置
- ofbiz 本地化及邮件设置126邮箱
- ofbiz
- OFBiz
- OFBIZ
- OFBiz
- ofbiz
- ofbiz
- OFBIZ
- OFBIZ
- OFBIZ
- OFBiz发送邮件500错误时环境设置
- Ofbiz学习
- Ofbiz 入门教程
- 什么是OFBiz?
- Ofbiz 入门教程
- OFBiz Start
- 果是想在html标签中添加其他标签又是什么方式
- 中软国际笔试题汇总
- Android 请求WebService 并且解析
- IntrospectorCleanupListener 简介
- 值和用RosterEntry.getName()的返回值是一样的 这样造成很多服务器找不到
- ofbiz 邮件
- OCP 1Z0 051 QUESTION NO: 50
- 【LeetCode】Swap Nodes in Pairs
- WCF简单实例--用Winform启动和引用
- 程序员如何活的明白
- c++中的构造函数与析构函数
- 进程与线程
- excel筛选查询函数
- JDBC常见面试题集锦(二)