Notes Registration function is pass or fail validation using lotus script agent - wsdl

I using web service call lotus notes agent. Now i can't really tell whether the application is pass or fail during calling agent. is it possible to check reregistration is pass or fail using lotus script agent.
Dim reg As New NotesRegistration
My question is during notes registration if fail, is it possible to be check? as let say my application do on 2 server.
work server = worksvr/names.nsf.
Mail server = mailsvr/ , mail\person
My mail server offline, make the registration failed.

each web service can return a value to the caller. So you execute the registration and based on the result return that status to the caller. A simple check, before you execute all that code: check if you can open that server's names.nsf. If not -> fail, If yes -> continue
To avoid hardcoding use a policy for registration. AFAIK you can specify to defer the mail file creation there, which makes your script more resilient.

Related

Webmin server, PHP imap_open() not working properly

My client use webmin server for using the CRM which is developed by me, in mailbox module, if user choose a email which they want to open in a mail box every thing is perfectly sometimes, if emails are listed after viewing one email some time view of email return empty content, like this randomly giving request is successfully return a IMAP value, some requests return a empty value,
but in my local machine i have Develop my application mailbox module in windows OS based machine, using xamp server, here i get a exact result for each and every request,
now i find why it's happen, the reason is in my clients webmin server couldn't open a imap stream properly, in imap_open method all arguments are real, but it return random connection failed message from imap_errors method,
i don't understand why it is happening, and also i can't fix this
So please assist me, helping hearts really appreciateable,

ProcessMaker - Email not sent from web entry

I have created a simple process, consisting of one task. The task requires a Dynaform to be completed and a trigger is executed in the After Dynaform event to send an email to a group.
The process functions as intended when I create cases from within ProcessMaker. The case is created and the email is sent. When a case is created via web entry however, the trigger doesn't execute. I have verified this from the logs.
I also tried using the End Event: Email Message but see the same behavior i.e. mail sent sent when starting case in PM but not sent when using web entry.
Would anyone be able to provide some insight an on why this would be happening?
It sounds like you are using an old version of ProcessMaker by the fact that you are talking about Trigger and DynaForms. Are you using Version 3? If so, we recommend that you start looking at Version 4 (4.0.13 is the latest release) - https://github.com/ProcessMaker/processmaker
thanks,
brian

.NET MVC Custom Mail Server

I'm in the process of planning the development of a mail-server to hand the sending of email across our multiple websites. Below is a description of what we are planning to implement and I'd like your opinion/suggestions.
We use ASP.NET MVC and have many web-sites hosted on Azure. We currently send mail internally within each of the web applications using SMTPServer.Send(). Obviously this is not the ideal way to send emails when you have a decently busy set of websites because the send mail call is blocking and cannot guarantee mails are sent. With this I'm worried out getting an influx of mail requests when we launch our next website (we think it'll get a decent amount of traffic and lots of emails will be sent).
My plan of action : to build a centralised mail-server that runs in the background (we use azure and this will be simply another web-application). When each one of our web applications wants to send a mail, instead of doing this internally, it'll call a web method on the mail-server called sendMail() this function will accept certain parameters and insert the mail parameters, content etc. into a database. The mail server will then poll the database at fixed time intervals, select a set of unsent emails and attempt to send them using the same SMTPServer.Send() function. If an email fails for some reason we won't flag it as sent and in the next poll interval the email will be selected again and another send attempt will be made. (we will cap the number of send attempts to say 20).
This will allow each of the websites to run smoothly without having loads of blocking send mail calls internally and the mail server will handle all the sending sequentially and in a controlled environment as a separate standalone web-application.
Thanks in advance!
Looks like a good design, Don't know the entire scenario which let to you building something like an email server. The problem has been solved well by using a service that already exist like Office 365.
Your design is good, My suggestions would be the following,
You can use Azure WebJobs to build the polling agent. You can make the web job run as a scheduled web job that does the polling and sending the mail and it can be written very clean as a simple console app.
You can use Azure API App to build the SendMail() call and you can use the Azure AD Auth on the API to authenticate the caller of the API using the Authentication and Authorization feature to easily secure your email server. You can also enable CORS easily as well to make sure you receive requests from other websites and process it.
Some issues I foresee for you,
Volume and Scaling : You can only process so much email between each polling. If you cannot then you will need to create another polling agent which will making things complicated as they need to know they are picking different sets of emails to send. If you volume is going to be low you should be fine.
Challenge : Why can't the websites send the mail them selves ? And then record it on the database for tracking. All you have to do build module or a component that they use on their web page to create and send the mail. Polymer 1.0 works well for this scenario.
Hope this helps to get you started.

MVC scheduled mail sending

I have got an ASP.NET MVC 4 application, and I want it to send a report e-mail every week. I've read about Quartz.NET, but it's too powerful for this easy task. Now I'm trying to use NCron, but it requires an initialiser in the Main() method (with obligatory parameter args):
class Program
{
static void Main(string[] args)
{
Bootstrap.Init(args, ServiceSetup);
}
}
Is there the way to do this in the Application_Start()? What should I pass as a args param? What other solutions can solve this task?
Author of NCron speaking…
First: I have never myself integrated NCron into a web application, and I am not sure how well it will work. For instance, as Kenneth points out, IIS will shut down your app if it does not receive any traffic, and there might be other hiccups as well.
In order to integrate NCron into a web app, I suggest that you ignore Bootstrap.Init() (designed specifically as an entry point to console apps) and rather work directly with SchedulingService:
using (var service = new SchedulingService())
{
service.Hourly().Run<DataUpdateJob>();
service.Daily().Run<RecycleCacheJob>();
service.Start();
}
Again: I have never done this myself, but please do give it a try, and let me and everyone else know how you fare.
You'll have to look up what ncrone does with those parameters. What this does is pass the command-line arguments of your windows app to the component.
If you're using it on a web app, you don't have command-line args so if it needs arguments, you will have to construct the arguments yourself (either hard-coded or from a config-file or a database or ...)
It's also possible that these are optional, then you can just pass in an empty array (but again, check the docs of ncrone)
Also, keep in mind that when your application shuts down (standard that is after 20 minutes without any activity), your cron runner will not wake it up. If that will be the case you either need to keep the application alive by assuring that at least one request is done every 20 minutes or configure IIS to keep it alive always.

How can I start a browser from a windows service

I need to create a windows service that when launced open a specific URL.
What I did is to override the onStart() method by adding the following lines :
protected override void OnStart(string[] args)
{
eventLog1.WriteEntry("Browser must start " + DateTime.Now);
string targetURL = "http://www.mysite.com";
System.Diagnostics.Process.Start(targetURL);
}
However this thing doesn`t work . :((
Thing is that it does write the log .than means that onStart Anybody has any ideas????
The service is usually started (when it's in Automatic startup mode) when there's no user logged in.
In general, services don't interact with user desktop and work in a separate session. If you need something to be performed for each or some of logged in users, you need to write a separate agent application, which will be automatically started on user login, and with which your service will communicate. Then the agent can start the browser or do whatever else you need.
Simple answer is, if you're using Vista or later you can't. This is due to session 0 isolation. To quote from the document linked in that page:
For more complex interactions,
developers should move their UI code
into an agent that runs in the user’s
session and handles all UI
requirements. The agent communicates
with the service through RPC or named
pipes.
Windows services don't have a GUI. What you can do is create a controller that interacts with your service and have it launch a web browser.
This link doesn't directly answer your question but contains enough links in the answers to put you on the right path: How can I run a Windows GUI application on as a service?

Resources