Problemas con SMTP en registro de usuarios en sitio web

  • Autor Autor sormaria
  • Fecha de inicio Fecha de inicio
S

sormaria

Gamma
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
no se donde escribir esto que planteo si algún moderador me ayuda a mover a donde es correcto le agradeceria

buenas amigos tengo un problema con mi sitio web en el area de registro compre este script en WineMP3 Music Search Engine - PHP Scripts | CodeCanyon
lo instale y seguí los pasos para su instalación pero ahora me encuentro con un problema en esta área public_html/app/config/mail.php
que me pide configurar (Configure los ajustes SMTP de lo contrario el registro de usuarios no trabajará.
Abrir archivo / config / mail.php app y editar sus datos SMTP. se puede ver tus datos SMTP en su panel de control proveedor de hosting)

pero no consigo como arreglar este código si alguien me ayuda se lo agradecería mucho, escribí en comentarios donde compre el código y no me responden
el código original es este abajo


<?php

return array(

/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may specify which one you're using throughout
| your application here. By default, Laravel is setup for SMTP mail.
|
| Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill", "log"
|
*/

'driver' => 'mail',

/*
|--------------------------------------------------------------------------
| SMTP Host Address
|--------------------------------------------------------------------------
|
| Here you may provide the host address of the SMTP server used by your
| applications. A default option is provided that is compatible with
| the Mailgun mail service which will provide reliable deliveries.
|
*/

'host' => 'smtpout.secureserver.net',

/*
|--------------------------------------------------------------------------
| SMTP Host Port
|--------------------------------------------------------------------------
|
| This is the SMTP port used by your application to deliver e-mails to
| users of the application. Like the host we have set this value to
| stay compatible with the Mailgun e-mail application by default.
|
*/

'port' => 465,

/*
|--------------------------------------------------------------------------
| Global "From" Address
|--------------------------------------------------------------------------
|
| You may wish for all e-mails sent by your application to be sent from
| the same address. Here, you may specify a name and address that is
| used globally for all e-mails that are sent by your application.
|
*/

'from' => array('address' => 'no-reply@winemp3.com',
'name' => Setting::first()->website_name, ),

/*
|--------------------------------------------------------------------------
| E-Mail Encryption Protocol
|--------------------------------------------------------------------------
|
| Here you may specify the encryption protocol that should be used when
| the application send e-mail messages. A sensible default using the
| transport layer security protocol should provide great security.
|
*/

'encryption' => 'ssl',

/*
|--------------------------------------------------------------------------
| SMTP Server Username
|--------------------------------------------------------------------------
|
| If your SMTP server requires a username for authentication, you should
| set it here. This will get used to authenticate with your server on
| connection. You may also set the "password" value below this one.
|
*/

'username' => 'no-reply@winemp3.com',

/*
|--------------------------------------------------------------------------
| SMTP Server Password
|--------------------------------------------------------------------------
|
| Here you may set the password required by your SMTP server to send out
| messages from your application. This will be given to the server on
| connection so that the application will be able to send messages.
|
*/

'password' => 'yourpassword',

/*
|--------------------------------------------------------------------------
| Sendmail System Path
|--------------------------------------------------------------------------
|
| When using the "sendmail" driver to send e-mails, we will need to know
| the path to where Sendmail lives on this server. A default path has
| been provided here, which will work well on most of your systems.
|
*/

'sendmail' => '/usr/sbin/sendmail -bs',

/*
|--------------------------------------------------------------------------
| Mail "Pretend"
|--------------------------------------------------------------------------
|
| When this option is enabled, e-mail will not actually be sent over the
| web and will instead be written to your application's logs files so
| you may inspect the message. This is great for local development.
|
*/

'pretend' => false,

);

- - - Actualizado - - -

quien me puede ayudar por favor
 
Supongo que quieres que te ayudemos a configurar el archivo con tus datos. Bien, pues es muy fácil:
En ese archivo buscas:
PHP:
 'host' => 'smtpout.secureserver.net',

