Laravel Sending Emails | The Easiest and Simple Way
Laravel Sending Emails | The Easiest and Simple Way

Sending emails are generic tasks done my more applications. And core PHP also provides you with a function for sending the email. But developers at laravel made is an interesting and intuitive task when it comes to sending emails.

Laravel Developer has done a very appreciable job and also provided with different drivers and the option of sending emails. Some of those drivers are mailgun, postmark, Amazon SES driver, SMTP etc.

Note

In this post, we’ll be covering topic regarding sending emails through laravel using SMTP services.

Configuring Mails using SMTP settings

In your project root, you’ll find the file which consists of…


Laravel Jobs and Queues — Configuring, Sending Mail, Dispatching Jobs
Laravel Jobs and Queues — Configuring, Sending Mail, Dispatching Jobs

What are Laravel Queues?

Consider you have a heavy processing task to be performed by application this may be generating large data for reporting, blasting emails for a large number of users or such notifying people when their task gets completed.

These are some of the examples and as they are time-consuming you cannot execute these task is normal manner such are on button click or page submit. So to properly handling these task laravel provides queue functionality where tasks data is storing in a database and then the queue will automatically detect any jobs and execute them in background.

Create a Fresh New Laravel Project

Laravel provides two different…


Python Type-Casting and Type-Conversion
Python Type-Casting and Type-Conversion

Typecasting is for converting a variable from one data type to another data type.

Constructors of respective datatypes are used.

Example

x="10"
y=5
z=int(x)+y

print(z)

#PYTHON OUTPUT
15

In above example variable `x` is of type of string but it is converted to integer variable using constructor `int(variable_name)`

Example

x="10.24"
y=5
z=float(x)+y

print(z)

#PYTHON OUTPUT
15.24

Example

x= 100
x=str(x)
print(x)
print(type(x))

#PYTHON OUTPUT
100
<class 'str'>

Originally published at http://thecodelearners.com on February 17, 2020.


Python Strings
Python Strings

Python strings are an array of characters placed one after the other.

Put string characters in variablePut string characters in variable

name = "Python String"
print(name)

#Python output
Python String

Python string may start from single, double or 3 (“‘) single, (“””) double qoutes

a = 'This is a python string...from single qoutes'
b = "This is a python string...from double qoutes"
c = '''This is a python string...from 3 single qoutes on start and finish'''
d = """This is a python string...from 3 double quotes on start and finish"""

print(a)
print(b)
print(c)
print(d)

#Python output
This is a python string...from single quotes
This is a python string...from double quotes
This…

TheCodeLearners

I’m are technology blogger and publish post related to software development. You can visit my website by clicling on this link http://thecodelearners.com/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store