For example below is hypothetical requirement:,
We have SMTP server running on localhost 25, and we would like to configure email account Default (chintan@springsoa.com) and HR (hr@springsoa.com).
- Configure usermessagedriver-email
- Configure Workflow Properties as below
- Till above, we have configured Default email account. Now we will configure HR email account as below using ASNSDriver. Click on "More Workflow Notification Properties"
- Click on Operation -> setASNSDriver
- Configure ASNS Driver
Property Value : hr@springsoa.com
Driver Name : HR
Click Invoke.
You can invoke this method multiple times to set different values. It will be upsert operation.
Property Name : EmailReplyToAddress
Property Value : hr@springsoa.comDriver Name : HR
Property Name : EmailRespondToAddress
Property Value : hr@springsoa.com
Driver Name : HR
Property Name : IMRespondToAddress
Property Value : hr@springsoa.com
Driver Name : HR
- Verify ANS Driver
- Restart Admin and SOA servers
- Now, inside BPEL Email activity, we can use HR to send email from hr@springsoa.com, and Default to send email from chintan@springsoa.com
2 comments:
A good tutorial to know about smtp server & their settings.
Thanks
Email.biz
If I send email from an account that does not exist (lets say in this case "Test Driver") it automatically sends from last added ASNSDriver (in this case "HR" account). Is this normal behaviour? In this situation I would like to send from Default account.
Post a Comment