pazt has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I'm trying follow the "How to send verification emails using Mojolicious" tutorial by, Joel Berger.
Everythig seems that is ok, but the email isn't sent by app.pl
And when i check ./app.pl minion worker and ./myapp.pl minion job <<id>> everything seems ok again.
{ "args" => [ "thiagopaz1986\@gmail.com", "Confirm registration", "Please visit http://192.168.56.30:3000/confirm?jwt=eyJhbGciOiJIUz +I1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImZyZWQifQ.hqRpEjfmu5r-pnCcHYK +n29G27AVOz_rtjLpNrPoXoxE to confirm" ], "attempts" => 1, "children" => [], "created" => "1473314401", "delayed" => "1473314401", "finished" => "1473446944", "id" => 7, "parents" => [], "priority" => 0, "queue" => "default", "result" => undef, "retried" => undef, "retries" => 0, "started" => "1473446939", "state" => "finished", "task" => "email_task", "worker" => 1 }
But email is not sent
Just for testing, I created another script with Email::Simple and Email::Sender::Simple only and the email was sent successfully.
#!/usr/bin/perl -w use strict; use Email::Simple; use Email::Sender::Simple; my $email = Email::Simple->create( header => [ To => 'thiagopaz1986@gmail.com', From => 'sdpdeteste@bol.com.br', Subject => 'Mojo teste' , ], body => 'Hello monks', ); Email::Sender::Simple->send($email);
Can any monk help me please? Is this has happened to someone?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mojolicius - validate login account by email
by Anonymous Monk on Sep 10, 2016 at 00:27 UTC | |
by pazt (Acolyte) on Sep 11, 2016 at 05:22 UTC | |
by Corion (Patriarch) on Sep 11, 2016 at 05:58 UTC |