Not Sending Email

Please post here if you have problems in using Wing FTP Server.
cmangano
Posts: 13
Joined: Wed Dec 01, 2010 10:40 pm

Not Sending Email

Post by cmangano »

I setup the SMTP and tested it and it says it is successful. I then added an FTP event on OnFileUploaded to send an email to myself using the SMTP configuration I setup, but whenever I upload a file through FTP I don't get the email. Any ideas?
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Not Sending Email

Post by FTP »

Please see the server logs and domain logs, check whether c_SendMail() was successful or not.
cmangano
Posts: 13
Joined: Wed Dec 01, 2010 10:40 pm

Re: Not Sending Email

Post by cmangano »

It doesn't even seem like it is triggering c_SendMail(). Here is the log for the file I just uploaded which should trigger an email:

[05] Thu, 09 Dec 2010 14:04:03 (0000100) Start uploading file '28 page + cover.doc'
[05] Thu, 09 Dec 2010 14:04:03 (0000100) List ok
[05] Thu, 09 Dec 2010 14:06:11 (0000097) Keep alive
[05] Thu, 09 Dec 2010 14:08:00 (0000098) Keep alive
[05] Thu, 09 Dec 2010 14:08:35 (0000100) Keep alive
[05] Thu, 09 Dec 2010 14:10:58 (0000100) List ok
[05] Thu, 09 Dec 2010 14:11:11 (0000097) Keep alive
[05] Thu, 09 Dec 2010 14:11:17 (0000100) List ok
[05] Thu, 09 Dec 2010 14:13:00 (0000098) Keep alive

Any ideas?
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Not Sending Email

Post by FTP »

You may see it on "Server -> Log & Status -> Server Logs". Thanks!
cmangano
Posts: 13
Joined: Wed Dec 01, 2010 10:40 pm

Re: Not Sending Email

Post by cmangano »

All I have in that log is:

[01] Thu, 09 Dec 2010 15:33:52 Wing FTP Server started.

It doesn't seem like the event is triggering. I also had the event trigger to create a log file when a file is uploaded and that didn't work either. We are using version 3.7.2 Corporate.
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Not Sending Email

Post by FTP »

Please make sure you have set the event correctly, there are three types: FTP Event, SSH Event, HTTP Event.
For example, when you set the FTP Event OnFileUploaded, only FTP uploading will be triggered.
cmangano
Posts: 13
Joined: Wed Dec 01, 2010 10:40 pm

Re: Not Sending Email

Post by cmangano »

I have set the FTP onFileUploaded event for the domain I am using. It has a little green "+" next to it's name now. When I upload a file, it doesn't trigger.
cmangano
Posts: 13
Joined: Wed Dec 01, 2010 10:40 pm

Re: Not Sending Email

Post by cmangano »

Does Wing FTP need to be running as a service for the events to work?
cmangano
Posts: 13
Joined: Wed Dec 01, 2010 10:40 pm

Re: Not Sending Email

Post by cmangano »

OK, figured out that it needed to be the HTTP event, but now I get this error in the Server Log:

[01] Fri, 10 Dec 2010 08:49:14 Lua Scripts start sending mail to xxxx@xxxx.com.
[05] Fri, 10 Dec 2010 08:49:19 Mail to xxxx@xxxx.com failed,send header to server error.

Any ideas on this?
cmangano
Posts: 13
Joined: Wed Dec 01, 2010 10:40 pm

Re: Not Sending Email

Post by cmangano »

Nevermind, figured it out.
Post Reply