PHPMailer Setup

2 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€92.42
List Price:  €129.40
You save:  €36.97
£77.30
List Price:  £108.22
You save:  £30.92
CA$143.66
List Price:  CA$201.13
You save:  CA$57.47
A$159.74
List Price:  A$223.65
You save:  A$63.90
S$134.16
List Price:  S$187.84
You save:  S$53.67
HK$778.08
List Price:  HK$1,089.35
You save:  HK$311.26
CHF 88.20
List Price:  CHF 123.48
You save:  CHF 35.28
NOK kr1,046.74
List Price:  NOK kr1,465.48
You save:  NOK kr418.74
DKK kr689.68
List Price:  DKK kr965.58
You save:  DKK kr275.90
NZ$175.97
List Price:  NZ$246.36
You save:  NZ$70.39
د.إ367.26
List Price:  د.إ514.18
You save:  د.إ146.92
৳12,151.42
List Price:  ৳17,012.48
You save:  ৳4,861.05
₹8,554.46
List Price:  ₹11,976.59
You save:  ₹3,422.12
RM443.30
List Price:  RM620.64
You save:  RM177.34
₦153,341.66
List Price:  ₦214,684.46
You save:  ₦61,342.80
₨28,023.27
List Price:  ₨39,233.70
You save:  ₨11,210.43
฿3,409.50
List Price:  ฿4,773.44
You save:  ฿1,363.94
₺3,792.79
List Price:  ₺5,310.05
You save:  ₺1,517.26
B$572.01
List Price:  B$800.84
You save:  B$228.82
R1,834.16
List Price:  R2,567.90
You save:  R733.73
Лв180.78
List Price:  Лв253.10
You save:  Лв72.32
₩146,968.63
List Price:  ₩205,761.97
You save:  ₩58,793.33
₪369.46
List Price:  ₪517.26
You save:  ₪147.79
₱5,727.37
List Price:  ₱8,018.55
You save:  ₱2,291.17
¥14,961.36
List Price:  ¥20,946.51
You save:  ¥5,985.14
MX$2,045.52
List Price:  MX$2,863.80
You save:  MX$818.28
QR364.64
List Price:  QR510.51
You save:  QR145.87
P1,371.60
List Price:  P1,920.30
You save:  P548.69
KSh12,918.70
List Price:  KSh18,086.70
You save:  KSh5,168
E£5,057.02
List Price:  E£7,080.03
You save:  E£2,023.01
ብር13,135.98
List Price:  ብር18,390.90
You save:  ብር5,254.91
Kz91,190.88
List Price:  Kz127,670.88
You save:  Kz36,480
CLP$94,108.58
List Price:  CLP$131,755.78
You save:  CLP$37,647.20
CN¥726.87
List Price:  CN¥1,017.65
You save:  CN¥290.78
RD$6,298.50
List Price:  RD$8,818.15
You save:  RD$2,519.65
DA13,374.76
List Price:  DA18,725.20
You save:  DA5,350.44
FJ$232.70
List Price:  FJ$325.79
You save:  FJ$93.09
Q771.33
List Price:  Q1,079.90
You save:  Q308.56
GY$20,918.40
List Price:  GY$29,286.60
You save:  GY$8,368.20
ISK kr13,247.67
List Price:  ISK kr18,547.27
You save:  ISK kr5,299.60
DH961.86
List Price:  DH1,346.64
You save:  DH384.78
L1,792.74
List Price:  L2,509.91
You save:  L717.17
ден5,687.63
List Price:  ден7,962.91
You save:  ден2,275.28
MOP$801.08
List Price:  MOP$1,121.54
You save:  MOP$320.46
N$1,834.03
List Price:  N$2,567.72
You save:  N$733.68
C$3,679.28
List Price:  C$5,151.14
You save:  C$1,471.86
रु13,673.77
List Price:  रु19,143.82
You save:  रु5,470.05
S/365.84
List Price:  S/512.19
You save:  S/146.35
K406.09
List Price:  K568.54
You save:  K162.45
SAR375.09
List Price:  SAR525.15
You save:  SAR150.05
ZK2,817.06
List Price:  ZK3,944
You save:  ZK1,126.93
L460.08
List Price:  L644.13
You save:  L184.05
Kč2,306.98
List Price:  Kč3,229.86
You save:  Kč922.88
Ft37,202.18
List Price:  Ft52,084.54
You save:  Ft14,882.36
SEK kr999.90
List Price:  SEK kr1,399.90
You save:  SEK kr400
ARS$107,300.34
List Price:  ARS$150,224.77
You save:  ARS$42,924.43
Bs693.42
List Price:  Bs970.82
You save:  Bs277.39
COP$419,965.17
List Price:  COP$587,968.03
You save:  COP$168,002.86
₡50,036.40
List Price:  ₡70,052.97
You save:  ₡20,016.56
L2,557.77
List Price:  L3,580.99
You save:  L1,023.21
₲798,054.18
List Price:  ₲1,117,307.77
You save:  ₲319,253.59
$U4,216.21
List Price:  $U5,902.86
You save:  $U1,686.65
zł386.96
List Price:  zł541.77
You save:  zł154.80
Already have an account? Log In

Transcript

Hello, in this video, I am going to show you how to set up a PHP mailer. First thing we'll do is literally Google PHP mailer, go to the GitHub link provided link to this anyway, so you don't have to Google yourself. But you can if you want to go to releases, go to the latest version, download the source code, I want you to cancel it somewhere, go download the thoughts more, and go right here. So if I just double click one of them, get rid of the other one. And the only thing that we're interested in is the source folder, the file files. Yeah, so you want to put this, you know, in the same folder, where your website is.

So if I go to my ID, and you can see we've got exception or PHP mailer, pop free and SMTP right there, you can organize the a bit more and put it into some sort of PHP mail folder, email folder, anything like the libraries folder, it's totally up to you. Obviously, just change the path. We set for the require command in a second accordingly. Okay, so to actually set it up, let's do use PHP mailer for this is just, you know, for the namespace, PHP, mailer, backslash, PHP, mailer and the normal one want and this is the exception just in case there is we obviously ideally want no errors, but just in case. So first of all we need to require the exception class. And for this we are going to put it is just called the exception of PHP here is where you wouldn't modify.

So if it was in a PHP mailer, for example, you put something like that, and I recommend adding an extra task for you to essentially, you know, organize it a bit better, and we need free requires the other two is PHP mailer. Then we are going to have SMTP and now to make sure But it's also fair to create a variable called Gmail and new PHP mailer. To true and if this loads, fine, we get no errors, then that means PHP mailer has been successfully set up. So that's all I wanted to, you know cover in this video. In a separate video I'll cover actually how to send email using PHP mailer. So that's it.

Any questions, feel free to pop me a message. And as usual, I look forward to seeing you in the next video.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.