For example WordPress uses the PHP Mail function to send its emails, how can I do this with Laravel using php built in function to send email so that I don't need to use SMTP etc
@riyas123, DO NOT USE PHP 'mail' FUNCTION.
Your messages simply wouldn't delivered, cause many Mail providers (Gmail, Outlook, anyone) sending it right to "Spam" folder.
Instead, try to use sending from your mailbox, using smtp connection. Just dive into Laravel Mail or SwiftMailer configuration, it's very easy (swiftmailer easier to understand).