abs0lut Posted October 12, 2008 Share Posted October 12, 2008 whats the difference between this <?php $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/plain; multipart/alternative;\r\n"; $headers .= "From: [email protected] \r\n"; $to = "[email protected]"; $subject = "Re: your first email"; $body = "Congrats on your first email."; $sentok = mail($to, $subject, $body, $headers); if($sentok){ echo "Mail sent. "; } else { echo "Mail not sent. "; }?> with this <?php $headers = "From: [email protected] \r\n"; $to = "[email protected]"; $subject = "Re: your first email"; $body = "Congrats on your first email."; $sentok = mail($to, $subject, $body, $headers); if($sentok){ echo "Mail sent. "; } else { echo "Mail not sent. "; } ?> ? Link to comment https://forums.phpfreaks.com/topic/128078-mail-header/ Share on other sites More sharing options...
Bendude14 Posted October 12, 2008 Share Posted October 12, 2008 did you mean what do these two lines mean? $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/plain; multipart/alternative;\r\n"; They are setting the Type of the email. in this case text/plain. if you wanted to send an html email you could set that here. Link to comment https://forums.phpfreaks.com/topic/128078-mail-header/#findComment-663278 Share on other sites More sharing options...
abs0lut Posted October 12, 2008 Author Share Posted October 12, 2008 thanks, I have another question i'm sending email, but they are going in the junk/spam/bulk folder of the receiver, how to send them in the inbox of the receiver? could you please help me? Link to comment https://forums.phpfreaks.com/topic/128078-mail-header/#findComment-663287 Share on other sites More sharing options...
abs0lut Posted October 13, 2008 Author Share Posted October 13, 2008 bump please help me Link to comment https://forums.phpfreaks.com/topic/128078-mail-header/#findComment-663616 Share on other sites More sharing options...
ibechane Posted October 13, 2008 Share Posted October 13, 2008 um.. think about it. If there were a way for you to force an email to bypass spam filtering, then spam filtering would be completely useless. There is nothing you can do about a spam filter because it is under the control of the person owning the email account. Link to comment https://forums.phpfreaks.com/topic/128078-mail-header/#findComment-663621 Share on other sites More sharing options...
br3nn4n Posted October 13, 2008 Share Posted October 13, 2008 Getting around spam filters can be tricky. But again, think about it! Are you sending spam? Maybe what you're sending looks like spam? Where are you sending it to that it comes in as spam? Link to comment https://forums.phpfreaks.com/topic/128078-mail-header/#findComment-663670 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.