2019-09-20 - hschneider, Admin
Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.
Printable Version of Topic
Click here to view this topic in its original format |
XMail Forum > Documentation and Knowledge Base > Mail Pickup Folder |
Posted by: davidM Aug 18 2003, 11:48 AM |
Hello I am neewbee with Xmail I try to enqueue my mails with JMail component. Emails are created in the directory I specify... but no email are send.so my question is : is there an PICKUP directory for XMAIL ? here is the code that does not work thanks for your help regards daivd <%@LANGUAGE="VBSCRIPT" %> <% ' Example on how to use queueing ' The message is set up as usual... set Message = Server.CreateObject( "JMail.Message" ) Message.From = "janeway@voyager.com" Message.Subject = "Testing" Message.Body = "This is a test mail" Message.AddRecipient "commander@enterprise.com","Jean Luc" ' Instead of using the Send() method, we use nq ' The email will be placed in the mail queue and sent ' as soon as the mailservice picks it up. ' We do not need to specify a mailserver, as the ' mailservice does all that for us. ' What we do need to do is to specify where the MS pickup ' directory is. If you are running w3 JMail on a ' Windows 2000 server, this is not neccessary, otherwise ' Unless you are running windows 2000 on your webserver, ' you will need to specify where the MS pickup directory ' is (c:\inetpub\mailroot\pickup\). <<< Is this not the pblme ? Message.MSPickupDirectory = "c:\inetpub\mailroot\pickup\" Message.nq %> so : mails are created but not sent config : W2000 Server, Jmail, XMail all services seems to be started |
Posted by: hschneider Aug 18 2003, 11:54 AM | ||
Because of its naming convention not easy to use in practice. But once you scripted your pickup writer function, it should do its job. |
Posted by: davidM Aug 18 2003, 12:37 PM |
thanks just tried. in fact email are automaticcaly created and are named like : 13E66E0A2D5B47FE8F5FDD4972F29056.eml for the test I made. This email was created in the temp directory but never was moved to the local one. And when i moved it manually to the local directory it disappeared but was never sent. In fact it is impossible to rename manually all email if I want to make a Mailing list manager Any idea ? thanks david |
Posted by: hschneider Aug 18 2003, 12:44 PM |
It was never sent, due to wrong naming convention. The only solution yet is a scheduled script which does moving and renaming for you. This really needs improvement ... |
Posted by: davidM Aug 18 2003, 12:47 PM |
ok does it work better with IIS SMTP service ? david |
Posted by: hschneider Aug 18 2003, 12:56 PM | ||
Indeed - it does !
Just decided to create a workaround for this. But I have no free resources at the moment, so if you urgently need an out of the box solution for your project, you should switch to IIS (Ouch that hurts ...). Maybe you come back later, when my Pickup Manager is available ... |
Posted by: davidM Aug 18 2003, 01:00 PM |
ok thanks it is not so urgent so I try to make other tests while waiting your solution. good luck regards david |
Posted by: hschneider Aug 18 2003, 01:05 PM |
Fine - I'll let you know when it is finished. |
Posted by: davidM Aug 18 2003, 01:20 PM |
ok thanks in fact I try to create a mailing list manager wich could send thousands of email in one click for the user. So I need queuing mails. ;o) regards david |
Posted by: hschneider Aug 18 2003, 02:36 PM | ||
I checked it out: There is no need for a 3rd party application! - XMail accepts ANY naming convention (the manual is out of date here), even your 2423252523452345345.eml files. - The header must be structured as follows:
Take care for the blank line between envelope and header. This is not explictly mentioned in the manual! - Prepare the mails in a temp folder and move them to spool/local. All this was approved with XMail 1.16, so it might fail with prior versions. I think Davide fixed this in the past, but missed to announce it... XMail automatically queues all mail for you. The local mailer folder is emptied in a few seconds. |
Posted by: hschneider Aug 18 2003, 03:18 PM |
Reported the manual issue to Davide ... |
Posted by: davidM Aug 29 2003, 01:58 PM |
thanks But I can move email manually it can not be done by ASP so no solution ? thnaks david |
Posted by: hschneider Aug 29 2003, 04:57 PM |
Ahem .. I don't catch your point - still a problem with it ? |
Posted by: davidM Aug 29 2003, 05:08 PM |
in fact I succeeded just few minutes ago to make work : xmail & smt virtual server so now, all working fine, emails are sent thanks regards david |
Posted by: hschneider Aug 29 2003, 09:55 PM |
OK -- fine. Thanks 4 the feedback ... |