Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] email php function add date
#1
Not Solved
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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)