Welcome Guest, Not a member yet? Register   Sign In
trouble sending email controller
#11

(10-08-2019, 10:16 AM)jreklund Wrote:
(10-08-2019, 12:29 AM)pmcr Wrote: I have another controller where email is sent out without any issue 

Okey, then you need to to debug it by passing in everything manually instead of input->post. Not relying on outside factors. And start from there.
how do you recommend to do it ? 
input-> post is somehow related to the form i have that collects info from user .. and then used to send email, right? 
how would you suggest to debut it step by step ?
very much appreciated
Reply
#12

You start off small with a controller only containing the basic.
Code:
mail('[email protected]', 'Test E-mail', 'Your message');

After that you add custom headers.

And later on outside $_POST from users.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB