Send an email with an Attachment using PHP | PHP Project with Source Code

Поделиться
HTML-код
  • Опубликовано: 31 май 2024
  • In this short PHP project, you'll learn how to send an email with an attachment using a PHP email API.
    All source code shown is free to download.
    Please consider supporting my channel:
    ☕ ko-fi.com/davehollingworth
    Code shown in the video:
    ‣ gist.github.com/daveh/1da54bb...
    Links shown in the video:
    ‣ www.tiny.cloud/
    ‣ www.php.net/manual/en/functio...
    ‣ www.php.net/manual/en/functio...
    ‣ github.com/PHPMailer/PHPMailer
    ‣ www.php.net/manual/en/book.cu...
    ‣ postmarkapp.com/
    ‣ packagist.org/packages/wildbi...
    File attachment: Photo by Rodion Kutsaiev
    ‣ unsplash.com/@frostroomhead?u...
    Videos:
    ‣ Securely Storing PHP Configuration Settings:
    • Securely Storing PHP C...
    ‣ Rich-text formatting in PHP:
    • Rich-text formatting i...
    ‣ PHP File Uploads
    • PHP File Uploads | The...
    00:00 Introduction
    00:29 HTML form
    01:01 Rich-text editor
    03:29 Process form
    05:37 Send email
    06:25 Install package
    06:40 Use package
    10:32 Example email
    11:30 Summary
    #PHP #email #project
  • НаукаНаука

Комментарии • 22

  • @dave-hollingworth
    @dave-hollingworth  6 месяцев назад +1

    Send email from PHP using an SMTP server: ruclips.net/video/fIYyemqKR58/видео.html

  • @kylebriffa7
    @kylebriffa7 6 месяцев назад +1

    Love the simplicity of the examples and in the narration 😊 will try it out! thank you!

  • @williamsa51
    @williamsa51 6 месяцев назад

    Hey Dave, thanks very much for the new content. Your channel is great and keeps getting stronger.
    All the best
    👋

  • @mlindatech
    @mlindatech 6 месяцев назад

    Thank you very much! Your videos are always nice to watch and educative.

  • @collenzaligway4458
    @collenzaligway4458 6 месяцев назад

    Another great content, thanks Dave

  • @Mark_Justine
    @Mark_Justine 5 месяцев назад +1

    Thanks sir!

  • @ademineshat
    @ademineshat 6 месяцев назад

    Great 👍

  • @abdelhamidnehlil7277
    @abdelhamidnehlil7277 6 месяцев назад +1

    merci!

  • @MrYoru
    @MrYoru 5 месяцев назад

    Please, make a video on how to install and connect PHP to the VS Code! Really need it!

  • @tanzimibthesam5861
    @tanzimibthesam5861 5 месяцев назад

    Excellent any plans to update the course Build a Complete Registration and Login System using PHP MVC? Will we follow the MVC framework you built now?

    • @dave-hollingworth
      @dave-hollingworth  5 месяцев назад

      No immediate plans but probably eventually yes

  • @NedumEze
    @NedumEze 6 месяцев назад

    Wow! Dave. This is amazing.
    Please, a few questions:
    1. Is this API a true alternative to PHPMAILER?
    2. Sending Emails with Attachments, is usually a Marketing activity. Done on the local Machine, and not often from the Website.
    Are your codes for this Tutorial running on Localhost or on your Production Server?
    3. Since File uploads are also enabled for Website Visitors to upload files and or images, can this API run on any Production Server as PHPMAILER does?
    Thanks a Million, Dave. What a resource you are, Sir.

    • @dave-hollingworth
      @dave-hollingworth  6 месяцев назад +1

      Thank you for your kind words!
      1. Yes.
      2. Some contact forms allow you to attach a file, likewise some websites require you to send a file for some reason. My code is running locally but it's exactly the same code I would run on a live production server, it doesn't really make any difference.
      3. The API doesn't run on the local server - the code on the local server communicates with the API (using the package but it's still an API call). You can call the API locally or from another server.

  • @crazyingenieur3277
    @crazyingenieur3277 6 месяцев назад

    Is PHPMailer or this PostMark API UTF-8 friendly? In other words can we use any text in `from`, `to`, `subject`, or `htmlBody`, etc. in any language?

  • @DukeBerserkerTheFury
    @DukeBerserkerTheFury 5 месяцев назад

    If you'd make a udemy course I would definitively buy it

  • @user-gr4dx5zj3f
    @user-gr4dx5zj3f 3 месяца назад

    Could you please tell me the complete code of FORM,php please

  • @GoddessZex
    @GoddessZex 3 месяца назад

    2:03 doesnt that expose the API key to anyone inspect elementing your site?

    • @dave-hollingworth
      @dave-hollingworth  3 месяца назад

      Yes it does. While I'm not sure it's a major problem, I haven't been able to get an answer from Tiny as to how to avoid it!

    • @GoddessZex
      @GoddessZex 3 месяца назад

      ​@@dave-hollingworthahh, that's fair. Also, you make great content and you are very smart, keep up your work ^^