<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Gregg,<br>
<br>
You will probably need to specify the expirydatetime. The docs are a
bit out of date, sorry!<br>
What happens if you provide the string '0' as the parameter for
--expirydatetime?<br>
<br>
That error should only happen if PHP's strtotime() function cannot
parse the time and date you entered. Which is puzzling as that
format should be fine, and works for me.<br>
<br>
Can you double-check you've got the timezone set in your php.ini
file? (search your php.ini files for "timezone" and you'll find it.<br>
<br>
If none of that helps, let me know and I'll go on a deeper hunt for
you.<br>
<br>
Cheers,<br>
Jules.<br>
<br>
<br>
<div class="moz-cite-prefix">On Tue 02/02/21 10:06, Gregg Douglas
via ZendTo wrote:<br>
</div>
<blockquote type="cite"
cite="mid:WM!46d1188b17590119356ed86ed81f17615eff00a4b932e2cbe05949cb00dc0e6acdeb0612b133f38eac735590d6d3dd3a!@mx.jul.es">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi,
<div><br>
</div>
<div>With external users unable to edit the Subject line when
doing a Drop-off, I thought of using the "autorequest" script
as it has the option to add a Subject.</div>
<div><br>
</div>
<div>However, I keep on getting an error:</div>
<div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>{"status":"error","error":"request error: The end time
you set has already passed. Use the Back button in your
browser to go back and fix this error before trying
again."}</div>
</blockquote>
<br>
</div>
<div>I get the error even if I exclude the "expirydatetime" as
in the documentation example.</div>
<div><br>
</div>
<div>Here is the command I am running with the "expirydatetime"
option:</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>./autorequest --username 'apiuser' --password 'apipsw'
--sendername 'test' --senderemail 'xxx' --senderorg 'Test
Org' --subject 'Test Subject' --recipientname 'Gregg'
--recipientemail 'xxxx' --expirydatetime '2021-02-03
00:00:00' --note 'This is a note' <a href="https://xxxxxx/"
moz-do-not-send="true">https://xxxxxx/</a></div>
</blockquote>
<div><br>
</div>
<div> Here is the command I am running without the
"expirydatetime" option: <br>
</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div> ./autorequest --username 'apiuser' --password 'apipsw'
--sendername 'test' --senderemail 'xxx' --senderorg 'Test
Org' --subject 'Test Subject' --recipientname 'Gregg'
--recipientemail 'xxxx' --note 'This is a note' <a
href="https://xxxxxx/" moz-do-not-send="true">https://xxxxxx/</a></div>
</blockquote>
<br>
<div>I am note sure what I am doing wrong here?</div>
<div><br>
</div>
<div>Regards</div>
<div>Gregg</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://jul.es/mailman/listinfo/zendto">http://jul.es/mailman/listinfo/zendto</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
'A butterfly that that lives forever, is not really a butterfly at all.'
- Starfleet Commander Data
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
</pre>
</body>
</html>