I have an activity with Server mail event.
If I choose for email address field an originator or destination, while running the process I got "No Email Address was supplied..." message in error profiler, even though originator and destionation are valid AD users with valid email addresses.
If I go to code and explicitly write email addresses, everything works fine.
Somehow K2 cannot resolve destination and originator email addresses.
Any idea?
thanks,
Page 1 / 1
Yes,
K2 uses the attribute email of the Active Directory user properties. If this attributes is not set, K2 put a blank email...
K2 uses the attribute email of the Active Directory user properties. If this attributes is not set, K2 put a blank email...
First have a look at AD and make sure about the user email addresses. If this is fine, there's normally only two other causes for such a problem and that is:
1. Network connectivity to your domain controller; or
2. DNS problems
Hope this helps,
Ockert
1. Network connectivity to your domain controller; or
2. DNS problems
Hope this helps,
Ockert
Sorry, as a side-note I would like to thank Tanguy for being willing to share his knowledge with the rest of the community. This is exactly what the forum is for - sharing knowledge within the K2.net community. I wish all the other members of this forum will also start to actively participate.
Thanks,
Ockert
Thanks,
Ockert
If I would have problems with Network connectivity or DNS my originator (AD user) who is starting the process wouldn't be able start the process at all.
Its very simple, originator is starting the process and first activity is defined with server mail event that should send email to originator.
In active directory under General tab in User properties under E-mail field I have valid user email address.
thanks for help,
Its very simple, originator is starting the process and first activity is defined with server mail event that should send email to originator.
In active directory under General tab in User properties under E-mail field I have valid user email address.
thanks for help,
You're probably right as far as network connectivity is concerned but I have seen problematic DNS settings causing this.
Also, under what account does your K2.net Server Service run? Is it a valid domain account?
Regards,
Ockert
Also, under what account does your K2.net Server Service run? Is it a valid domain account?
Regards,
Ockert
K2.Net Service is running with account defined in AD and also member of Administrator group on my local computer.
Again, if I define in Server mail event under "Specify" and type in user email address, K2 is sending mail without the problem, which means that K2 is doing just fine with sending mails to that user or anybody else. Problem apears when I select "Originator" or "Destination". Somehow K2 cannot read email address from AD for AD users, which is strange, because if I select users from K2 service manager, users apear in the list along with their email addresses.
Maybe the problem is in the fact that my K2 server is working in one AD domain and AD users in this process are taken from other AD domain. But this is correctly set in config file and I didn't have any other problems with this setup. Everything else is working fine.
Again, if I define in Server mail event under "Specify" and type in user email address, K2 is sending mail without the problem, which means that K2 is doing just fine with sending mails to that user or anybody else. Problem apears when I select "Originator" or "Destination". Somehow K2 cannot read email address from AD for AD users, which is strange, because if I select users from K2 service manager, users apear in the list along with their email addresses.
Maybe the problem is in the fact that my K2 server is working in one AD domain and AD users in this process are taken from other AD domain. But this is correctly set in config file and I didn't have any other problems with this setup. Everything else is working fine.
Ockert:I would like to thank Tanguy for being willing to share his knowledge with the rest of the community.
I just try to help people when my knowledge is good enough to answer...
Concerning this email issue, it's quite strange... Did you test with several users ? did you get still the same blank email ?
I try with several users, result is the same.
The only other thing I can suggest is to run K2.net Server in console mode i.e. force K2.net Server to run under the same user you're running K2.net Service Manager and try again.
If this works, it is a user permission problem.
If it does not work, please open a formal support request.
Regards,
Ockert
If this works, it is a user permission problem.
If it does not work, please open a formal support request.
Regards,
Ockert
Hi Ockert/kreso_k,
We are having exactly the same issue here. Would it be possible to post what the resolution was (Ockert, do you have access to the relevant support db?).
Many thanks,
Rob.
We are having exactly the same issue here. Would it be possible to post what the resolution was (Ockert, do you have access to the relevant support db?).
Many thanks,
Rob.
Hi
Is it possible to change the attribute that K2 uses to retrieve the email? Currently K2 uses the attribute 'email' but the active directory I am querying uses the attribute 'mail' to store email addresses. The result is that the email adress does not get populated and K2 produses the error: "No Email Address was suplied, please rectify and try again
I am using K2.NET 2003 SP3
thanks
Is it possible to change the attribute that K2 uses to retrieve the email? Currently K2 uses the attribute 'email' but the active directory I am querying uses the attribute 'mail' to store email addresses. The result is that the email adress does not get populated and K2 produses the error: "No Email Address was suplied, please rectify and try again
I am using K2.NET 2003 SP3
thanks
ausdev:Hi
Is it possible to change the attribute that K2 uses to retrieve the email? Currently K2 uses the attribute 'email' but the active directory I am querying uses the attribute 'mail' to store email addresses. The result is that the email adress does not get populated and K2 produses the error: "No Email Address was suplied, please rectify and try again
I am using K2.NET 2003 SP3
thanks
Hi ausdev,
Thanks for the suggestion. I have given it a try but looking at the K2 ROM help file the only attribute for an email address is Email (K2.ActivityInstanceDestination.User.Email). Could you expand on what class etc. you are using?
Many thanks
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.