Question: I know that default mail transport could be set in bootstrap file but how to do it in app.ini file? Basically I want to use smtp transport on local windows system and regular mail transport on production server.

Edit: I'm already using [these settings](http://framework.zend.com/manual/en/zend.application.available-resources.html#zend.application.available-resources.mail) in app.ini .

Thanks.

Answer: 
If your production server is \*nix

```
[production]
resources.mail.transport.type = sendmail
[development : production]
resources.mail.transport.type = smtp
resources.mail.transport.host = smtp.example.com

```
Beware that the following doesn't work, it throws an exception:

```
resources.mail.transport.type = smtp

```

We need to use Zend\_Mail\_Transport\_Smtp instead of only smtp. Please see below for the correct answer:

```
[production]
resources.mail.transport.type = sendmail
[development : production]
resources.mail.transport.type       = Zend_Mail_Transport_Smtp
resources.mail.transport.host       = "smtp.server.com"
resources.mail.transport.auth       = login
resources.mail.transport.username   = "myLogin"
resources.mail.transport.password   = "myPasswd"

```

Source: <http://framework.zend.com/issues/browse/ZF-9802>