<p>Ok I'm running Mamp pro 3.0.5 for my localhost setup and php 5.3.28 and for the life of me, I can't get my localhost setup to send out emails.</p>

<p>My host name is <strong>smtp.postmarkapp.com</strong>
My <strong>username</strong> and <strong>password</strong> are my API key as specified by postmarkapp. I've tried port on both 25 and 2525, Use SMTP authentication is set to yes and SMTP Secure Transport Type is set to none.</p>

<p>When I run a test email through the admin panel I see <strong>SMTP connect() failed.</strong></p>

<p>Note: emails send out correct on our dev/production servers without issue.</p>

<p>Anyone have ideas here?</p>

CC BY-SA 3.0
2014-07-30T04:41:58.720Z
Any warning or errors getting logged in your craft/storage/runtime/logs files?
Brad Bell
CC BY-SA 3.0
2014-07-30T15:34:44.590Z
@BradBell - yep "2014/07/30 04:16:24 [error] [application] SMTP connect() failed."
Adam McCombs
CC BY-SA 3.0
2014-07-30T15:36:02.287Z
Sounds like purely a connection problem. Can you connect with those credentials on an email client or through the CLI?
Brad Bell
CC BY-SA 3.0
2014-07-30T16:00:11.643Z
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mailer.smtp.postmarkapp.com ESMTP Postfix
EHLO Adam
250-mailer.smtp.postmarkapp.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250-BINARYMIME
250 CHUNKING
AUTH LOGIN
503 5.5.1 Error: authentication not enabled
421 4.4.2 mailer.smtp.postmarkapp.com Error: timeout exceeded
Connection closed by foreign host.
Adam McCombs
CC BY-SA 3.0
2014-07-30T16:03:30.307Z
@BradBell so it looks like it's connecting but when I tried auth login it says authentication not enabled.

These same settings work correctly on our live servers. I'm only having an issue on my localhost.
Adam McCombs
CC BY-SA 3.0
2014-07-30T16:34:31.943Z
Not really sure what's going on.  Maybe contact PostMark and see if they have any ideas?
Brad Bell
CC BY-SA 3.0
2014-08-12T20:52:48.367Z
You ever figure this one out, Adam?
Brad Bell
CC BY-SA 3.0
2014-08-12T22:10:40.677Z
@BradBell no. I can only assume it's config thing with my laptop as my iMac has no problem sending localhost mail. It's the same setup too! I'll probably just nuke it and start over one day.
Adam McCombs
CC BY-SA 3.0
2014-08-18T19:19:01.363Z
I'm closing this because it doesn't sound like a Craft related problem.
Anna_MediaGirl
<emails>
Craft SMTP emails + Localhost [Mamp pro] (+postmarkapp)
# Craft SMTP emails + Localhost [Mamp pro] (+postmarkapp)

(Asked by: username_0 on 2014-07-30)

Ok I'm running Mamp pro 3.0.5 for my localhost setup and php 5.3.28 and for the life of me, I can't get my localhost setup to send out emails.

My host name is **smtp.postmarkapp.com**
My **username** and **password** are my API key as specified by postmarkapp. I've tried port on both 25 and 2525, Use SMTP authentication is set to yes and SMTP Secure Transport Type is set to none.

When I run a test email through the admin panel I see **SMTP connect() failed.**

Note: emails send out correct on our dev/production servers without issue.

Anyone have ideas here?

**Tags:** emails
> **Comments:**
> **username_1**: Any warning or errors getting logged in your craft/storage/runtime/logs files?  
> **username_0**: @BradBell - yep "2014/07/30 04:16:24 [error] [application] SMTP connect() failed."  
> **username_1**: Sounds like purely a connection problem. Can you connect with those credentials on an email client or through the CLI?  
> **username_0**: telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 mailer.smtp.postmarkapp.com ESMTP Postfix EHLO Adam 250-mailer.smtp.postmarkapp.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250-DSN 250-BINARYMIME 250 CHUNKING AUTH LOGIN 503 5.5.1 Error: authentication not enabled 421 4.4.2 mailer.smtp.postmarkapp.com Error: timeout exceeded Connection closed by foreign host.  
> **username_0**: @BradBell so it looks like it's connecting but when I tried auth login it says authentication not enabled.  These same settings work correctly on our live servers. I'm only having an issue on my localhost.  
> **username_1**: Not really sure what's going on.  Maybe contact PostMark and see if they have any ideas?  
> **username_1**: You ever figure this one out, Adam?  
> **username_0**: @BradBell no. I can only assume it's config thing with my laptop as my iMac has no problem sending localhost mail. It's the same setup too! I'll probably just nuke it and start over one day.  
> **username_2**: I'm closing this because it doesn't sound like a Craft related problem.  

---

## 0 answers

