# Verify that an email is sent?

**URL:** <https://www.ruby-forum.com/t/verify-that-an-email-is-sent/151742>\
**Category:** Rails\
**Created:** [October 24, 2008, 11:58pm UTC](https://www.ruby-forum.com/t/verify-that-an-email-is-sent/151742 "2008-10-24T23:58:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [October 24, 2008, 11:58pm UTC](https://www.ruby-forum.com/t/verify-that-an-email-is-sent/151742/1 "2008-10-24T23:58:45Z")

</div>

Hi all

I’m trying to get my actionmailer to work. I’ve set the following params  
in my environment.rb:

config.action\_mailer.smtp\_settings = {  
:address =\> “mail.???.ch”,  
:port =\> 25,  
:domain =\> “???.ch”,  
:authentication =\> :login,  
:user\_name =\> “???”,  
:password =\> “???”  
}  
config.action\_mailer.default\_charset = “utf-8”

So far, everything seems to work, the log is:

Sent mail:  
Date: Fri, 24 Oct 2008 23:53:16 +0200  
To: ???@???.ch  
Subject: =?utf-8?Q?Hippie=2dWG\_CD=2dShop\_Bestellungsbest=c3=a4tigung?=  
Mime-Version: 1.0  
Content-Type: text/plain; charset=utf-8

Liebe® bla,

Deine Bestellung ist bei uns angekommen:  
…

But I didn’t receive any email yet. What could be the problem? I tried  
it with wrong settings in environment.rb (so it shouldn’t be able to  
connect to the email server), but it still stated everything went  
successful.

How can I “debug” this stuff? Is there something I have to set on my  
email server?

Thanks for help  
Josh

---

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [October 25, 2008, 9:28am UTC](https://www.ruby-forum.com/t/verify-that-an-email-is-sent/151742/2 "2008-10-25T09:28:15Z")

</div>

On Oct 24, 11:58 pm, Joshua M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I’m trying to get my actionmailer to work.
> 
> How can I “debug” this stuff? Is there something I have to set on my  
> email server?

Make sure you have  
config.action\_mailer.raise\_delivery\_errors = true  
in config/environments/development.rb.

---

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [October 29, 2008, 7:49pm UTC](https://www.ruby-forum.com/t/verify-that-an-email-is-sent/151742/3 "2008-10-29T19:49:01Z")

</div>

Henrik — wrote:

> On Oct 24, 11:58ï¿½pm, Joshua M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > I’m trying to get my actionmailer to work.
> > 
> > How can I “debug” this stuff? Is there something I have to set on my  
> > email server?
> 
> Make sure you have  
> config.action\_mailer.raise\_delivery\_errors = true  
> in config/environments/development.rb.

Thanks a lot. 🙂
