@@ -112,9 +112,9 @@ The class exposes one function for now, `getLoginUrl`. This function will genera
112112 ?>
113113
114114 <html>
115- <head>
116- <title>PHP Mail API Tutorial</title>
117- </head>
115+ <head>
116+ <title >PHP Mail API Tutorial</title >
117+ </head >
118118 <body >
119119 <?php
120120 if (!$loggedIn) {
@@ -261,9 +261,9 @@ Finally, let's update the `./home.php` file to check for the presence of the acc
261261 ?>
262262
263263 <html>
264- <head>
265- <title>PHP Mail API Tutorial</title>
266- </head>
264+ <head>
265+ <title>PHP Mail API Tutorial</title>
266+ </head>
267267 <body>
268268 <?php
269269 if (!$loggedIn) {
@@ -365,22 +365,22 @@ Let's start by adding a new file to contain all of our Mail API functions called
365365
366366 // This function generates a random GUID.
367367 public static function makeGuid(){
368- if (function_exists('com_create_guid')) {
369- error_log("Using 'com_create_guid'.");
370- return strtolower(trim(com_create_guid(), '{}'));
371- }
372- else {
373- error_log("Using custom GUID code.");
374- $charid = strtolower(md5(uniqid(rand(), true)));
375- $hyphen = chr(45);
376- $uuid = substr($charid, 0, 8).$hyphen
377- .substr($charid, 8, 4).$hyphen
378- .substr($charid, 12, 4).$hyphen
379- .substr($charid, 16, 4).$hyphen
380- .substr($charid, 20, 12);
381-
382- return $uuid;
383- }
368+ if (function_exists('com_create_guid')) {
369+ error_log("Using 'com_create_guid'.");
370+ return strtolower(trim(com_create_guid(), '{}'));
371+ }
372+ else {
373+ error_log("Using custom GUID code.");
374+ $charid = strtolower(md5(uniqid(rand(), true)));
375+ $hyphen = chr(45);
376+ $uuid = substr($charid, 0, 8).$hyphen
377+ .substr($charid, 8, 4).$hyphen
378+ .substr($charid, 12, 4).$hyphen
379+ .substr($charid, 16, 4).$hyphen
380+ .substr($charid, 20, 12);
381+
382+ return $uuid;
383+ }
384384 }
385385 }
386386 ?>
@@ -419,9 +419,9 @@ Update `./home.php` to call the `getMessages` function and display the results.
419419 ?>
420420
421421 <html>
422- <head>
423- <title>PHP Mail API Tutorial</title>
424- </head>
422+ <head>
423+ <title>PHP Mail API Tutorial</title>
424+ </head>
425425 <body>
426426 <?php
427427 if (!$loggedIn) {
@@ -460,9 +460,9 @@ Update `./home.php` one final time to generate the table.
460460 ?>
461461
462462 <html>
463- <head>
464- <title>PHP Mail API Tutorial</title>
465- </head>
463+ <head>
464+ <title>PHP Mail API Tutorial</title>
465+ </head>
466466 <body>
467467 <?php
468468 if (!$loggedIn) {
0 commit comments