SlideShare une entreprise Scribd logo
1  sur  12
SMTP Email
Overview
Objective

Learn how to send email through simple mail transfer
protocol(SMTP).

Requirements

 Understanding the basics of sending an email in
  ProdigyView

Estimated Time

10 Minutes


                     www.prodigyview.com
Follow Along With Code
               Example
1. Download a copy of the example code at
  www.prodigyview.com/source.
2. Install the system in an environment you feel comfortable testing
  in.
3. Proceed to examples/util/SMTP.php
What is SMTP
SMTP is short for Simple Mail Transfer Protocol. It is a
standard for sending electronic mail over an IP(Internet
Protocol).

SMTP normally uses port 25 or port 587.

SMTP normally requires a username and
password, which makes it secure than PHP mail
function.

You can have your own SMTP server but there are
advantages to using a service that provides use of their
SMTP servers.

                     www.prodigyview.com
SMTP Service
Using SMTP service has advantages over sending email
with regular php mail.

1. Handles Mail Problems: Using a SMTP service will
   handle the problems encountered when sending mail
   such as bouncing, retries and queues.

2. Spam: Your emails sent are less likely to be
   considered spam if they are being sent but a trusted
   host.
Installing SMTP
SMTP uses the PEAR mail classes. In order to use
SMTP, below are instructions on how to install the required
packages on Ubuntu and Centos.
Ubuntu
 apt-get install pear
Centos
 yum install php-pear
Both
 pear install mail
 pear install Net_SMTP

                         www.prodigyview.com
Sending Email SMTP
If you know the basics of sending email in ProdigyView, those
same values are used when sending a regular email. The only
difference is the SMTP information is passed when sending an
email and the method PVMail::sendEmailSMTP() is used.
Host
The SMTP Host is the server that will be sending the
email. The server is normally either an ip address
(192.168.2.1) or a host name (mail.example.com).




                     www.prodigyview.com
Port
SMTP runs on various ports but the most common is port
25 and Secure SMPT runs on port 465. The ports that
accepts SMTP can be change if you have access to the
mail server.




                    www.prodigyview.com
User & Password
If the SMTP service you are using is secure, a username
and password should be required. This will keep
unauthorized access from potential users such a
spammers from sending emails.




                    www.prodigyview.com
Send the Email
    The last step in the process is sending the email.




1. Email Information



2. SMTP Information



3. Send email




                          www.prodigyview.com
API Reference
For a better understanding of the email, visit the api by
clicking on the link below.

PVMail




                 More Tutorials
For more tutorials, please visit:

http://www.prodigyview.com/tutorials


                       www.prodigyview.com

Contenu connexe

Plus de ProdigyView

Plus de ProdigyView (20)

Installing Plug-ins
Installing Plug-insInstalling Plug-ins
Installing Plug-ins
 
Building An Application
Building An ApplicationBuilding An Application
Building An Application
 
Installing Applications
Installing ApplicationsInstalling Applications
Installing Applications
 
Video Content Management
Video Content ManagementVideo Content Management
Video Content Management
 
Audio Content Management
Audio Content ManagementAudio Content Management
Audio Content Management
 
File Content Management
File Content ManagementFile Content Management
File Content Management
 
Email Configuration
Email ConfigurationEmail Configuration
Email Configuration
 
HTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialHTML5 Tags and Elements Tutorial
HTML5 Tags and Elements Tutorial
 
HTML Forms Tutorial
HTML Forms TutorialHTML Forms Tutorial
HTML Forms Tutorial
 
Html Tags Tutorial
Html Tags TutorialHtml Tags Tutorial
Html Tags Tutorial
 
Video Conversion PHP
Video Conversion PHPVideo Conversion PHP
Video Conversion PHP
 
Sending Email Basics PHP
Sending Email Basics PHPSending Email Basics PHP
Sending Email Basics PHP
 
Tools ProdigyView
Tools ProdigyViewTools ProdigyView
Tools ProdigyView
 
Custom Validation PHP
Custom Validation PHPCustom Validation PHP
Custom Validation PHP
 
Basic File Cache Tutorial - PHP
Basic File Cache Tutorial - PHPBasic File Cache Tutorial - PHP
Basic File Cache Tutorial - PHP
 
Understanding Web Cache
Understanding Web CacheUnderstanding Web Cache
Understanding Web Cache
 
Javascript And CSS Libraries
Javascript And CSS LibrariesJavascript And CSS Libraries
Javascript And CSS Libraries
 
PHP Libraries
PHP LibrariesPHP Libraries
PHP Libraries
 
SQL Prepared Statements Tutorial
SQL Prepared Statements TutorialSQL Prepared Statements Tutorial
SQL Prepared Statements Tutorial
 
Database Basics
Database BasicsDatabase Basics
Database Basics
 

Dernier

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

SMTP Email PHP Tutorial

  • 2. Overview Objective Learn how to send email through simple mail transfer protocol(SMTP). Requirements  Understanding the basics of sending an email in ProdigyView Estimated Time 10 Minutes www.prodigyview.com
  • 3. Follow Along With Code Example 1. Download a copy of the example code at www.prodigyview.com/source. 2. Install the system in an environment you feel comfortable testing in. 3. Proceed to examples/util/SMTP.php
  • 4. What is SMTP SMTP is short for Simple Mail Transfer Protocol. It is a standard for sending electronic mail over an IP(Internet Protocol). SMTP normally uses port 25 or port 587. SMTP normally requires a username and password, which makes it secure than PHP mail function. You can have your own SMTP server but there are advantages to using a service that provides use of their SMTP servers. www.prodigyview.com
  • 5. SMTP Service Using SMTP service has advantages over sending email with regular php mail. 1. Handles Mail Problems: Using a SMTP service will handle the problems encountered when sending mail such as bouncing, retries and queues. 2. Spam: Your emails sent are less likely to be considered spam if they are being sent but a trusted host.
  • 6. Installing SMTP SMTP uses the PEAR mail classes. In order to use SMTP, below are instructions on how to install the required packages on Ubuntu and Centos. Ubuntu  apt-get install pear Centos  yum install php-pear Both  pear install mail  pear install Net_SMTP www.prodigyview.com
  • 7. Sending Email SMTP If you know the basics of sending email in ProdigyView, those same values are used when sending a regular email. The only difference is the SMTP information is passed when sending an email and the method PVMail::sendEmailSMTP() is used.
  • 8. Host The SMTP Host is the server that will be sending the email. The server is normally either an ip address (192.168.2.1) or a host name (mail.example.com). www.prodigyview.com
  • 9. Port SMTP runs on various ports but the most common is port 25 and Secure SMPT runs on port 465. The ports that accepts SMTP can be change if you have access to the mail server. www.prodigyview.com
  • 10. User & Password If the SMTP service you are using is secure, a username and password should be required. This will keep unauthorized access from potential users such a spammers from sending emails. www.prodigyview.com
  • 11. Send the Email The last step in the process is sending the email. 1. Email Information 2. SMTP Information 3. Send email www.prodigyview.com
  • 12. API Reference For a better understanding of the email, visit the api by clicking on the link below. PVMail More Tutorials For more tutorials, please visit: http://www.prodigyview.com/tutorials www.prodigyview.com