PDA

View Full Version : Email forward api


Marckus_e
04-05-2004, 07:49 AM
Hi!

I am looking for the api/function for email forwarding but can't find it? Is there one or will there be one in the next 24 hours? ;)

Best regards
Marcus

CyberAlien
04-05-2004, 08:24 AM
You mean create forwarder or list forwarders?

If create then post this data to CMD_EMAIL_FORWARDER:
action=create
create=Create
domain=domain.com
user=email (name of forwarder)
email=target (where to forward)

Marckus_e
04-05-2004, 08:37 AM
So i can use that if an api doesn't exist?

Nice

Will test it.

Best Regards
Marcus

DirectAdmin Support
04-05-2004, 11:21 AM
*ALL* commands that you can use through a web browser can be used from the api. The only catch is that the return value will be in html instead of an nice parseable string, which just means that you won't know if it worked or not. :)

John

Marckus_e
04-05-2004, 11:40 AM
Sweet, Thanks.

Now i know that i don't need to ask again about that stuff. If there ain't in the api.. use the regular one!

Best Regards
Marcus

toothbrush
10-21-2004, 12:31 PM
*ALL* commands that you can use through a web browser can be used from the api. The only catch is that the return value will be in html instead of an nice parseable string, which just means that you won't know if it worked or not. John

Unfortunately, I would like to be able to display a list of forwarders/autoresponders on a domain... Is this asking too much, seeing there isn't an API? I can't see myself parsing out all the html around the information if I want to try and use the results obtained from /CMD_EMAIL_FORWARDER?domain={me.com} :confused:

If there isn't a simple(ish) solution, maybe this can count as an API feature request ;)

jlasman
10-21-2004, 05:30 PM
Have you seen html2text (http://userpage.fu-berlin.de/~mbayer/tools/html2text.html)?

Jeff

toothbrush
10-22-2004, 12:05 AM
Thanks, looks very cool, but I won't be able to use that as I need it to be in the form of a php script... But it has given me some ideas. Thanks :)

edit: very interesting! http://www.howtocreate.co.uk/php/dnld.php?file=0&action=1