Y reemplazas
Insertar CODE, HTML o PHP:
smtpout.secureserver.net
por tu servidor, pero manteniendo las comillas simples (') por ejemplo:
PHP:
 'host' => 'smtp.miservidoraperpen.com',

----
Ahora busca:
PHP:
 'from' => array('address' => 'no-reply@winemp3.com',

Y cambia
Insertar CODE, HTML o PHP:
no-reply@winemp3.com
(Mantiendo las comillas simples) por el e-mail que quieres que les aparezca a los usuarios cuando se les envie un correo desde tu script (Recuerda que usar un correo falso para engañar, estafar etc. es delito)

----
PHP:
 'encryption' => 'ssl',

Esto es la encriptación del servidor, por motivos de seguridad te recomiendo dejarla así.

----
PHP:
 'username' => 'no-reply@winemp3.com',
Esto es el nombre de usuario, cambia
Insertar CODE, HTML o PHP:
no-reply@winemp3.com
por el tuyo manteniendo las comillas como siempre.

----
PHP:
 'password' => 'yourpassword',
Esto es la contraseña, cambia
Insertar CODE, HTML o PHP:
yourpassword
por la tuya manteniendo las comillas como siempre.

----
(ANTES DE HACER ESTO LOS MENSAJES DE ABAJO)
PHP:
 'sendmail' => '/usr/sbin/sendmail -bs',
Esta parte es la ruta predeterminada del sendmail, si dejando este valor no te funciona y no conoces el directorio de sendmail, habla con tu host para que te digan la ruta correcta.

----
PHP:
 'port' => 465,
Por último ahía cambia
Insertar CODE, HTML o PHP:
465
por el puerto por el que te conectaras a SMTP, en este caso al tratarse de un valor numérico no son necesarias las comillas.


Un saludo y espero que te sirva.
 
Última edición:
Supongo que quieres que te ayudemos a configurar el archivo con tus datos. Bien, pues es muy fácil:
En ese archivo buscas:
PHP:
 'host' => 'smtpout.secureserver.net',

Y reemplazas
Insertar CODE, HTML o PHP:
smtpout.secureserver.net
por tu servidor, pero manteniendo las comillas simples (') por ejemplo:
PHP:
 'host' => 'smtp.miservidoraperpen.com',

----
Ahora busca:
PHP:
 'from' => array('address' => 'no-reply@winemp3.com',

Y cambia
Insertar CODE, HTML o PHP:
no-reply@winemp3.com
(Mantiendo las comillas simples) por el e-mail que quieres que les aparezca a los usuarios cuando se les envie un correo desde tu script (Recuerda que usar un correo falso para engañar, estafar etc. es delito)

----
PHP:
 'encryption' => 'ssl',

Esto es la encriptación del servidor, por motivos de seguridad te recomiendo dejarla así.

----
PHP:
 'username' => 'no-reply@winemp3.com',
Esto es el nombre de usuario, cambia
Insertar CODE, HTML o PHP:
no-reply@winemp3.com
por el tuyo manteniendo las comillas como siempre.

----
PHP:
 'password' => 'yourpassword',
Esto es la contraseña, cambia
Insertar CODE, HTML o PHP:
yourpassword
por la tuya manteniendo las comillas como siempre.

----
PHP:
 'sendmail' => '/usr/sbin/sendmail -bs',
Esta parte es la ruta predeterminada del sendmail, si dejando este valor no te funciona y no conoces el directorio de sendmail, habla con tu host para que te digan la ruta correcta.

----
PHP:
 'port' => 465,
Por último ahía cambia
Insertar CODE, HTML o PHP:
465
por el puerto por el que te conectaras a SMTP, en este caso al tratarse de un valor numérico no son necesarias las comillas.


Un saludo y espero que te sirva.

Creo que también faltaría donde pone:
PHP:
'driver' => 'mail',

Cambiarlo por:
PHP:
'driver' => 'smtp',

No?

Saludos!
 
Creo que también faltaría donde pone:
PHP:
'driver' => 'mail',

Cambiarlo por:
PHP:
'driver' => 'smtp',

No?

Saludos!
Cierto, error mío.

Si haces lo que dice guixe94 creo que ya no haría falta que hicieras lo de la ruta del sendmail por lo que sería mas sencillo.


Disculpa y gracias a guixe94 por la corrección.
 
Atrás
Arriba