I have created an email service and apex class that converts incoming email into tasks and associates them with the matching record. the idea is to simulate email to case functionality.
it works as follows---
- Email is sent from a custom button on a custom object.
- The button Url populates the outgoing email from address as the email service address.
- Reply emails are sent to the email service address.
- The apex class associated with the email service creates a task from the incoming email and attaches it to the associated record.
This is working fine.
The problem is, in order for the outgoing email to be seen as coming from the email service address, the email service address needs to be set as an Org Wide email address and needs to be verified.
I have set it as the org wide email address but I cannot verify it as the verification email is never received. When not verified, the email from address appears as the logged in user by default.
I need to know how to verify the org wide default address when it is set as the email service address.