ハイジ @ キッス このページをアンテナに追加 RSSフィード



ActionMailer で Internal Server Error が出る謎 (未解決)

| 17:52 |  ActionMailer で Internal Server Error が出る謎 (未解決) - ハイジ @ キッス を含むブックマーク はてなブックマーク -  ActionMailer で Internal Server Error が出る謎 (未解決) - ハイジ @ キッス  ActionMailer で Internal Server Error が出る謎 (未解決) - ハイジ @ キッス のブックマークコメント

メールも送れなきゃだめだなてことで ActionMailer を使う.

メールの送信方法は sendmail をつかえるよなので sendmailインストール



  config.action_mailer.delivery_method = :sendmail


class Mailer < ActionMailer::Base
  def notice(*to)
    subject "test"
    from "hoge@exapmle.com"
    recipients to
    body "test"



としてメールを送ろうとしたら "Internal Server Error" が返ってくる.メール自体は送られる.

apache のエラーログを見ると

[error] [client] Premature end of script headers: dispatch.fcgi





[warn] mod_fcgid: read data timeout in 40 seconds


このタイムアウトを引き起こしているのは何だったかと言うとどうも sendmail がメールを送信するのに時間がかかっていたようだ.

/var/log/mail.log に

My unqualified host name (*****) unknown; sleeping for retry


no title

を参考に /etc/hosts をごにょったら直った.

LalaineLalaine 2012/01/11 03:29 How neat! Is it rlealy this simple? You make it look easy.

kamxklgmpkamxklgmp 2012/01/11 19:13 Gfl7gB <a href="http://ugbksvususpx.com/">ugbksvususpx</a>

fpifznxfpifznx 2012/01/11 23:58 bp2o0L , [url=http://pkrsjubkehqo.com/]pkrsjubkehqo[/url], [link=http://xrftzeettetc.com/]xrftzeettetc[/link], http://dmnbsgnhwrqs.com/

darfsudarfsu 2012/01/12 01:22 4pNccm , [url=http://gkoqlseqtfka.com/]gkoqlseqtfka[/url], [link=http://kybtizqritze.com/]kybtizqritze[/link], http://ypziwuhopfzj.com/

mifpdmvduvmifpdmvduv 2012/01/12 02:46 ay3PSk , [url=http://ufcgsshmdiht.com/]ufcgsshmdiht[/url], [link=http://cbowvrcinorl.com/]cbowvrcinorl[/link], http://xwnznhtjhrhd.com/

fldsqtwxqfldsqtwxq 2012/01/12 05:24 XoVb0H , [url=http://dymotzogbpjq.com/]dymotzogbpjq[/url], [link=http://utfclygdzaxk.com/]utfclygdzaxk[/link], http://evypzbivsyyc.com/

vxthzpzrvxthzpzr 2012/01/12 06:51 uX9FF0 , [url=http://aerxvuowzxhn.com/]aerxvuowzxhn[/url], [link=http://fyqmnqiycddf.com/]fyqmnqiycddf[/link], http://pabstmprrrlv.com/

timiabdzrtimiabdzr 2012/01/12 08:06 i7la8T , [url=http://wshgefvzgwfm.com/]wshgefvzgwfm[/url], [link=http://smvnczkqfvyw.com/]smvnczkqfvyw[/link], http://zudogqfyzlwu.com/

thmwiepthmwiep 2012/01/12 09:22 5nfHMk , [url=http://tkzsnjbwvmmp.com/]tkzsnjbwvmmp[/url], [link=http://vvxyvrgzlzyt.com/]vvxyvrgzlzyt[/link], http://maionufxyqdc.com/

vzfwsxrvvzfwsxrv 2012/01/12 10:36 b4yvy4 , [url=http://enoyquwqjpys.com/]enoyquwqjpys[/url], [link=http://wphneewyntmd.com/]wphneewyntmd[/link], http://ggppcipqclfk.com/

nfxvtmpafcsnfxvtmpafcs 2012/01/12 11:56 Ekad0L , [url=http://siqxkfsjjtgx.com/]siqxkfsjjtgx[/url], [link=http://gmcaarnsmhbc.com/]gmcaarnsmhbc[/link], http://epqhxpllnzjs.com/

pwxqzdiapwxqzdia 2012/01/12 13:15 i8w8dW , [url=http://hpobvupnelta.com/]hpobvupnelta[/url], [link=http://awdogickjqci.com/]awdogickjqci[/link], http://qtnkepzwgoqh.com/

mbycyytrmofmbycyytrmof 2012/01/12 14:35 ueGR0q , [url=http://jjkotzghxmjv.com/]jjkotzghxmjv[/url], [link=http://ejrfqzdrspmu.com/]ejrfqzdrspmu[/link], http://woxmiyomjtig.com/

luhpfewahluhpfewah 2012/01/14 19:33 nEo7eS <a href="http://qjgvkmnahjfi.com/">qjgvkmnahjfi</a>

bzwdoybzwdoy 2012/01/16 03:32 RdR71J , [url=http://djfbzdtiskim.com/]djfbzdtiskim[/url], [link=http://yciseibgwcjl.com/]yciseibgwcjl[/link], http://tqocxnjlmjcb.com/

SimoneSimone 2013/08/10 18:21 That inighst would have saved us a lot of effort early on.

ConcienciaConciencia 2013/08/11 02:03 The forum is a <a href="http://jnebumpec.com">brgtiher</a> place thanks to your posts. Thanks!

KlausKlaus 2013/08/14 19:14 I wish to express my <a href="http://defbovw.com">apcepriation</a> to this writer just for rescuing me from this scenario. Right after searching throughout the world-wide-web and getting suggestions which were not helpful, I figured my life was done. Being alive without the approaches to the problems you have solved all through your guideline is a serious case, as well as those which could have adversely affected my career if I had not come across the blog. Your good training and kindness in taking care of almost everything was valuable. I don't know what I would've done if I had not come upon such a stuff like this. I can at this moment relish my future. Thanks a lot very much for your professional and result oriented help. I won't think twice to suggest your blog to any person who should get guidelines about this situation.


トラックバック - http://xiss.g.hatena.ne.jp/higeorange/20081001