473,320 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Mail goes to bulk sent through php mail function

i am trying to send mail through php, it goes to bulk for rediff and yahoo. what should i do to prevent this?
Jan 14 '08 #1
6 1841
stepterr
157 100+
I had a similar issue and found that if you change the way your email 'From' line looks that it may help correct the problem. Try using a from address with a real name, not just something like webserver@mysite.com, but instead:
Your Name<your.name@mysite.com>
or
WebServer<webserver@mysite.com>


Let me know how that works for you. There is also something you can do on your server, if you have control of it.
Jan 16 '08 #2
ifedi
60
See, guys I've been having a similary problem, with Yahoo! Also, like the first reply said, I've suspected that a proper name preceding the email add, in the format:
Expand|Select|Wrap|Line Numbers
  1.  $headers.="From: John Mandela <jmandela@someweb.com>";
should solve the problem.
However, the problem I now face is , I keep getting this kind of error:
Expand|Select|Wrap|Line Numbers
  1. "PHP Warning: mail() [[color=#810081]function.mail[/color]]: SMTP server response: 501 5.5.4 Invalid Address in D:\Inetpub\wwwroot\plusclinic\mail.php on line 48" 
A little research suggests that the presence of the "John Mandela" is disliked by Windows, and so the error results. That's not enough for me, as I believe there ought to be some way to get round the mess.
So, someone should please help.
Jan 17 '08 #3
stepterr
157 100+
Are you using a third party host or is this your own server? You could install a spam filter, such as Spamassassin, and see what spam signatures are contained in your emails and then fix them that way. I've actually done this and it has worked for me. Another suggestion that I've seen, but have not needed yet, is if you manage your own server you could add a SPF record in your DNS zone file, which tells your mail server which IP's are allowed to send emails for your domain. Some places try and use these records to check for spam.
Jan 17 '08 #4
ifedi
60
Are you using a third party host or is this your own server? You could install a spam filter, such as Spamassassin, and see what spam signatures are contained in your emails and then fix them that way. I've actually done this and it has worked for me. Another suggestion that I've seen, but have not needed yet, is if you manage your own server you could add a SPF record in your DNS zone file, which tells your mail server which IP's are allowed to send emails for your domain. Some places try and use these records to check for spam.
Hello stepterr,
Thanks for your reply.
The real problem is NOT really "why is Yahoo! sending the mails to spam?"
The problem is "why is WinXP SP2 IIS 5 PHP dying with error when there is a From: Firstame Surname< email@address> but sends the mail happily when the Firstname Surname part is removed?"
Jan 21 '08 #5
stepterr
157 100+
Hello stepterr,
Thanks for your reply.
The real problem is NOT really "why is Yahoo! sending the mails to spam?"
The problem is "why is WinXP SP2 IIS 5 PHP dying with error when there is a From: Firstame Surname< email@address> but sends the mail happily when the Firstname Surname part is removed?"
So I looked into this a little more and it turns out that it is a windows issue and that's why I haven't had the problem when I put a name in front of the email address. Anyways, take a look at one of the many links I found that is talking about it. They came up with a solution thanks to their hosting service it looks like. You might be able to work with that a bit to get it to work for yourself. Otherwise, try using Google on the your error and you will see a ton of hits dealing with it. Good luck!
Jan 22 '08 #6
idhanu
1
Finally I found the solution!!!

Visit this blog and it gives a good and great solution.
http://bestdeveloper.blogspot.com/
Feb 15 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Jack Smash | last post by:
I am having lots of trouble with the mail function! I simply send a confirmation email to someone who has registered on my site - but thte message usually gets filtered or sent to the bulk mail...
9
by: AJ | last post by:
Hi All I've got a little newsletter system that I put together for one of my customers. Basically, it's a table with firstname, lastname and e-mail address. The script then goes through the...
1
by: Asyn lordasyn | last post by:
Ok... I know there is got to be something simple that I forgot, but I for the life of me can't find it. Please, for the sake of the wall I keep slamming my head into, any insight would be helpful. ...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
1
by: Bob | last post by:
This is the function I use in a mailsender class in vb2005 using the system.net.mail namespace Public Function SendSMTPNetMail(ByVal msgFrom As String, _ ByVal msgTo As String, _ ByVal...
1
by: bijuvellur | last post by:
why the mail goes to bulk? when we use ASP code using CDONT mail object
2
by: shalinikonatam | last post by:
Iam using mail() to send mail through php script. iam getting to addresses from post method iam able to send messages. but it is not appering in my inbox or spam or bulk for some email ids. Here...
1
by: ravishanker | last post by:
Hi I'm using the System.Web.Mail classes to email users. The problem is that when I send to an Yahoo recipient, my email goes straight into the bulk folder. Is there a way to make sure that my...
1
by: =?Utf-8?B?VGFsYWxTYWxlZW0=?= | last post by:
i have facility in my website which sends an e-mail to the cleint's inbox..... i am getting a problem when ever i sends an e-mail.. i tried with Hotmail and Yahoo, e-mail goes to the "Junk Mail"...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.