Php mail problem on lycos

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
anuragshr
Forum Newbie
Posts: 8
Joined: Tue Nov 15, 2005 10:51 am

Php mail problem on lycos

Post by anuragshr »

feyd | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]


Hi,
   Facing a very serious problem. I am sending mail thru php when i send mail on yahoo or hotmail its works fine...my code is like this

Code: Select all

<?php
  echo("*****");
  $header = "From: anurag_shr@hotmail.com \r\n";
  $header = $header."Content-Type: text/html\r\n";
  $rt = mail("anurag_shr@yahoo.com", "to lycos test2", "to lycos test2", $header);
  echo("****$rt*************************");
?>
but when i want to send mail on lycos account and change anurag_shr@yahoo.com to anuragshr@lycos.co.uk ..nothing happen and i didnt get mail.
Please help.
Regards
Anurag


feyd | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I would guess that Lycos threw it away saying it's spam. Getting an email past spam filters can be a challenge, and usually involves setting very specific headers (unfortunately, they are slightly different for every host) Experimentation is in order. Figure out through trial and error what headers work and what headers don't. If you don't want to spend that time, use a mailing tool such as phpMailer, which has often works out of the box. If it doesn't it could be that Lycos has your server or servers you pass through on a blacklist or other lists..
anuragshr
Forum Newbie
Posts: 8
Joined: Tue Nov 15, 2005 10:51 am

Post by anuragshr »

Hi feyd,
Thanks for reply, I already tried with phpmailer class, just to ease in copying my code in forum i have removed mailer class references, otherwise i am using mailer class but it is also not working. You wrote to play with header can you tell me some set of combination for the same.
Thanks and Regards
Anurag
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

anuragshr wrote:Hi feyd,
Thanks for reply, I already tried with phpmailer class, just to ease in copying my code in forum i have removed mailer class references, otherwise i am using mailer class but it is also not working. You wrote to play with header can you tell me some set of combination for the same.
Thanks and Regards
Anurag
Send an email from your Mail client such as Thunderbird to Lycos, then view the message source to see the headers that were sent.

EDIT | Hopefully non-invasive, but do you mind if I ask what the purpose of the mail is. Advertising stuff with HTML content especially is easily caught by blockers such as SpamAssassin.

EDIT 2 | If you PM me I can also let you know if your domain is in a blacklist or what my SpamAssasin reports about these mails to myself
anuragshr
Forum Newbie
Posts: 8
Joined: Tue Nov 15, 2005 10:51 am

Post by anuragshr »

Hi,
Thanks for reply , just sent a pm to you. Actually we are using mail process in our ecom software but there it is not woring for lycos, thus as a test and RnD purpose i am writing a separate code on same server.
Thanks and Regards
Anurag
Shaunw
Forum Newbie
Posts: 1
Joined: Sat Jan 28, 2006 11:22 pm

email problems

Post by Shaunw »

There could be lots of causes for this problem. You need to supply more information.
Look at the mailserver queue and see why these messages are not being delivered.
A mailserver which is set up to do DNS MX record lookup will fail with Lycos because
Lycos does not return an MX record. What webserver are you using? How is mail
relaying setup?

:)
Post Reply