Tips and Tricks
How to send email with php using mail and mb_send_mail ...
There is no php coding required when using Arclab Web Form Builder.
The following should show how its working in general:
What the difference between php mail and mb_send_mail?
mail is for single byte charsets (e.g. iso-charsets or us-ascii)
mb_send_mail is for multi-byte charsets like utf-8
Arclab Web Form Builder uses mb_send_mail to send messages, because its created to support utf-8 (unicode translated format 8 bit). This allows to use international characters in the forms. You should always consider to use utf-8, because even if you are located in a country which does not require multi-byte in general - your customers or users might use a multi-byte charset.
How to call it?
The syntax is much the same:
bool mail ( string $recipient , string $subject
, string $message [, string $additional_headers [, string $additional_parameters
bool mb_send_mail ( string $recipient , string $subject , string $message [, string $additional_headers [, string $additional_parameter ]] )
Basic Sample Code:
$recipient = 'firstname.lastname@example.org';
$headers = 'From: email@example.com';
$subject = 'Hello World';
$message = 'This is a test';
mail ($recipient, $subject, $message, $header);
Arclab Web Form Builder uses mb_send_mail instead of mail to ensure, that all characters will be displayed correctly (in utf-8 format). It requires a few more settings before you call it, but you don't need to worry about settings or the coding - the complete coding will be done by the software!
What type of message can I send?
Arclab Web Form Builder supports Text, HTML and XML messages (base64 and 8bit encoded).
What if my page does not use charset=utf-8?
The software converts the template page automatically, so that the page/form will use utf-8 as charset.