2018-05-18, 09:54 AM
hey,
mybb is sending emails through php (dockerrized server setup, not mine and a little too complicated 4 me 2 understand) and inserts the from field trough additional header options for phpmail in the mybb admin panel. this works good and is needet to show any from content at all:
$headers = "From: [email protected]\r\n"
is working flawlessly!
still its not sending the date. and this i cant get to work.
my current try is:
$headers = "Date: ". date("r") ."\r\n". "From: [email protected]\r\n"
but its not working out. where do i go wrong ? i really suck at coding, so i dont know when to , ; space . or whatever between arguments, etc.
i followed this hint at the botttom:
https://stackoverflow.com/questions/2068...php-header
please help me...
mybb is sending emails through php (dockerrized server setup, not mine and a little too complicated 4 me 2 understand) and inserts the from field trough additional header options for phpmail in the mybb admin panel. this works good and is needet to show any from content at all:
$headers = "From: [email protected]\r\n"
is working flawlessly!
still its not sending the date. and this i cant get to work.
my current try is:
$headers = "Date: ". date("r") ."\r\n". "From: [email protected]\r\n"
but its not working out. where do i go wrong ? i really suck at coding, so i dont know when to , ; space . or whatever between arguments, etc.
i followed this hint at the botttom:
https://stackoverflow.com/questions/2068...php-header
please help me...