GithubHelp home page GithubHelp logo

mojolicious-plugin-mail's People

Contributors

borisdaeppen avatar sharifulin avatar simashin avatar zakir-hyder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mojolicious-plugin-mail's Issues

Receiving mail

Hi,

Here's a little wishlist item, wouldn't it be nice if this plugin also offered a (default) way for receiving incoming mail?

One of the most popular setups these days seems to be a Postfix/Exim server that pipes all incoming mails to curl, which then performs a POST request against the web application with the whole mail attached as a url-encoded parameter.

Perhaps there could be a helper that checks for the presence of such a parameter and returns the parsed mail.

post '/incoming_mail' => sub {
  my $self = shift;

  # Check basic auth or something
  ...

  # Check for presence of mail parameter and render appropriate response (200, 404...)
  return unless my $parsed_mail = $self->mail('parameter_name');

  # Process mail
  ...
};

Doesn't really have to be very sophisticated, but just having the whole process documented in a module like Mojolicious::Plugin::Mail would be awesome. :)

Wide character in subroutine entry at /usr/lib64/perl5/site_perl/5.12.2/MIME/Lite.pm line 2264.

Суть такова:
Плагин подключен как :

$self->plugin(mail => {
    from     => '[email protected]',
    encoding => 'base64',
    how      => 'sendmail',
    howargs  => [ '/usr/sbin/sendmail -t' ],
  });

Вызывается в контроллере :

 $self->mail(to => $params->{user_email}, template => 'mail/registration', format => 'mail', user=>$result);

В шаблоне русский текст, шаблон в utf8;
Все это на линуксе, локаль которого тоже utf8
Mojo, MIME::Lite и Mojolicious::Plugin::Mail последние с cpan.

2263:             /^BASE64/ and do {
2264:                 $out->print( encode_base64( $self->{Data} ) );
2265:                 last DATA;
2266:             };

SSL/TLS support

Because this plugin relies on MIME::Lite, it allows neither to send messages with STARTTLS nor with SSL/TLS. In our area, it gets more or less impossible to send messages with standard smtp. Any ideas how we could solve this?

Rolf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.