Page 1 of 1
problem with sending mail
Posted: Fri Oct 20, 2006 10:59 am
by priyank_ldce
Hi,
I am making my personal website with some php coding in it. Now I want to send a HTML mail in one of my form. I am using htmlMimeMail class to send it. But when ever I am sending this mail to any hotmail account it is going to junk folder. Can I know how can I send it to Inbox of hotmail account?
Thanks in advance,
Priyank
Posted: Fri Oct 20, 2006 11:37 am
by s.dot
Well, show us the headers you're sending. The content you're sending is important as well. Along with if your domain you're sending mail from has an SPF record.
Posted: Fri Oct 20, 2006 11:39 am
by RobertGonzalez
Posted: Fri Oct 20, 2006 1:49 pm
by priyank_ldce
feyd | Please use Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
thanks for ur reply. here is the php script I am using to send mail. I am new in web development. I don't know what and how to send in header. Pls help me.
Code: Select all
<?php
require_once("html_mime_mail_2.5/htmlMimeMail.php");
$mail = new htmlMimeMail();
$mail->setFrom("Mywebsite Staff <support@mysite.com>");
$mail->setReturnPath("Mywebsite Staff <support@mysite.com>");
$mail->setSubject("Customer Support");
$html = 'Mail Body';
$mail->setHTML($html);
$result = $mail->send(array('myname@hotmail.com'));
?>
feyd | Please use Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]