Menu

[863fff]: / examples / example_022_content_email.php  Maximize  Restore  History

Download this file

23 lines (15 with data), 559 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
include('../lib/full/qrlib.php');
include('config.php');
// how to build raw content - QRCode to send email, basic
$tempDir = EXAMPLE_TMP_SERVERPATH;
// here our data
$email = 'john.doe@example.com';
$subject = 'question';
$body = 'please write your question here';
// we building raw data
$codeContents = 'mailto:'.$email;
// generating
QRcode::png($codeContents, $tempDir.'022.png', QR_ECLEVEL_L, 3);
// displaying
echo '<img src="'.EXAMPLE_TMP_URLRELPATH.'022.png" />';
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.