No hint path defined for [notifications]? - laravel

No hint path defined for [notifications]? When I reset the password I get this error. I have any templates in view directory, but if auth in view - mail sending, but if auth in view/Template/ directory I get the error:
in FileViewFinder.php (line 112)
at FileViewFinder->parseNamespaceSegments('notifications::email')in FileViewFinder.php (line 90)
at FileViewFinder->findNamespacedView('notifications::email')in FileViewFinder.php (line 76)
at FileViewFinder->find('notifications::email')in Factory.php (line 129)
at Factory->make('notifications::email', array('level' => 'info', 'subject' => null, 'greeting' => null, 'salutation' => null, 'introLines' => array('You are receiving this email because we received a password reset request for your account.'), 'outroLines' => array('If you did not request a password reset, no further action is required.'), 'actionText' => 'Reset Password', 'actionUrl' => 'http://laravel.******.pw/password/reset?4d8a6e1cd764c6c7638fb7eee784cd3394432622b296493f5ee5b39a56712182'))in Markdown.php (line 62)

Related

Indipay parameter missing exception

I am sending all the parameters required by indipay but still i am getting a parameter missing exception. If i send the static values then it is working fine.
$parameters = [
'purpose' => 'Application Fee for '.$regnId,
'buyer_name' => $request->s_fname.' '.$request->s_lname,
'amount' => env('APPLICATION_FEE'),
];
$order = Indipay::prepare($parameters);
return Indipay::process($order);
IndipayParametersMissingException in InstaMojoGateway.php line 119 at
InstaMojoGateway->checkParameters(array('redirect_url' =>
'http://127.0.0.1:8000/parent/response/indipay', 'purpose' =>
'Application Fee for GKB_19LKG_000019', 'buyer_name' => 'asdasd
asdasd', 'amount' => '200')) in InstaMojoGateway.php line 41
I finally found the answer.
The indipay package didn't gave the correct error. There was no parameter missing in the request. There was a max size issue in the validator function for the instamojo payment gateway.

Laravel 5 Mail - Gmail - AbstractSmtpTransport.php line 399:Uninitialized string offset: 3

so i'm trouble getting a fairly difficult time getting my mail up and i'm not finding a comparable solution out there. I’m trying to send a basic email through gmail from my website using SMTP. Everything seems correct. Thanks for your help
• my account is xxx#gmail.com. i've set up the two step verification on this account. the xxx#gmail.com account has password a123
• i'm trying to send it from my email marketing#y.com. for xxx#gmail.com
• under gmail-settings-account and import- send mail as
• i have
o Marketing -Not an alias.
o Mail is sent through: smtp.gmail.com
o Secured connection on port 587
o using TLS
• clicking on edit info- Name:
o Marketing
o Email address: marketing#y.com
• Click Next - Edit email address - Send mail through your SMTP server
o Configure your mail to be sent through SamsSocial.com SMTP servers Learn more
o You are currently using: secured connection on port 587 using TLS
o To edit, please adjust your preferences below.
o SMTP Server: smtp.gmail.com
o Port: Username: xxx#gmail.com
o Password: OTHERPASS
o Secured connection using TLS (recommended)
i'm getting the following error and it's taking an incredibly long time
ErrorException in AbstractSmtpTransport.php line 399:
Uninitialized string offset: 3
in AbstractSmtpTransport.php line 399
at HandleExceptions->handleError('8', 'Uninitialized string offset: 3', 'C:\wamp\www\d\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php', '399', array('seq' => '8', 'response' => '�334 VXNlcm5hbWU6 L', 'line' => 'L')) in AbstractSmtpTransport.php line 399
at Swift_Transport_AbstractSmtpTransport->_getFullResponse('8') in AbstractSmtpTransport.php line 277
at Swift_Transport_AbstractSmtpTransport->executeCommand('AUTH LOGIN ', array('334'), array()) in EsmtpTransport.php line 270
at Swift_Transport_EsmtpTransport->executeCommand('AUTH LOGIN ', array('334')) in LoginAuthenticator.php line 40
controller
public function sendEmailReminder()
{
$user = User::findOrFail(1);
// dd(Config::get("mail"));
Mail::send('admin.marketing.emails.test', ['user' => $user], function ($m) use ($user) {
//i've had this with and without the from
$m->to('test#yahoo.com', 'peter')->subject('This is how we do it');
});
return redirect('admin/marketing');
}
Test.blade.php
Hi {{$user['name']}}. this is the first email we've sent
Config/mail.php
<?php
return [
'driver' => 'smtp',
'host' => env('MAIL_HOST', 'smtp.gmail.com'),
'port' => env('MAIL_PORT', 587),
'from' => ['address' => 'Marketing#t.com', 'name' => 'Marketing'],
'encryption' => 'tls',
'username' => env('MAIL_USERNAME',xxx#gmail.com'),
'password' => env('MAIL_PASSWORD','OTHERPASS’),
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false,
];
.env
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=xxx#gmail.com
MAIL_PASSWORD=OTHERPASS
MAIL_ENCRYPTION=tls
When I do dd(Config::get("mail")); - I get the following which appears correct
array:9 [▼
"driver" => "smtp"
"host" => "smtp.gmail.com"
"port" => "587"
"from" => array:2 [▼
"address" => "Marketing#y.com"
"name" => "Marketing"
]
"encryption" => "tls"
"username" => "xxx#gmail.com"
"password" => "OTHERPASS"
"sendmail" => "/usr/sbin/sendmail -bs"
"pretend" => false
]
The error might be misleading, but it is actually caused because authentication against gmail smtp servers produced an unexpected output. Google has changed the way authorization works for client apps.
Now it is necessary to retrieve an App Password for the app that is accessing Mail or Calendar in your behalf, and use that App Password instead of the usual password that you use for web.
More info here: https://support.google.com/accounts/answer/185833?hl=en

magento community forgot password not working

I have inherited a Magento Community site, at some point in it's history it was upgraded and it seems that one of the upgrades did not successfully run Forgot Password SQL scripts. The rp_token and rp_token_created_at attributes are missing from the eav_attribute table. So right now if you use the forgot password feature and enter in an email address that is in the system Magento throws an error and you get a blank page.
I tried adding these fields in manually but Magento must be doing some extra work behind the scene when adding attributes, so my question is how can I run the upgrade scripts to get this feature working?
The scripts that it looks like did not complete successfully are:
app\\code\\core\\Mage\\Customer\\sql\\customer_setup\\mysql4-upgrade-1.6.0.0-1.6.1.0.php
These attributes are not in the eav_attribute table.
// Add reset password link token attribute
$installer->addAttribute('customer', 'rp_token', array(
'type' => 'varchar',
'input' => 'hidden',
'visible' => false,
'required' => false
));
// Add reset password link token creation date attribute
$installer->addAttribute('customer', 'rp_token_created_at', array(
'type' => 'datetime',
'input' => 'date',
'validate_rules' => 'a:1:{s:16:\"input_validation\";s:4:\"date\";}',
'visible' => false,
'required' => false
));
app\\code\\core\\Mage\\Admin\\sql\\admin_setup\\upgrade-1.6.0.0-1.6.1.0.php
These are not in the admin_user table.
// Add reset password link token column
$installer->getConnection()->addColumn($installer->getTable('admin/user'), 'rp_token', array(
'type' => Varien_Db_Ddl_Table::TYPE_TEXT,
'length' => 256,
'nullable' => true,
'default' => null,
'comment' => 'Reset Password Link Token'
));
// Add reset password link token creation date column
$installer->getConnection()->addColumn($installer->getTable('admin/user'), 'rp_token_created_at', array(
'type' => Varien_Db_Ddl_Table::TYPE_TIMESTAMP,
'nullable' => true,
'default' => null,
'comment' => 'Reset Password Link Token Creation Date'
));'
My best guess is SMTP could have been deactivated. Do let me know if am wrong.

Unable to send Email Codeigniter

i m trying to send email It properly working on localhost
when i live it on server it give me warning
i m using codeigniter here is the code
public function send_me($from,$name,$toEmail,$subject,$msg){
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.googlemail.com',
'smtp_port' => 465,
'smtp_user' => 'xxxxxxxxxxx',//user name herer
'smtp_pass' => 'xxxxxxxx', //password hre
'mailtype' => 'html',
'charset' => 'iso-8859-1',
'wordwrap' => TRUE
);
$this->load->library('email', $config);
$this->email->set_newline("\r\n");
$this->email->from($from,$name);
$this->email->to($toEmail);//to address here
$this->email->subject($subject);
$this->email->message($msg);
if($this->email->send())
return true;
else
return false;
}
and warning are
A PHP Error was encountered
Severity: Warning
Message: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.googlemail.com:465 (Connection timed out)
Filename: libraries/Email.php
Line Number: 1689
A PHP Error was encountered
Severity: Warning
Message: fwrite() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1846
I have answered several issues like this one. If your local email is working fine then follow the steps below:
To use Google SMTP in CodeIgniter you need to make 2 (two) changes into your Gmail account setting: (N.B. Please be aware that it is now easier for an attacker to break into your account -says Google)
Set off 2-step Verification.
Allow less secure apps: ON (or Enable)
Now use 'smtp_host' as ssl://smtp.gmail.com instead of smtp.googlemail.com
Hope upcoming users can get this help too.

Cakephp Email input validation exception

I have validation for the email input in my form but I would also like to create an exception for a string: "Not given" as some contact information do not have an email address. I know I can remove the email validation to do this but I want that validation there for new contacts. Those that do not have email addresses are some of the old contacts. So I would need an exception in order for me to add those contacts into this new system.
My current email validation in the model is as follows:
'email' => array(
'email' => array(
'rule' => array('email'),
'message' => 'Please enter a valid email address',
//'allowEmpty' => false,
//'required' => false,
//'last' => false, // Stop validation after this rule
//'on' => 'create', // Limit validation to 'create' or 'update' operations
),
'uniqueEmail' => array(
'rule'=>'isUnique',
'message' => 'This email has already been added'
),
)
How do I implement this exception and where?
Any help would be great. Thanks!!
Just uncomment that 'allowEmpty' => false line and change it to true, this will permit the email filled to be submitted as an empty string.

Resources