If you're open to using a commercial service, you could follow the instructions on the Interfax web site to solve your webform-to-fax requirement. Their instructions are summarized here, but visit their "Web Form to Fax with PHP" page to get the actual code.
You'll need three parts:
A web form - a regular HTML form that collects faxing-related fields, such as the recipient name, fax number, and the fax message. Once submitted it calls the web form processing script through the "action" value of the form.
A web form processing script - it does the following:
Holds all settings, such as your InterFAX username and password.
Collects values from the web form.
Performs error checking on submitted values.
Opens a template file (see below) and populates it with values submitted in the form.
Submits the populated template file to InterFAX for faxing.
Shows the submission result (i.e., not the fax transmission result)
A fax template which gets populated by content entered into the form - This is where you determine what your fax will look like. You can use HTML and CSS for full page layout control.
Once a visitor fills in the form and clicks "Submit", the inserted values get passed to the form processing script. This script populates the template with these values and submits it to the fax service for processing. The fax gets sent and you can optionally get an email confirmation once it does.
发布评论
评论(3)
我从来没有这样做过,但谷歌结果建议我这些链接:
http://www.interfax。 net/en/dev/webservice
http://www.send2fax.com/
http://www.programmableweb.com/mashup/send-a-fax-from- php
让我知道这是否有帮助
I've never done this, but google results suggest me those links:
http://www.interfax.net/en/dev/webservice
http://www.send2fax.com/
http://www.programmableweb.com/mashup/send-a-fax-from-php
Let me know if that is helpful
如果您愿意使用商业服务,您可以按照 Interfax 网站上的说明来解决您的网络表单到传真需求。他们的说明总结如下,但请访问他们的“Web 表单使用 PHP 传真”页面以获取实际代码。
您需要三个部分:
一旦访问者填写表单并单击“提交”,插入的值就会传递到表单处理脚本。该脚本使用这些值填充模板并将其提交给传真服务进行处理。传真已发送,您可以选择在发送后收到电子邮件确认。
If you're open to using a commercial service, you could follow the instructions on the Interfax web site to solve your webform-to-fax requirement. Their instructions are summarized here, but visit their "Web Form to Fax with PHP" page to get the actual code.
You'll need three parts:
Once a visitor fills in the form and clicks "Submit", the inserted values get passed to the form processing script. This script populates the template with these values and submits it to the fax service for processing. The fax gets sent and you can optionally get an email confirmation once it does.
很多公司都会为您提供 API 来执行此操作。
但它不会是免费的。
There are lots of companies that will provide you an API to do this.
It won't be free however.