Question: How To Use The Smtp Settings In V4

How To Use The Smtp Settings In V4

I am not sure will it use SSL or TLS also not sure if the smtp is even working!

OA

Omi Azad

Asked
I am not sure will it use SSL or TLS also not sure if the smtp is even working!
  • MS

    Mian Saleem

    Answered
    Hello,

    The mails are tested, if you are not sure about encryption then check with your provide. Most of the provider support `tls`

    Thank you
  • OA

    Omi Azad

    Answered
    How do I check my credentials are working. I tried reset password link, no mail came. But it showed Mail Sent.
  • MS

    Mian Saleem

    Answered
    Hello,

    Did you update the mail settings? If not the default mail is set to log. You can check the latest in `storage/logs/` for logs.

    You can update password in database's user table to `$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi` to set it to `password`

    Thank you
  • OA

    Omi Azad

    Answered
    [![00.png](https://i.postimg.cc/05hT0VJS/00.png)](https://postimg.cc/3WCfKC1r)

    Hi There,
    Can you please suggest what else I need to do, to make the mail function work?
  • MS

    Mian Saleem

    Answered
    Hello,

    You can use `tls` or `ssl` as per your smtp server.

    Thank you
  • OA

    Omi Azad

    Answered
    I have tried both SSL/TLS, as soon as I save the settings, it says "The selected mail mailers smtp encryption is invalid."

    I think we need a way to check if the SMTP is working or not.

    PS: You also need to update your update documentation. Apart from backing up the .env file, they also need to backup public/img folder.
  • MS

    Mian Saleem

    Answered
    Hello,

    Mail encryption can only be empty string, `tls` or `ssl`

    To check/test stmp, you can email the invoice/quotation.

    I will update the docs to backup img folder too.

    Thank you
  • OA

    Omi Azad

    Answered
    I still could not make SMTP working. I tried local SMTP as well, did not work. Is there any way I can test it?
  • MS

    Mian Saleem

    Answered
    Hello,

    Please check the error logs in the `storage/logs/` folder. If you need to test smtp, you can try mailtrap.io They offer free account that can be used for testing.

    Thank you
  • OA

    Omi Azad

    Answered
    Hi there,
    I do not have time for this. I pay you, then I fix things for you? Please accept my refund request and let me get my money back.
  • Login to Reply