Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


TNT_CH
2011-02-04T10:29:56Z
Dear all

I set up an email trigger, but it seems that it is not working correctly. We need to check a mailbox and if an email is found it has to save the attachments and delete the mail.

I tried already different things but it is not doing what I'm saying to do and some things are unclear for me:

Main settings:
Credentials: "No Credentials" --> I think I have to add here credentials for the saving, but it is not accepting them - I chose and save and next time, when I open the trigger it is again "No Credentials". What is this field for?

Email:
Connection: login@server:port --> I tried the login with the full email address and with only the part before the @. If I connect over the homepage it is working both ways. Normally the port is 8383 but I tried it with the standard port 110 too. I tried to connect with and without proxy settings. Is there a way to test such a Pop3 connection? I've already tried it with the IP, doesn't work as well. I also tried to connect via Imap but it wasn't successfully. With other tools we can download attachments via pop3, this should be set up on the server.
Mail folder: I tried it with both "use default" and "use specified"

I have no conditions or s/mime at all

Actions:
Trigger: I tried with "Always" and "Match All"

Message on Server: Always; I tried both "Delete message" and "Leave message" --> even with the delete, nothing happens on the server

Save email: Never
save attachment(s): always
save to folder: c:\temp\testpdf

As task I set up a simple email to be send with only a text. As this email is sent I think, somehow it recognizes the email but can't save the attachments or delete the message. We have version 5.5.5 of VisualCron.

Thanks a lot in advance for your help

Susanna
Sponsor
Forum information
Support
2011-02-04T11:07:34Z
Hi,

first it would be interesting to see any log from VisualCron to see what happening.

Also, before sending it, test if you can telnet to port 110 on your email server. If not, the port is closed for some reason.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
TNT_CH
2011-02-04T11:32:01Z
Hi Henrik

I was checking the job-log, but it doesn't give an error... Is there any other log to check?

Please find attached the logfile.

Susanna
File Attachment(s):
job_email_trigger.xls (6kb) downloaded 59 time(s).
Support
2011-02-04T11:35:08Z
Try go to Server tab->Settings->Log->Check "Extended debugging".You should check log right after activating the trigger. (if inactivate then activate again).

Did you try telnet?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
TNT_CH
2011-02-04T13:03:22Z
Hi Henrik

The "Extended debugging" was already checked.

I could open a telnet connection to the server with port 110 successfully - sorry, I overread this in your first post...

Susanna
TNT_CH
2011-02-07T14:31:26Z
Hi Henrik

I just did some other tests with my non-working-email-trigger.

I deleted all messages on the email-account and I started the job again. This time, the email was sent anyway, although no email was available. Is this because I started it manually?

As I tried several times last Friday I just resent the mail then - to have an unread message. But even with this unread message the trigger is not downloading any attachments.

There are still some open questions within my original post. Could you please check and give me an information or tell me what to try?

Thanks a lot in advance

Susanna
Support
2011-02-07T14:35:51Z
TNT_CH wrote:


Credentials: "No Credentials" --> I think I have to add here credentials for the saving, but it is not accepting them - I chose and save and next time, when I open the trigger it is again "No Credentials". What is this field for?



This is used if you want to save the email attachments, for example, on a a network drive which requires logon.

TNT_CH wrote:


Is there a way to test such a Pop3 connection?



This is primary done by using the telnet to that port.



Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2011-02-07T14:38:58Z
If you start the Job manually it will send the Notifications as well.

1. Please add an email to that inbox you are watching.
2. wait one minute
3. deactivate the Job
4. activate the job again (make sure the trigger is still active when you edit the job (is it?)
5. Then send log_serverDATE.txt to support@visualcron.com - it is located in the log folder of VisualCron installation.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
TNT_CH
2011-02-07T15:21:34Z
Hi Henrik

Argh! I'm such a fool!! 😱

I've never started the job automatically, as for the jobs we created before it was not necessary. We could always test the job when it was inactive... That means when I start a job manually the trigger is ignored?!

The attachments were downloaded now and successfully forwarded by email. But I recognized that it creates a subfolder per mail and within this a subfolder for the attachments. Is there a way to save the attachments directly in the folder given in the trigger? AND as I can't save the credentials (they are always set back to "No Credentials") I can't save the attachments to a network folder.

Just another issue, when I change something in the job, it always deactivates the trigger (sometimes even with an error - see printscreen). You mentioned it in your point 4 as well. Is this normal?

Edit: Somehow this is buggy... 😞 I started to create the correct tasks the job has to do. And from time to time when the trigger error appears, it happens that my just saved tasks are deleted. Something I can do here?

Thanks a lot for your help

Susanna
TNT_CH attached the following image(s):
Support
2011-02-07T16:12:27Z
You are correct. It does not save the Credential and it is not used in the version you are using. We have fixed this for the next version.

Currently you cannot control the attachment download location.

The error is not normal. I am questioning how you Trigger works at all. What should happen when you make a change to the Trigger (or Job) is that the Trigger is deactivated and then activated again. Perhaps it was deactivated in the middle of something.

Anyway, it would be interesting with the log files right after you have received this popup and clicked ok.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
TNT_CH
2011-02-07T16:39:53Z
Hi Henrik

Good, I ordered the new version of VisualCron 🙂 Unfortunately it takes always some time until I can really buy it...

Anyway, when I do a change to the trigger, add a new task or deactivate it, the error is received sometimes. I got a copy of the logfile and attach it to this post.

Do you think it would change if I would just recreate the full job?!

Thanks

Susanna
File Attachment(s):
job_email_trigger.xls (34kb) downloaded 53 time(s).
log_server20110207.txt (13kb) downloaded 50 time(s).
Support
2011-02-08T14:08:29Z
Is it possible that you could try the same with an IMAP connection to see if you still get same errors?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
TNT_CH
2011-02-09T08:40:16Z
Hi Henrik

Unfortunately the server doesn't allow to do a connection with IMAP. I try to get this opened that I can check it.

But I just recognized something strange: When I deactivate the job or the trigger the job resets itself and activates the job or the trigger. When I run the job today for test reasons the last run date was today (09.02.) and then it changed it back to Monday when I did the last tests (07.02.) - that isn't normal, isn't it?

I will remove everything now and start to create the connection and the job again. Maybe it is corrupt.... I'll let you know if it works normal then.

Edit: I can't delete the job. After deletion it takes a one or two mins and there it is again... :o(
Edit2: stopping and restarting service was helping to solve this issue. :o)

