Jump to content

Emailing error, Unusual...?


gergy008

Recommended Posts

I get this error on sending an automatically generated email...

 

Content-type:... List:; syntax illegal for recipient addresses /home/sites/#####.co.uk/dead.letter... Saved message in /home/sites/#####.co.uk/dead.letter

 

#'d out my domain

 

My headers are as follows:

 

$topic="Welcome!";
$detail="message";
$recipent=$_POST["login"];
$run=mail($recipent, $topic, $detail, "From: <support@#####.co.uk> #####.co.uk", "Content-type: text/html");

 

Can anyone please please help me out?

 

Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/202996-emailing-error-unusual/
Share on other sites

Shouldn't $topic be at least $subject?

Do not know what $detail is, will presume a message.

  mail( "email", "$topic",
    $message, "From: $email"  );

 

Yes you are right on both, Sorry for that, Detail is the message and topic is subject.

 

I think it's because I am sending a HTML email to a hotmail address, For some reason that message comes up...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.