HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   API mail user add autoresponder not working (http://www.howtoforge.com/forums/showthread.php?t=58144)

globiws 31st July 2012 19:04

API mail user add autoresponder not working
 
Hi Everyone,

I have a script that uses the API to create mail users using $client->mail_user_add

Everything is working fine, except that autoresponders do not have their start and end date set.

'autoresponder' => 'y',
'autoresponder_start_date' => '2001-01-01',
'autoresponder_end_date' => '2099-12-31',
'autoresponder_text' => 'whatever the text is for out of office',

There are no errors returned, and the mail user is created successfully. The autoresponder text is correct, and it is enabled. It's just the dates which are left blank. I looked into the database, and the dates are blank there too.

Any ideas what format these dates should be?

Thanks in advance.
-Andreas

agentmoller001 2nd August 2012 05:07

Try this:
 
Try this:

'autoresponder_start_date' => '2001.01.01',
'autoresponder_end_date' => '2099.12.31',

Please let me know if it works. I am working on the api, too.

globiws 2nd August 2012 16:26

Actually, I received this info from Till, and it worked perfectly:

<snip>
I checked the code and the date is used in form of an array. Please try this:

'autoresponder' => 'y',
'autoresponder_start_date' => array('day' => 1,'month' => 7, 'year' => 2012, 'hour' => 0, 'minute' => 0),
'autoresponder_end_date' => array('day' => 20,'month' => 7, 'year' => 2012, 'hour' => 0, 'minute' => 0),
'autoresponder_text' => 'whatever the text is for out of office',
</snip>

till 2nd August 2012 17:00

I've updated the api example files in svn.


All times are GMT +2. The time now is 12:54.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.