hi,
I found this example to send an email in html format:
the problem is that the 'from' and 'reply-to' email addresses are not parsed correctly. It states 'nobody'.
Without 'Content-type: text/html\n' those emails are parsed correctly.
Anyone knows how to fix this?
Thanks,
Ron
I found this example to send an email in html format:
Code:
$email = 'sendfrom@email.com';
$toMail = 'your@email.com';
$subject="email subject";
$message = "email contents";
$var = mail("$toMail", "$subject", "$message","Content-type: text/html\n",
"From: $email\n"
."Reply-To: $email\n"
."sendmail_path: /usr/sbin/sendmail\n");
the problem is that the 'from' and 'reply-to' email addresses are not parsed correctly. It states 'nobody'.
Without 'Content-type: text/html\n' those emails are parsed correctly.
Anyone knows how to fix this?
Thanks,
Ron