mailer

Kohana 3.1 - The system does not load email module

霸气de小男生 提交于 2019-12-13 20:08:28
问题 I have a problem using Kohana 3.1. I add the old banks kohana-email module but the result is a error like this: ErrorException [ Fatal Error ]: Class 'Email' not found My application bootstrap.php file is like this: Kohana::modules(array( 'user' => MODPATH.'user', // Useradmin module 'auth' => MODPATH.'auth', // Basic authentication // 'cache' => MODPATH.'cache', // Caching with multiple backends // 'codebench' => MODPATH.'codebench', // Benchmarking tool 'database' => MODPATH.'database', //

How to disable console output on Rails 3 development server?

送分小仙女□ 提交于 2019-12-12 06:26:35
问题 How can I disable the console output on a Rails 3 application? More specifically, I want to disable at least the Mailer output, that outputs the entire email content, including the pictures, making the action processing much slower (it takes almost 10sec to send an email). ps: I think the slowdown is because of the output, if it can be from another source, such as slow smtp server (it's gmail atm, so no.) or something else like that please let me know. 回答1: By this you mean you want to hide

EXCEPTION: Unsupported operation: Platform._localHostname

你说的曾经没有我的故事 提交于 2019-12-11 19:27:23
问题 I am new to angulardart and I am working on mailer, but I am having an error that says: dart_sdk.js:100398 EXCEPTION: Unsupported operation: Platform._localHostname STACKTRACE: dart:sdk_internal get localHostname package:mailer2/src/smtp/smtp_options.dart 4:25 new package:mailer2/src/smtp/helper_options.dart 12:24 new package:DigitalHrSummit/src/components/homepagecomponent/homepage_component.dart 68:21 onSubmit package:DigitalHrSummit/src/components/homepagecomponent/homepage_component

What is the “plain” authentication_type in mailer?

时光怂恿深爱的人放手 提交于 2019-12-11 18:07:44
问题 Looking at the Rails Guides for action mailer, what does the "plain" authentication_type mean in the action mailer smtp_settings ? Does it mean that my password will be sent in the clear? (If it helps, I am using gmail as the smtp provider.) 回答1: According to this article "although the keyword PLAIN is used, the username and password are not sent as plain text over the Internet - they are always BASE64 encoded" However "One drawback using the PLAIN authentication mechanism is that the

Advice on how to send email to multiple users based on an association

一曲冷凌霜 提交于 2019-12-11 07:32:37
问题 I have created a Ruby on Rails application where users can track workouts. The can do so either privately or publicly. On workouts which are public ( workout.share == 1 ) I allow users to comment. When a comment is created on a workout, the workout owner is notified via email. That all works great. I am now looking for some advice on the best way to allow users who have commented on a workout, to also be notified via email. Here is an example. User A creates Workout 1. User B comments on

Attaching a file to PHPMailer

喜你入骨 提交于 2019-12-11 03:28:12
问题 I am currently working on a project that has files stored in a DB as blobs. I need to attach the file to an e-mail and send it out via PHPMailer. I am familiar with $mail->addAttachment() , however, this function seems to take in a file path only, which I don't have. I was wondering if there is any way to manipulate the blob and feed to this function ? I appreciate any suggestions, thanks in advance! The following successfully creates a 'Save As' dialog of the file I need to attach: header(

What are the routes I need to set up to preview emails using Rails 4.1 ActionMailer::Preview?

人走茶凉 提交于 2019-12-08 15:59:05
问题 class UserPreview < ActionMailer::Preview # Accessible from http://localhost:3000/rails/mailers/notifier/welcome_email def welcome_email UserMailer.welcome_email(User.first) end end I have this simple mailer preview using Ruby on Rails 4.1. If I comment out, all of the routes in my routes.rb file and leave only this, the mailer preview works: MyTestApp::Application.routes.draw do end So obviously one of my rights is getting used before the default Rails one for mailer previews. What do I need

mailer error in production only

依然范特西╮ 提交于 2019-12-08 06:27:57
问题 Setup: VPS with Ubuntu 12.04, Apache, PhusionPassenger, Rail 3.2.12, Postgresql I want to send a confirmation mail with my app. In development mode everything works fine, the user receives a mail but in production I get this error (log): Started POST "/newsletters" for 1XX.16X.30.XX at 2013-02-26 09:22:47 +0000 Processing by NewslettersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"XXXXXXXXXXXXX=", "newsletter"=>{"name"=>"Test", "email"=>"test@example.com"},

UserMailer with Devise

假装没事ソ 提交于 2019-12-08 05:31:25
am using my custom mailer UserMailer to send emails. It works perfect in development, but in production i get error 500, that is when am trying to retrieve my password on forgetting. here is what is in the production logs in the production mode Processing by Devise::PasswordsController#create as HTML Parameters: {"utf8"=>"✓","authenticity_token"=>"xxxxxxxxxxxxxxx", "user"=>{"email"=>"sam@gmail.com"}, "commit"=>"Send me r$ Completed 500 Internal Server Error in 2ms NameError (uninitialized constant Devise::UserMailer): activesupport (3.2.8) lib/active_support/inflector/methods.rb:230:in `block

Swift Mailer attachments

半城伤御伤魂 提交于 2019-12-06 05:20:58
问题 I'm creating a CSV on the fly with PHP, I then need to attach this CSV file to the the Swift Mailer Message. I have tried using file_get_content on the created file aswell as using chunk_split(base64_encode(file_get_contents()) on the created file aswell as attaching the file before writing it to disk. Without writing to disk I get Rescource #183 in the CSV, with attaching it with file_get_content I get just a string in each row of the CSV file, anyone know what I'm doing wrong? if(!file