1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with returnpath and Mailfrom using php mail()

Discussion in 'General Programming Chat' started by djamk15, Aug 30, 2016.

  1. djamk15

    djamk15 Newbie

    Joined:
    Aug 30, 2016
    Messages:
    2
    Likes Received:
    0
    Gender:
    Male
    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
     
  2. tasburrfoot

    tasburrfoot Regular Member

    Joined:
    Dec 16, 2008
    Messages:
    323
    Likes Received:
    152
    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.
     
  3. djamk15

    djamk15 Newbie

    Joined:
    Aug 30, 2016
    Messages:
    2
    Likes Received:
    0
    Gender:
    Male
    Thank you for your replay, Could you clarify more ? what wrong with from lines or the output ??
     
  4. tasburrfoot

    tasburrfoot Regular Member

    Joined:
    Dec 16, 2008
    Messages:
    323
    Likes Received:
    152
    Don't know I can't see the code.