# Mental + Mailer Extension

**URL:** <https://www.ruby-forum.com/t/mental-mailer-extension/82914>\
**Category:** Radiant CMS\
**Created:** [January 22, 2007, 11:39am UTC](https://www.ruby-forum.com/t/mental-mailer-extension/82914 "2007-01-22T11:39:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [January 22, 2007, 11:39am UTC](https://www.ruby-forum.com/t/mental-mailer-extension/82914/1 "2007-01-22T11:39:01Z")

</div>

I’ve been postponing fiddling with mental until I really needed it. My  
inability to work with trunk’s mailer extension convinced me to try  
mental and sean’s new mailer extension.

The installation and migration of the current site went fine (but no  
language redirect), and I was able to install without pain sean’s  
extension.

The mailer still doesn’t work, but this time (at last!) I’ve got an  
error I can try to understand 🙂

“Error encountered while trying to send email. 550 Administrative  
prohibition”

Any clue?

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [January 22, 2007, 12:30pm UTC](https://www.ruby-forum.com/t/mental-mailer-extension/82914/2 "2007-01-22T12:30:20Z")

</div>

Did you setup your SMTP server config in environment.rb? Is there  
anything else  
relevant in the log?

Also, I think the config page part is particular about whitespace.

Quoting Giovanni I. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [January 22, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/mental-mailer-extension/82914/3 "2007-01-22T12:36:22Z")

</div>

Nothing in the log, environment is setup ok (at least I think), and I  
doublechecked the tabs vs spaces yml thing 🙂

Is there a way to have more logging from actionmailer?

2007/1/22, Todd McGrath [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [January 22, 2007, 12:40pm UTC](https://www.ruby-forum.com/t/mental-mailer-extension/82914/4 "2007-01-22T12:40:23Z")

</div>

How about anything in OS logs? You know, something along the lines of  
/var/log/messages, /var/log/maillog

Quoting Giovanni I. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [January 22, 2007, 12:51pm UTC](https://www.ruby-forum.com/t/mental-mailer-extension/82914/5 "2007-01-22T12:51:25Z")

</div>

I’m on shared hosting so I don’t have access to those files.

2007/1/22, Todd McGrath [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [January 22, 2007, 3:13pm UTC](https://www.ruby-forum.com/t/mental-mailer-extension/82914/6 "2007-01-22T15:13:04Z")

</div>

Sean I was trying to use an smtp connection, but I’ll try asking for  
sendmail to my host.

2007/1/22, Sean C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [January 22, 2007, 2:44pm UTC](https://www.ruby-forum.com/t/mental-mailer-extension/82914/7 "2007-01-22T14:44:54Z")

</div>

Giovanni,

One thing I had to do on the original Mailer behavior is to get a  
special account set up on my shared host (TxD). In most cases, SMTP is  
somewhat locked down so that mail can only originate from certain  
addresses and be addressed to certain addresses. A restriction on those  
might be causing the 550 error. Check with your hosting provider to see  
what is required.

Sean

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [January 22, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/mental-mailer-extension/82914/8 "2007-01-22T15:24:07Z")

</div>

I already asked for sendmail, I’ll let you know 🙂

2007/1/22, Sean C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [January 22, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/mental-mailer-extension/82914/9 "2007-01-22T15:16:05Z")

</div>

You might also ask them what might generate a 550 error when attempting  
to  
send. It could be something unexpected.

Sean
