Hi
i'm sending mail using the below function.,
the function sends the mail but the recipient gets the mail in spam.,
could anyone help., -
<?
-
$headers = "From: '$from'" . "\r\n";
-
if(mail("example@gmail.com","hi","how r u",$headers)){echo 'success';}
-
?>
-
regards
vijay.
3 1131
There is nothing wrong with the script. Your ip may be added in the spam list of the server, you are sending mail to
Atli 5,058
Recognized Expert Expert
Hi.
There are a great many spam-filters out there, and I won't presume to know how they all work.
But I do believe most of them will consider such short messages to be spam, as this is how much of the actual spam looks like.
Try sending an actual message, that looks like something you would actually send to somebody.
You could also try to use some of the free mail classes that are floating around. Many of them have been optimized to include headers and stuff that will make you messages less likely to look like spam.
For example, Swift Mailer or PHPMailer.
dlite922 1,584
Recognized Expert Top Contributor
Hi
i'm sending mail using the below function.,
the function sends the mail but the recipient gets the mail in spam.,
could anyone help., -
<?
-
$headers = "From: '$from'" . "\r\n";
-
if(mail("example@gmail.com","hi","how r u",$headers)){echo 'success';}
-
?>
-
regards
vijay.
Actually unline the other two mentioned, that's no even closely related as having your domain in check.
Google SPF.
It will take a while for new domains to have email sent into inbox instead of junk folder.
But know the basics. Always add a "From" email field as those without it are marked as spam.
dnsstuff.com used to give you lots of info for free, but now its membership. I've seen their service and it is worth the price, i'm just too cheap. It may be well worth it to have them check MX records etc.
Cheers,
Dan
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: SamMan |
last post by:
May be a bit off-topic...
When bots scan the web for e-mail address to use for spam, do they look at
what the browser is displaying, or scan through the underlying HTML markup
for e-mail addresses?
At work, we have stopped displaying our webmaster e-mail on our pages and
created a form that uses cgi to process and send the message. Our...
|
by: polilop |
last post by:
I made a form in which I send the visitor a link to my page
but when the visitor gets that link in the mail it dosent send him
to the page just says invalid syntax
or something like outbound.......
I'm not trying to spam
this is the code iput into body variable
text= "<table width='310' border='0'> "&_
"<tr><td class='all'><p...
|
by: Squirrel |
last post by:
Hi everyone,
I've created a mail merge Word doc. (using Office XP) , the data source is
an Access query.
Functionality I'm attempting to set up is:
User sets a boolean field to true for each person for whom a mail
merge letter is desired.
The query reads address info from the table for each record where is
true.
|
by: Viken Karaguesian |
last post by:
Hello all,
<SIGH> I'm soooooo sick and tired of getting spam e-mails. I'm sure that
part of the reson for this is that my e-mail address is publicly available
on my website, ready to be picked by e-mail harvesting programs.
I tried to thwart them by adding a REMOVE_THIS in my e-mail address
(username@REMOVE_THISispname.net), but the...
|
by: Neo Geshel |
last post by:
I am experiencing an inconsistency with System.Net.Mail.
I have a web form on a site. The form gets filled, and one copy gets
sent to the recipient (info@domain.com). This works just fine.
However, I want a summarized e-mail (with slightly different content) to
get sent to the sender, and this fails unless the “sender”has their ...
| |
by: uranuskid |
last post by:
Hey folks,
I was going to include a contact form on my website. Well, in the first place that seemed an easy thing to do with a form that prompts a PHP file validating the input vaiables and using it's mail () function to send the mail. However, as I got more into that topic I realized that one should be really concerned about the validation...
|
by: Craig Hurley |
last post by:
Hello,
user@x.com receives an email from user@a.com. I want to forward that
email to user@y.com. I want the contents/header to remain intact, with
the exception of adding "X-Forwarded-For". In other words, when
user@y.com received the email, it will be from user@a.com, but will
contain a reference that it was forwarded by user@x.com.
...
|
by: Gordon |
last post by:
I'm working on a reset password script for my CMS, that will generate
a random password and email it to a user when they request one. The
problem I am having is that the mails being sent out are beign marked
as spam by our internal mail system and never reaching users'
inboxes. I've also discovered that Yahoo Mail considers these mails
to...
|
by: Marise |
last post by:
Hello,
I developed a PHP to send confirmation mail to my users.
The users complainthat the mail goes to the SPAM section each time.
What is the reason for this? I tested it several times, and I always get
the same result. The mail always gets spammed. This is very bad because
if a user doesn't get the confirmation, they won't even think...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |