Forum

Thread tagged as: Question, Problem, Configuration

Trying to setup postmark for use in perch: Invalid address: PERCH_EMAIL_FROM

Signed up for Postmark and have set up the nessesary DNS records and they've passed on postmarks side of things. However when I try to do a test email in the settings section I get:

Invalid address: PERCH_EMAIL_FROM

Though I don't actually have this property set in my config and didn't think I'd need one set for the purposes of password recovery emails?

Mathew Doidge

Mathew Doidge 2 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You need it in your config. Perch uses PERCH_EMAIL_FROM to specify who to send email from.

define('PERCH_EMAIL_FROM', 'hello@grabaperch.com');
define('PERCH_EMAIL_FROM_NAME', 'Drew McLellan');

Hi Drew,

Thank you for clarifying this. I've got that in but getting an authentication error. I guess this is most likely something outside of Perch at the postmark end of things or my domain so I will continue to dig.

Many thanks!

Drew McLellan

Drew McLellan 2638 points
Perch Support

If this is the error you're getting then it looks like a config problem at the Perch end:

Invalid address: PERCH_EMAIL_FROM

That PERCH_EMAIL_FROM should be resolved to the config value.

Hi Drew,

Sorry that was my poor communication. The error you mention above is now resolved after re-adding the two lines you first posted with. I now just get an authenticate error so I will talk to Postmark and re-look at what I've got that might be causing it.

Thanks for your time - again!