Sending Email
Overview
Objective

Learn how to send email and various email headers in
ProdigyView.

Requirements

 Installed mailer on your server
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/Mail.php
Sending Emails in PHP
        makes me feel like this




The Bad News: This kid is scarred for life.
The Good News: Sending emails with multiple headers in PHP
will no longer be a scarring event
SMTP and PHP Mail
ProdigyView supports sending email over SMTP and the regular
PHP mailer.
This tutorial is about the basics attributes of sending email
through either method. We will cover mail functions such as
 Carbon Copies
 Blinded Copies
 Message ID
 Errors To
 Reply To
 Html vs Text Emails
 File Attachments
Required Fields
The three required fields when sending an email are
 Receiver: The email address will be receiving the message
 Subject: The subject line of the email
 Message: The message going in the email.
Those three fields can be set like below.
Sender
This is not a required, but this field should be included.
The sender is the email address that email is coming
from.




 Sender’s email address
Carbon and Blind Copy
   Sending an email carbon copies and blind copies is a
   common function. Emails listed in the carbon copy field
   will be seen by all receipts. Emails listed in the blind copy
   will receive the email and who it was sent too, but others
   will not know it was sent to them.




Carbon Copy




Blind Copy
Reply To
   The Reply To is the default email address that the
   receiver will reply to when an email is received.




Reply To Email
Errors To
   Errors To is an option that if there is an error when
   sending an email, such as the host not available, an error
   message will be sent to a designated recipient.




Errors To Email
Message ID
   The message ID is an id on the email sent. It can be a
   tool used later to track emails.




Message ID
Html Email vs Text Email
 Normally, when you send an email in ProdigyView, there are
 two versions automatically created for you, text and html.


                        Text Version is
                      created. Html Tags
                         are stripped.



                                                Email is sent
PVMail::sendMail()




                       HTML version is
                         left as is.
HTML/Text Emails
HTML emails are for web clients that can receive html
templates in the email. If the client cannot, the text version of
the mail will be displayed. We can also manually define th html
message and the text message.

     HTML message




     Text message
Attachment
      Sending attached with PHP mail can be easily
      accomplished by setting the file location of the file when
      sending an email.




Attached file location
Multiple Attachments
Multiple attachments can be sent by putting the files in an
array.




                 Array of files
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

Sending Email Basics PHP

  • 1.
  • 2.
    Overview Objective Learn how tosend email and various email headers in ProdigyView. Requirements  Installed mailer on your server Estimated Time 10 Minutes www.prodigyview.com
  • 3.
    Follow Along WithCode 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/Mail.php
  • 4.
    Sending Emails inPHP makes me feel like this The Bad News: This kid is scarred for life. The Good News: Sending emails with multiple headers in PHP will no longer be a scarring event
  • 5.
    SMTP and PHPMail ProdigyView supports sending email over SMTP and the regular PHP mailer. This tutorial is about the basics attributes of sending email through either method. We will cover mail functions such as  Carbon Copies  Blinded Copies  Message ID  Errors To  Reply To  Html vs Text Emails  File Attachments
  • 6.
    Required Fields The threerequired fields when sending an email are  Receiver: The email address will be receiving the message  Subject: The subject line of the email  Message: The message going in the email. Those three fields can be set like below.
  • 7.
    Sender This is nota required, but this field should be included. The sender is the email address that email is coming from. Sender’s email address
  • 8.
    Carbon and BlindCopy Sending an email carbon copies and blind copies is a common function. Emails listed in the carbon copy field will be seen by all receipts. Emails listed in the blind copy will receive the email and who it was sent too, but others will not know it was sent to them. Carbon Copy Blind Copy
  • 9.
    Reply To The Reply To is the default email address that the receiver will reply to when an email is received. Reply To Email
  • 10.
    Errors To Errors To is an option that if there is an error when sending an email, such as the host not available, an error message will be sent to a designated recipient. Errors To Email
  • 11.
    Message ID The message ID is an id on the email sent. It can be a tool used later to track emails. Message ID
  • 12.
    Html Email vsText Email Normally, when you send an email in ProdigyView, there are two versions automatically created for you, text and html. Text Version is created. Html Tags are stripped. Email is sent PVMail::sendMail() HTML version is left as is.
  • 13.
    HTML/Text Emails HTML emailsare for web clients that can receive html templates in the email. If the client cannot, the text version of the mail will be displayed. We can also manually define th html message and the text message. HTML message Text message
  • 14.
    Attachment Sending attached with PHP mail can be easily accomplished by setting the file location of the file when sending an email. Attached file location
  • 15.
    Multiple Attachments Multiple attachmentscan be sent by putting the files in an array. Array of files
  • 16.
    API Reference For abetter 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