Question

I am using php mail method to send HTML mails to people from my domain. I am using the following code to send mail

    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type:text/html; charset=iso-8859-1' . "\r\n"; 
    mail($id, $subject, $message,$headers);

However, the problem is that the code doesnt work when the size of message increases. It works fine for smaller messages.

Is there any way to overcome that ??

Was it helpful?

Solution

I resolved my issue. It was due to less number of breaking tags br in the html code. I introduced some br tags here and there and it flew :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top