Question: Smtp Setup For Gmail

Smtp Setup For Gmail

I would like to know in which file I can setup my email settings so I can send email to users like while inviting etc. Suppose I am using Gmail. Please mention which fields in file i need

RV

ratal viper

Asked

I would like to know in which file I can setup my email settings so I can send email to users like while inviting etc. Suppose I am using Gmail.

Please mention which fields in file i need to change and add there taking Gmail as example.

@Mian Saleem

  • MS

    Mian Saleem

    Answered

    Hello,

    Please avoid duplications. You can update mail config in .env file.

    Thank you

  • RV

    ratal viper

    Answered

    Please tell me path (there is an .env.example file in root folder) and what fields i need to change. I tried but didn’t receive email.

    @Mian Saleem

  • RV

    ratal viper

    Answered

    @Mian Saleem waiting for the response.

    Thankyou

  • MS

    Mian Saleem

    Answered

    Hello,

    Please use port 587 for tls and the password should be app password, you account password won’t work. Others look fine.

    Thank you

  • RV

    ratal viper

    Answered

    I have updated port to 587 and i had kept email account password and app password are same .

    I sent an invite again but didn’t receive the email.

    @Mian Saleem

  • MS

    Mian Saleem

    Answered

    Hello,

    Please check if there is any error in Laravel logs storage/logs/

    Please check the sent folder on gmail. If you want to test the email, you can try mailtrap.io

    Thank you

  • RV

    ratal viper

    Answered

    Ok seems I had to click this dns setting record verify, so they are saying to wait for propagation time which is usually 24 hours. I think after that it should be working and emails will not get rejected.

    Let’s wait & check.

  • Login to Reply