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 - Наука
Send email from PHP using an SMTP server: ruclips.net/video/fIYyemqKR58/видео.html
Love the simplicity of the examples and in the narration 😊 will try it out! thank you!
Hey Dave, thanks very much for the new content. Your channel is great and keeps getting stronger.
All the best
👋
Thank you very much! Your videos are always nice to watch and educative.
Another great content, thanks Dave
Thanks sir!
Great 👍
merci!
Please, make a video on how to install and connect PHP to the VS Code! Really need it!
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?
No immediate plans but probably eventually yes
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.
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.
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?
I haven't tried it with Postmark, but I imagine it is. PHPMailer is, yes.
Thank you.
If you'd make a udemy course I would definitively buy it
Could you please tell me the complete code of FORM,php please
There's a link in the description
2:03 doesnt that expose the API key to anyone inspect elementing your site?
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!
@@dave-hollingworthahh, that's fair. Also, you make great content and you are very smart, keep up your work ^^