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?


In reply to Mojolicius - validate login account by email by pazt

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.