I have a question for you. Do you know how to add Subject and CC: with smtp mail?
I'm not sure how the $datatosend syntax works by adding $Subject there does not work
can you help me with this?
Here are the codes:
(I got this from php builder, share library,
networking,remote mail)
$datatosend = "HELO $isp_mailserver\nmail from: $from\nrcpt to: $to\ndata\n$body\n\n.\nQUIT\n";
if (!$smtp_sock = fsockopen("$isp_mailserver", 25))
{
die ("Couldn't open mail connection to $isp_mailserver! \n");
}
fputs($smtp_sock, $datatosend);