Hotel Guevarini uses PHPMailer to send transactional emails. SMTP credentials are configured directly inside each PHP file that sends mail — there is no centralized config file for email.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/EmirPolito/CRUD-HOTEL-GUEVARINI-Publico/llms.txt
Use this file to discover all available pages before exploring further.
Files That Require SMTP Configuration
You must update the credentials in all four of the following files. Each one handles a different email flow, and a missing or incorrect credential in any single file will break that specific flow.| File | Email Sent |
|---|---|
php/auth/procesar_registro.php | Account verification email sent after public self-registration |
php/auth/enviar_recuperacion.php | Password recovery link emailed to the user |
php/auth/reenviar_verificacion.php | Re-sends the verification link to an unverified account |
php/usuarios/guardar_usuario.php | Verification email sent when an administrator creates a user |
SMTP Configuration Block
Each of the four files contains a block like the following. The fields markedREEMPLAZAR (“replace”) must be filled in with your actual SMTP credentials:
Setting Descriptions
| Setting | Description |
|---|---|
Host | The hostname of your SMTP server (e.g. sandbox.smtp.mailtrap.io or smtp.gmail.com). |
SMTPAuth | Set to true to authenticate with the SMTP server using the credentials below. |
Username | Your SMTP account username or API key, provided by your email service. |
Password | Your SMTP account password or API secret. |
SMTPSecure | Encryption method. 'tls' is used here, which works with STARTTLS on port 2525 or 587. |
Port | The port your SMTP server listens on. Mailtrap sandbox uses 2525; most production providers use 587 (TLS) or 465 (SSL). |
Example Configurations
- Mailtrap (Testing)
- Production SMTP
Mailtrap’s sandbox captures all outgoing emails into a virtual inbox without delivering them to real addresses. This makes it ideal for local and staging environments.To get your credentials: log in to Mailtrap, open your inbox, go to SMTP Settings, and copy the username and password shown there.
Where to Find the Block in Each File
The SMTP configuration appears inside atry block within the section of each file that handles email sending. Search for $mail->isSMTP() in any of the four files to jump directly to the configuration block.