Cheers

Susanna
Support
2011-02-09T10:48:32Z
Thanks for the feedback. We will do some specific POP3 tests. In which interval have you set the check for new emails?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2011-02-09T11:26:25Z
We did some tests with POP connection with success. Perhaps you are using any specific settings?

Is it possible to connect to your server and test? Please email support@visualcron.com regarding that.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
TNT_CH
2011-02-09T14:28:16Z
Hi Henrik

After the successful deletion, I recreate the job, connections, trigger and tasks. Up to now, it works without any problem.

I think, the job went corrupted due to my endless trying of connections and trigger and so on. We also found out that the mailbox was corrupt as well - we assume that the trigger of VisualCron occured it. So we recreated the mailbox too.

As said, it seems to work now - no error messages, nothing. If it raises again, I'll come back to you.

Thanks a lot for your help

Susanna
Support
2011-02-09T14:54:32Z
ok, great, thanks for the feedback!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
TNT_CH
2011-02-09T15:13:29Z
TNT_CH wrote:

But I recognized that it creates a subfolder per mail and within this a subfolder for the attachments. Is there a way to save the attachments directly in the folder given in the trigger?


Support wrote:

Currently you cannot control the attachment download location.



Hi Henrik

I just solved this issue as well. I post it here, maybe somebody else has this problem too...

The attachments are saved like [given path in the trigger]\[message ID]\[attachment Folder]. As the first thing I do is a folder copy to the correct server, I just use the variables of the message id and the attachment folder as source path:
"c:\temp\downloadPDF\{TRIGGER(4edd3aa7-f4bc-45af-b6b8-14d70579ff7e|15113ece-0b0a-4353-b88d-c49d7d25e7d5|Mail.Result.Mail.MessageId)}{TRIGGER(4edd3aa7-f4bc-45af-b6b8-14d70579ff7e|15113ece-0b0a-4353-b88d-c49d7d25e7d5|Mail.Result.Mail.AttachmentFolder)}"

Like this it copies only the PDF to the destination folder. For sure, I delete the created folder within the download-folder (with the message-ID variable). I always have a clear structure then. :o)

Cheers

Susanna
TNT_CH
2012-01-06T08:32:41Z
Originally Posted by: TNT_CH 



I think, the job went corrupted due to my endless trying of connections and trigger and so on. We also found out that the mailbox was corrupt as well - we assume that the trigger of VisualCron occured it. So we recreated the mailbox too.



Hi Henrik

Long time since I had this problem here. There is just another update on the corrupt job I had then.

Had this issue again with another Email Trigger job, where I had to do (only) changes in the tasks. After changing the tasks it was kind of loading the old one again and again. Had to restart the service that I could delete it and recreate the job. So my assumption 11 month ago wasn't correct - it was not only the trigger that made the job corrupt.

We still have version 5.6.9 but are waiting for version 6.0.6. Don't know if you did something on this issue in the meantime - it would be nice if you could let me know.

Thanks a lot

Susanna
Support
2012-01-06T10:25:23Z
Originally Posted by: TNT_CH 

Originally Posted by: TNT_CH 



I think, the job went corrupted due to my endless trying of connections and trigger and so on. We also found out that the mailbox was corrupt as well - we assume that the trigger of VisualCron occured it. So we recreated the mailbox too.



Hi Henrik

Long time since I had this problem here. There is just another update on the corrupt job I had then.

Had this issue again with another Email Trigger job, where I had to do (only) changes in the tasks. After changing the tasks it was kind of loading the old one again and again. Had to restart the service that I could delete it and recreate the job. So my assumption 11 month ago wasn't correct - it was not only the trigger that made the job corrupt.

We still have version 5.6.9 but are waiting for version 6.0.6. Don't know if you did something on this issue in the meantime - it would be nice if you could let me know.

Thanks a lot

Susanna



Hi Susanna,

thanks for getting back to us. Since there was some different errors in this post (both connection errors and attachment saving) I am not sure which error you are mentioning.

Generally, we have made some changes. Some regarding the connection interval and debugging and some regarding saving the attachment and Credentials.

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2012-01-06T15:48:31Z
Sorry, I think I gave you the wrong folder Variable on the Copy files Task, it should be:

{TRIGGER(Active|LastTrigger|File.Result.TriggerFolder)}

I tested and it works with the mail Trigger. Attaching screenshot as well.
Support attached the following image(s):

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
TNT_CH
2012-01-06T16:16:31Z
Hi Henrik

Just did a test... And it worked fine!

Great! Thanks a lot to you! 😍

Did it with 3 jobs now, will try within the mail trigger job next week - it's time for the mail flood now 😉

Thanks a lot again and have a nice weekend

Susanna
Scroll to Top