Problem with returnpath and Mailfrom using php mail()

djamk15

Newbie
Joined
Aug 30, 2016
Messages
2
Reaction score
0
Hi !

Please I have a problem with returnpath and Mailfrom, so when I put an input at returnpath, it takes the Mailfrom value automaticly,

This is a part of php code:

$vars = [
'from' => $this->input->post('from'),
'to' => $this->input->post('to'),
'reply_to' => $this->input->post('reply_to'),
'mail_from' => $this->input->post('mail_from'),
'return_path' => $this->input->post('return_path'),
'subject' => $this->input->post('subject'),
'headers' => $this->input->post('headers'),
'body' => $this->input->post('body'),
'server_id' => serialize($this->input->post('server_id')),
'user_id' => session('user_id'),
'delay' => $this->input->post('delay'),
'unsub' => $this->input->post('unsub'),
];

So when I put anything at returnpath it takes the input of mailfrom, like this varibale of returnpath is not working

Could you help me please ??


Thanks
 
First off, using the CODE tags would generally be a good idea.

Your declaration looks fine - your error is probably in the form or when you're doing the output.
 
First off, using the CODE tags would generally be a good idea.

Your declaration looks fine - your error is probably in the form or when you're doing the output.

Thank you for your replay, Could you clarify more ? what wrong with from lines or the output ??
 
Back
Top