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
problem with sending mail
Moderator: General Moderators
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.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Try SwiftMailer.
-
priyank_ldce
- Forum Newbie
- Posts: 4
- Joined: Fri Oct 20, 2006 10:57 am
feyd | Please use
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]