Enterprise library - Email Trace Listener is not working though i provided everything? - enterprise-library

i have email event listner like, but the emails are not sending, please help me on this
and my exception handling code is

First check that you can send emails via your configured email server from the installation computer, Microsoft KB153119 will tell you how to do this.
Second check it is the email listener that is failing. Remove all but the email listener and try again. It removing the Event log listener helps then the application might not have sufficient rights to create the event log source (this should be done by the installer).
Third check the exception that would trigger an email is being raised, either step through code or swap the email listener to a text file listener.
Finally, as Ashwani says, provide a little of your code and config for us to look at.

Related

Either there is no default mail client or the current mail client cannot fulfill the messaging request.

My application does mapi.MAPIInitialize.
Mapi.MAPIInitialize fails on machines where Outlook is not installed and gives pop up that requires user action.
I want to understand if there any parameters in mapi.MAPIInitialize or way through API to suppress this popup.
I dont prefer to delete any registry to suppress this pop-up.
I am unable to post screenshot of pop up Please check below message
*Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default mail client.Microsoft Office Outlook
You need to avoid loading mapi32.dll from the Windows folder. You must load msmapi32.dll - look at the MFCMAPI source code to see how that needs to be done.

IBM Sterling order management - Email Server

I'm trying to send the mail to the store (Node), on the onsucess event of createOrder api.
So for this, I've created 2 new services.
The first service receives the information from the onsucess event of the createOrder api and passes it on to the queue.
The second service receives the information from that queue and passes it on to the email server.
This sends the email. The problem is that for some of the orders the email is not sending, but we are not getting any exceptions for these.
In the logs for those orders it shows the "Successful Acknowledgement from the email server".
I don't know where the exact problem is. I have checked the email server, but cannot find anything related to the missing order information.
What steps can I take to further debug this problem?
You are saying, only some orders have this problem . Then it will be something related with the order details like the email id associated with it. And also if the successful message in logs shows message has been sent. But if it is a customized log please check it once again. If its Ok then please check the Email Server logs directly.

WCS email sending

I'm trying to generate a mail when my process is complete in WCS, please share some links or info about how to get started.
Like order placing I'm having a functionality for taking back few Merchendise(checking in), after this is complete, I should send an Email to specified id. I am very new to this, tried googling dint find much info.
Please help.
You need to do something like this http://www-01.ibm.com/support/docview.wss?uid=swg21230937
To send a email first of all, Enable the email transport for the site in admin console. Configure it by providing the SMTP server details.
Then you can use SendMsgCmd interface to send a email.

Outlook Rule to Send Mail On Mail Receipt

Is there a way for Outlook 2010 to send an email whenever a message is received? I don’t want the original email forwarded or redirected (major business rules violation); I just want to receive an email alert at another address. It would be great if that message included the subject and sender but not necessary. It seems like there should be a rule to do this but I need help creating it.
I thought about using an Outlook rule to call a VBA script to send the email. I tested a couple of scripts but they didn’t work for me. I don’t think my account has the proper security clearance or the VM environment is configured to not allow sendmail scripts.
How to send a mail automatically
The accepted answer gives me the following error:
Line 6: Adodb.fields
Arguments are of the wrong type, out of acceptable range, or are in conflict with oneanother
Send Email using VBscript
The script given at the end of the thread gives me this error:
SendMail Failed: The transport failed to connect to the server
and the telnet test step failed as well.
And since I don't want to risk my job trying to circumvent security policy I really hope there is something built into Outlook that will allow me to accomplish my goal.
You can use Auto-Mate Pro, a 3rd party rule add-in for Outlook to do this. One of the rule actions is called "Send Message". There you can choose an predefined template you create for the email alert body. You can also specify the email address to send the alert email to.
www.pergenex.com/auto-mate
Hope it helps.

CRM plugin not firing for emails sent from console application

I have a plugin written that is registered for the DeliverIncoming message on the email entity in CRM. The plugin fires normally when emails arrive into a queue.
I also have a console application that connects to the CRM service, checks the followupby attribute of cases and depending on the date sends out a reminder/overdue notification.
The problem is that these emails aren't causing the plugin to fire. The email activities are created in CRM and the emails are sent and delivered without any issue but the plugin doesn't fire. I also tried registering the plugin against the Create message of the email entity and that doesn't fire either.
The emails are sent using the SendEmailFromTemplateRequest as the request object being passed into the CrmService.Execute() method
The plugin fires for all other instances of emails being delivered. The emails sent from the console application are the only ones experiencing this issue. Does anybody know why this would occur?
Thanks,
Neil
DeliverIncoming only fires for eMails routed into the CRM queues by the eMail Router. It will not fire on eMails you send from the CRM system.
Finding out what exact message a plugin needs to be registered against to fire on a certain action is sometimes a case of trial and error. Write a simple plugin that just logs the time and context.MessageName somewhere and register it against any message valid for the email entity. Then send an eMail through your application and have a look at what the plugin logged.
Turns out the plugin was firing, but when run from the console application it was throwing an exception when trying to log to a file it didn't have permission to. I had a break point on the second line, the first line was the logging line.