Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
code:laravel:email [2020/04/11 17:31] – created gerardorourkecode:laravel:email [2020/04/11 18:36] (current) gerardorourke
Line 2: Line 2:
  
 This is required to be setup for email verification and/or password reset emails. This is required to be setup for email verification and/or password reset emails.
 +
  
 Example **env** config file settings for SMTP\\ Example **env** config file settings for SMTP\\
 Obviously set your own SMTP details (and make sure the From address exists - as your mail server can reject it if not) Obviously set your own SMTP details (and make sure the From address exists - as your mail server can reject it if not)
  
 +The **APP_NAME** needs to be set correctly as we will use this as the From Name of the email address which used for password resets.
 +<code>
 +APP_NAME="Laravel Demo1 App"
 +</code>
 +
 +The **APP_URL** needs to be set correctly as it is the base URL for the password reset link.
 +<code>
 +APP_URL=http://w2016.lab2.purplepi.ie/demo1
 +</code>
 +
 +**SMTP** configuration
 <code> <code>
 MAIL_MAILER=smtp MAIL_MAILER=smtp
Line 14: Line 26:
 MAIL_ENCRYPTION=tls MAIL_ENCRYPTION=tls
 [email protected] [email protected]
-MAIL_FROM_NAME="Laravel Demo1 App"+MAIL_FROM_NAME="${APP_NAME}"
 </code> </code>
  • code/laravel/email.1586622711.txt.gz
  • Last modified: 2020/04/11 17:31
  • by gerardorourke