Displaying 1 result from an estimated 1 matches for "nome_do_servidor".
2007 Jul 10
0
Attachement corrupt
...achement, but I
receive the same e-mail attachement corrupted.
How I can resolve that?
The enviroment is:
- Windows
- Microsoft Exchange Server.
Code Enviroment.rb:
1. ActionMailer::Base.delivery_method = :smtp
2.
3. ActionMailer::Base.smtp_settings = {
4. :address => ''nome_do_servidor'',
5. :port => 25,
6. :domain => nil
7. }
Code Method to send e-mail:
1. def enviar(mensagem)
2. @subject = mensagem.assunto
3. @body = {:mensagem => mensagem}
4. @recipients = mensagem.para
5. @from = mensagem.de
6. @sent_on...