1084

Mailman module header warning

Comments for “Mailman module header warning”
 

Posted by Brian Peters on Sunday 23rd July 2023 at 15:38 GMT

My main question is about a warning I got when I finally got the mailman working, I also have some comments that might help others.

After submitting the join form, the activation email is sent and a redirect is requested to 'members/check_your_email', then in the url_helper line 44 uses:
header('location: ' . $target_url);


I get a warning that I cannot modify header information, headers already sent by SMTP.php.

It's just a warning but should this be avoided?

Further comments/questions about mailman.
I downloaded the module a couple days ago and followed the instructions but there are some things I had to change:
To invoke send_my_email in Members.php I had to change this
$this->module('mailer');
        $this->mailer->send_my_email($data);

To this
$this->module('mailman');
        $this->mailman->_send_my_email($data);


And in Mailman.php I changed this
redirect('mailer/error_from_send_my_email');

To
redirect('mailman/error_from_send_my_email');


and create the method 'error_from_send_my_email' in Mailman.php,
*IF* I want to use such a method, it currently sits under a die()
after echoing debugoutput.

I don't know what kind of info might possibly be output by
echo 'Mailer Error: ' . $mail->Debugoutput = 'error_log';

Is this safe or should this be removed and let execution fall to the redirect to
'mailman/error_from_send_my_email' and display a custom error message to the end user?

My host provider currently is Bluehost and I could not use tls I had to use ssl.
Level One Member

Brian Peters

User Level: Level One Member

Date Joined: 22/05/2023

Posted by djnordeen on Sunday 23rd July 2023 at 18:21 GMT

Hello,
I put the Mailman module up.
I need to take a look at it.
Thanks for the info.
Dan
Early Adopter

djnordeen

User Level: Early Adopter

Date Joined: 20/08/2021

Posted by Fin Motolinia on Tuesday 2nd July 2024 at 06:35 GMT

Any further insight into this? same question here
Level One Member

Fin Motolinia

User Level: Level One Member

Date Joined: 18/01/2024

×