@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | <table border="0" cellpadding="0" cellspacing="0"> |
| 311 | 311 | <tbody> |
| 312 | 312 | <tr> |
| 313 | - <td> <a href="https://rtfbchallenge.tk/'.$user_album.'.zip" target="_blank">Download Albums</a> </td> |
|
| 313 | + <td> <a href="https://rtfbchallenge.tk/'.$user_album . '.zip" target="_blank">Download Albums</a> </td> |
|
| 314 | 314 | </tr> |
| 315 | 315 | </tbody> |
| 316 | 316 | </table> |
@@ -339,24 +339,24 @@ discard block |
||
| 339 | 339 | </html> |
| 340 | 340 | '; |
| 341 | 341 | |
| 342 | - $mail = new PHPMailer(true); // Passing `true` enables exceptions |
|
| 342 | + $mail = new PHPMailer(true); // Passing `true` enables exceptions |
|
| 343 | 343 | try { |
| 344 | 344 | //Server settings |
| 345 | - $mail->SMTPDebug = 0; // Enable verbose debug output |
|
| 346 | - $mail->isSMTP(); // Set mailer to use SMTP |
|
| 347 | - $mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers |
|
| 348 | - $mail->SMTPAuth = true; // Enable SMTP authentication |
|
| 349 | - $mail->Username = '[email protected]'; // SMTP username |
|
| 350 | - $mail->Password = 'Your Password'; // SMTP password |
|
| 351 | - $mail->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted |
|
| 352 | - $mail->Port = 465; // TCP port to connect to |
|
| 345 | + $mail->SMTPDebug = 0; // Enable verbose debug output |
|
| 346 | + $mail->isSMTP(); // Set mailer to use SMTP |
|
| 347 | + $mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers |
|
| 348 | + $mail->SMTPAuth = true; // Enable SMTP authentication |
|
| 349 | + $mail->Username = '[email protected]'; // SMTP username |
|
| 350 | + $mail->Password = 'Your Password'; // SMTP password |
|
| 351 | + $mail->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted |
|
| 352 | + $mail->Port = 465; // TCP port to connect to |
|
| 353 | 353 | |
| 354 | 354 | //Recipients |
| 355 | 355 | $mail->setFrom($user_email, 'Any name(Optional)'); |
| 356 | - $mail->addAddress($user_email, $user_name); // Add a recipient |
|
| 356 | + $mail->addAddress($user_email, $user_name); // Add a recipient |
|
| 357 | 357 | |
| 358 | 358 | //Content |
| 359 | - $mail->isHTML(true); // Set email format to HTML |
|
| 359 | + $mail->isHTML(true); // Set email format to HTML |
|
| 360 | 360 | $mail->Subject = '[Social Manager] Album Download Link'; |
| 361 | 361 | $mail->Body = $mail_body; |
| 362 | 362 | $mail->send(); |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | } catch (Exception $e) { |
| 366 | 366 | echo 'Email could not be sent. Mailer Error: ', $mail->ErrorInfo; |
| 367 | 367 | } |
| 368 | -}else { |
|
| 368 | +} else { |
|
| 369 | 369 | echo "Email id is not provided Or Downloading failed"; |
| 370 | 370 | } |
| 371 | 371 | ?> |
| 372 | 372 | \ No newline at end of file |
@@ -365,7 +365,7 @@ |
||
| 365 | 365 | } catch (Exception $e) { |
| 366 | 366 | echo 'Email could not be sent. Mailer Error: ', $mail->ErrorInfo; |
| 367 | 367 | } |
| 368 | -}else { |
|
| 368 | +} else { |
|
| 369 | 369 | echo "Email id is not provided Or Downloading failed"; |
| 370 | 370 | } |
| 371 | 371 | ?> |
| 372 | 372 | \ No newline at end of file |