[MojoMojo] SMTP mail settings (tried both localhost and
mailserver) in mojomojo.conf
Diego Kuperman
diego at freekeylabs.com
Thu Jan 28 04:46:02 GMT 2010
Hello!,
On 1/27/10 10:33 PM, Mateu X. Hunter wrote:
> I have solid luck with postfix installed and:
>
> email SMTP
> email localhost
> system_mail Default Installation <noreply at mojomojo.org>
>
> for the mail config in mojomojo.conf
>
hm, it seems that it works for you (and for me) because default config
from MojoMojo::View::Email is helping you:
http://github.com/marcusramberg/mojomojo/blob/master/lib/MojoMojo/View/Email.pm
(sending from localhost)
I'm not sure, but following the email plugin docs, the config should be
diferent (as they need a diferent host):
__PACKAGE__->config(
'View::Email' => {
sender => {
mailer => 'SMTP',
mailer_args => {
host => '192.168.4.2'
}
}
}
);
http://search.cpan.org/~dhoss/Catalyst-View-Email-0.20/lib/Catalyst/View/Email.pm#CONFIGURATION
I didn't tested myself, but it looks reasonable to me. Please tell me if
this make it work so I can update my config too :p
-dk
>
>
>
>>
>> My configuration in mojomojo.conf includes
>>
>> email SMTP
>> email 192.168.4.2
>>
>> MojoMojo is running on a webserver. In the shell on that webserver, I
>> can:
>>
>> telnet 192.168.4.2 25
>>
>> and talk to the email server.
>>
>> With the above configuration, shouldn't MojoMojo be able to talk to the
>> email server and send email? Or am I missing something?
>>
>> tcpdump reports no packets generated. Even when I set email to localhost,
>> I
>> see no local packets generated. this is not a firewall issue.
>>
>> debug reports:
>>
>> [debug] C::V::Email::Template uses default view
>> MojoMojo::View::TT=HASH(0x4909768) for rendering.
>> [debug] C::V::Email uses default content_type text/plain.
>> [debug] Rendering template "mail/reset_password.tt"
>> [debug] C::V::Email uses specified content_type text/plain.
>> [debug] Rendering template "user/recover_pass.tt"
>> [info] Request took 0.210454s (4.752/s)
>>
>> Is some other facility required to support email in MojoMojo?
>> --
>> View this message in context:
>> http://n2.nabble.com/SMTP-mail-settings-tried-both-localhost-and-mailserver-in-mojomojo-conf-tp4468666p4468666.html
>> Sent from the mojomojo mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Mojomojo mailing list
>> Mojomojo at lists.scsys.co.uk
>> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/mojomojo
>>
>
>
>
> _______________________________________________
> Mojomojo mailing list
> Mojomojo at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/mojomojo
More information about the Mojomojo
mailing list