problem with sending mail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
priyank_ldce
Forum Newbie
Posts: 4
Joined: Fri Oct 20, 2006 10:57 am

problem with sending mail

Post 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
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

priyank_ldce
Forum Newbie
Posts: 4
Joined: Fri Oct 20, 2006 10:57 am

Post by priyank_ldce »

feyd | Please use

Code: Select all

,

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

,

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]
Post Reply