Jul 20, 2008

Mail() Function - the mails are sent as SPAM!!

Free Web Hosting, No Ads > General > Hosted Members Area

free web hosting

Mail() Function - the mails are sent as SPAM!!

spy_charly
hello guys! i was thinking about the Mail() function coz lately all the mails i send to my friends are send as SPAM and honestly it is a little annoying due to some of them (maybe all of them) use hotmail and the mails they got arrive to the SPAM section, is there anything wrong with my script should i add more headers? and why scripts like the Zen Cart can send mails directly to the Inbox folder?

Reply

jlhaslip
Well, you didn't post anything about the script you are using, so we really don't know what you are sending, but chances are you aren't identifying enough information, so the emails are getting flagged as spam, yes.

Some reccomended headers would be "reply-to", "subject", "sender", "to".
Format is "Keyword:String\r\n"
ie: "Reply-to: myemail@somewhere.sometld\r\n" (no quotes)

But you probably know all that...

Reply

spy_charly
QUOTE
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: \"".$one."\" <".$two.">\n";


that is my header, do you think it is lacking something?

Reply

jlhaslip
From what I have read, the correct format is "crlf" and requires the "\n" of your headers to read "\r\n" as per above posting.

But I might be wrong. The source was 2 years old. (+/-)

No doubt someone will correct either you or I if there is a discrepency.

Reply

spy_charly
so you suggest me to add "\r" to all the lines? so it would fit like?
QUOTE

$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-MSMail-Priority: Normal\r\n";
$headers .= "X-Mailer: php\r\n";
$headers .= "From: \"".$one."\" <".$two.">\r\n";


by the way what does "crlf" mean?

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : mail, function, mails, spam

  1. Spammers Using My Domain To Send Spam
    (2)
  2. Keep Getting Socket Error
    mail won't send. (3)
    When trying to send email, I keep getting a socket #10061 error. I use the Trap 17 smtp server,
    related to my own domain, which is mail.vlaanderen-flanders.org.uk. This seems to be happening
    regularly lately. Has anyone got any idea why this could be happening? Thanks for any support. ....
  3. Our Own Email Account
    How do I make it and read my mail? (7)
    Hey guys, I love how I have sendmail and my own email account here, but I don't know how to
    access them. When I created my account, I put in my home email address because that's supposed
    to be there. But instead of having my users email me at my home email account in my contact form, I
    would like to have them email me here at trap17. I went into my Email Management and saw Add/Remove
    Email and created one called Custergrant@custopoly.trap17.com...and it created correctly and all.
    But if I have users email at this, how do I read it? Do I click Read Webmail? And h....
  4. Web Mail Forwarding Not Working?
    (0)
    I set up a several email accounts on Cpanel, and am trying to forward the mail from some of them to
    a gmail address. So far nothing's been forwarded. Also, when composing email, I've noticed
    the "receipt" function doesn't work. Any clues, anyone? On another note, I noticed Cpanel
    reverted back to it's former state after a brief upgrade. What's the latest with Cpanel?
    Several days later and still no response? /huh.gif" style="vertical-align:middle" emoid=":huh:"
    border="0" alt="huh.gif" /> Mmkay, guess I'll pm admin directly.........
  5. Did I Spam?
    (4)
    My hosting credits ran out thursday morning (through normal credit loss), later that day/night I
    posted to get it back up to 3 credits, it's still not re-activated yet, it says I was either
    innactive, spamming at the forums or violated ToS... My site was a simple gaming clan page and I
    have positive credits, so it has to be the third, but I don't know what I did that would make my
    site be disabled (I did post a one liner that got deleted in a thread that was getting repetedly
    bombarded by spammers, so there was some credit loss there...) Any help? EDIT: Actually,....
  6. Errors With Php Setcookie() And Headers! Please Help!
    Having header errors when I try to set a cookie with PHP function setc (2)
    Hey guys, I'm having a problem setting cookies with PHP. I am trying to implement a script that
    will allow someone to log in and access members only pages on my website. One of the aspects is that
    I have to place a cookie on that persons computer. I know that you can use the PHP function
    setcookie() to place it on your computer. The problem is that wherever i have setcookie() in my PHP
    code I get an error: " Warning: Cannot modify header information - headers already sent by (output
    started at /home/runeco/public_html/cookie.php:6) in /home/runeco/public_html/cooki....
  7. Genuine Help With Smtp And Php Mail() Function
    I need help using the PHP mail() function and the SMTP server on Trap1 (3)
    Hello, I have looked up the solution to this problem numerous times on this forum but cannot seem to
    get a straight answer. I have also read that something called SMTP Authetication is required. I have
    looked up numerous ways this should be done, but I believe it required special protocols. This is
    the code that I tried to use to send e-mail using the SMTP server here at Trap17. CODE
    $email_to = "whoever@whoever.com"; //SEND MAIL TO HERE $subject = "Testing the
    SMTP server"; $message = "This is a test of the SMTP server on T....
  8. Trap17 Mail Exchange Servers
    (4)
    Ok, I recently downloaded Mozilla Thunderbird to try and configure it to my websites e-mail, so i
    can recieve and send mail through it. But it's not working for me In the Cpanel mail management
    it says that the outgoing and imcoming are both mail.hogwartsmagic.net can someone help me
    configre this?....
  9. Mac Mail And Server Settings
    (2)
    I have Mac Mail checking and downloading email, but I can't get it to find the outgoing mail
    server. I've tried mail.blendergalactica.com, mail.www.blendergalactica.com,
    smtp.blendergalactica.com etc, but I get this error back: The SMTP server
    “mail.blendergalactica.com” is not responding. Check your network connection and that you entered
    the correct information in the “Outgoing Mail Server” field. If it still doesn’t respond, the server
    might be temporarily unavailable. If you continue, you may not be able to send any mail. ....
  10. Is The Report Function Working?
    (3)
    I have asked many mods this, and have been told no... i have asked an admin i never got an answer
    ive asked in almost every PM report ive sent.... lol so here it is again "Is the Report Feature
    Working?!?!?" i was told my one mod yes it was yet a few days ago i was told my 2 no... hmm
    i cant get a straight answer *sigh*....
  11. Mx Mail Question
    Need to change it to the new google program (1)
    Hey i think i did it right, but it didn't look the same way they said it would. I show you the
    directions then show you what i did. QUOTE 1. Login to your ISP using the username and
    password associated with your domain. 2. Navigate to an MX record maintenance page. MX records are
    special DNS (Domain Name Service) records, and are often located under sections titled "DNS
    Management," "Mail Server Configuration," or "Name Server Management." You may need to turn on
    advanced settings to allow editing of these MX records. 3. Delete any existing MX records befor....
  12. E-mail Log-in
    need code to allow e-mail log-ins (2)
    I am just wondering if it's possible to make a log-in code type thing were my members can log-in
    to view there pop3 e-mails. If anyone knows how, if or were I can get one of these please post.....
  13. Why Spam Is Spreading Through My Domain Email
    (19)
    I just checked whois of my domain , and it has been listed in BLACKLIST:... because they say that
    there has been sent the spam from my domain email etc.here is the detail.... whats going on ? why
    you let others doing spam ? to get money? THIS IS NOT FAIR. Im very disappointed. Date Data
    Source Answer QUOTE Information 2006-05-05 SBL.SPAMHAUS.ORG 127.0.0.2
    http://www.spamhaus.org/SBL/sbl.lasso?query=SBL40666 2006-05-04 SBL.SPAMHAUS.ORG 127.0.0.2
    http://www.spamhaus.org/SBL/sbl.lasso?query=SBL40666 2006-05-03 SBL.SPAMHAUS.ORG 127.0.0.2
    http://www.s....
  14. Mail Problem
    (12)
    Hi, i have a problem, when i try to send an email (created in trap17 cpanel) i receive this message:
    QUOTE sorry, your IP is rejected because it was flagged as an open-relay It was working
    fine, but now i have this problem and i don't know why! /sad.gif"
    style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Any help would be very
    thankful. Thanks in advance.....
  15. Bandwidth Mail
    i´m receiving alerts about bandwith usage (3)
    Hello, I have received mails during this weeek telling me that my website had reached 80% of its
    bandwidth limit. But I´ve checked it on cpanel and my stats are right now 813.99 / 5000 MB... and
    I´m working these days on the site, constantly uploading and testing things so I suppose that
    normally I wouldn´t use as much. But anyway it´s not near the limit and it´s definitely not around
    80% so... what can I do? Am I doing something wrong? By the way, I haven´t experienced problems... I
    mean, the website hasn´t got down in any moment. The mail tells me to contact the syste....
  16. Sendmail Vs Mail() And Smtp
    how to use sendmail? (3)
    hello guys!.... at last i discovered that using sendmail the mails i send, arrived directly to
    the inbox folder in accounts like MSN or YAHOO!, that is very useful when you have a list to
    some friends or some kind of newsletter. The bad thing is that i made it all with joomla!, it
    had this option, but i would really like to have a script with this new form, do you have any idea
    about how this can be achieved guys? And the other thing, does trap17 support smpt? if you do
    support it guys, can the mails arrive to the inbox with accounts such as MSN or YAHOO....
  17. Concerned Security With Hosting Application Info
    Spam bots can harvest emails in requests (5)
    I was looking around at the posts in the free hosting request section (just for fun), and noticed a
    major problem with the applications. For every application that is made, the email address of that
    applicant is shown to the world, including SPAMBOTS!!! This is a major flaw in the
    aplication process, and will lead to increase levels of spam in every member's inbox. This is
    the only thing that is wrong with any part of the Trap17 site. Editing topic title ....
  18. Mailing Lists
    Does Trap17 support this function & how? (1)
    I keep trying to use the Mailing List fuction in cPanel but evertime I click edit I get a "this page
    cannot be found". Is this because Trap17 doesn't have a mailing list function or am I doing
    something wrong? If I'm doing something wrong can someone please explain how you set up the
    mailing list. If it isn't supported, does anyone know how I can make a mailing list (like with
    php - though I am unfamiliar with PHP as yet, so premade scripts always go down well with me
    /wink.gif' border='0' style='vertical-align:middle' alt='wink.gif' /> ) Thanks heaps!....
  19. Sending Mail
    SMTP problems (3)
    Okay I am at a loss on this so I am trying this way. I looked around and did several searches to
    find an solution. My domain is unicornrose.com so my mail server is mail.unicornrose.com So far
    I have never had a problem with the getting mail part. I can not send however. I have put my smtp
    server as mail.unicornrose.com and that it requires server authentication. It is also set as port
    25. I have tried it as no server authentication too. I keep getting an error. Something to the
    effect that it can not find the server. Now when I look at my file server and loo....
  20. Need Help With Web Mail
    (2)
    does any one how i can find out my webmail address. where am is supposed to go in the control panel
    to find out.....
  21. How To Delete A Mail From My Webmail Admin
    (2)
    hi all!, i have used the email from my account and sometimes it receives spam (still dont know
    why) so i would like to delete these emails but the problem is that when i try to delete some, it
    just marks them as deleted but they are still there (im using horde) any idea? btw, while cleaning
    my webspace, i mean deleting folders and files and also databases i dont see the changes from my
    "used space" quantity... does it take some time to refresh or something or i havent deleted the
    files at all? thanx in advance Merged double posts ....
  22. Where Is The Mail Server Info?
    Need SMTP and POP3 server info (5)
    I looked in cPanel and noticed that I have a total of 99 email accounts. However, I can not find any
    sever connection information. Can any one proide me with these settings?....
  23. Sending Mail Problems
    Outlook Express (9)
    I am using my dot com email through Outlook Express. I have no problem in recieving Emails through.
    However if I reply to the Email it can not send before there is an Error. The Error message is
    below: QUOTE Your server has unexpectedly terminated the connection. Possible causes for this
    include server problems, network problems, or a long period of inactivity. Account:
    'mail.zaccynetwork.com (2)', Server: 'mail.zaccynetwork.com', Protocol: SMTP, Port:
    25, Secure(SSL): No, Socket Error: 10053, Error Number: 0x800CCC0F This happens with all 6 acc....
  24. Mail Settings To Configure Outlook Express
    Common mistakes by members (10)
    Hi, There are many members who face trouble getting their mails to their inbox. There can be many
    reasons for which your system might not be able to fetch mails from our servers. We have kept all
    the attributes related to the mail at DEFAULT so that our clients don't have problems
    configuring the mail themselves. Here the the general mistakes which members make :- 1. Username
    *MUST* be in format USERNAME@DOMAIN.COM (i.e. your complete Emaill address itself acts as your
    username) 2. Forget the password or confuse it with Cpanel password. Every Email address has to....
  25. Error When Using Imagefilter()
    Fatal Error: Call to undefined function (1)
    Hello, i need to use in my site a function called imagefilter but it not work , here is de
    documentation from php.net QUOTE Description bool imagefilter ( resource src_im, int filtertype
    ]] ) imagefilter() applies the filter filtertype to the image, using arg1, arg2 and arg3 where
    necessary. Note: This function is only available if PHP is compiled with the bundled version of
    the GD library. The error when i try to execute it is: QUOTE Fatal error: Call to undefined
    function: imagefilter() kservice USE QUOTE TAGS. YOU WERE PREVIOUSLY WARNED ABOUT ....
  26. I Won't Do It Again!
    don't spam (5)
    i'm really really really sorry, so sorry, i don't wanted to spam, sorry iwon't do it
    again, and i say never, never do it again, simply i didn't have nothing to say to gain credits,
    or that's what i believe, i'm not sure, but i have something to say about all this, and is
    that write words with content is not really easy, and that was what motivated me to spam(i'm
    really sorry), and now, look at me, i have been executed, i can't acces my
    website!!!, what are going to say my friends??? is hard to listen you are a, cough,
    cough, s....
  27. Any Good E-mail Newsletters?
    Im looking for a great e-mail newsletter (3)
    I need the script, program, or anythign else, PHP MYSQL anything will work really, but it has to be
    a very easy to use, great customizable e-mail newsletter, so i can send mass e-mails to everyone on
    my list, and i need it to either haev tempaltes with it, and html builder, or let me HAVE html in
    the newsletter, if anyone can help me with this itl be greatly appericated thanks alot guys!....
  28. How To Stop The Spam That Pirates My Domain?
    (7)
    I am sorry if I put this topic in the wrong forum, but I really do not know where to post it. When
    I try to search my domain in google for finding how popular it is, I find that a lot of spams with
    email addresses of my domain. I think that it maybe happen before I got my domain. But in fact, it
    is going on. There is no mail server of my domain, but the senders of those spam email are based on
    my domain, i.e. spamer@mydomain.com. I found that there a lot blog and gustlist sufferring spams of
    my domain. I am afraid of taking the resposibilies that I do not deserve. May....
  29. Advanced Guestbook 2.3.1 Spam Issue
    Anyone has this problem? (2)
    I use the Advanced Guestbook script for my site guestbook and lately I've been getting lots of
    spam. I looked through the files and noticed there doesn't seem to be a way to stop this; even
    the guestbook on the Advanced Guestbook site itself contains tons of spam. Does anyone know of a
    way to prevent this? Or do I have to change guestbooks... Again?? /sad.gif' border='0'
    style='vertical-align:middle' alt='sad.gif' /> My friends are all going to be really tired of me
    asking them to repeatedly sign again and again /tongue.gif' border='0' style='vertical-alig....
  30. Outlook Mail
    (3)
    does anyone know how to set up a microsoft outlok mail? what are those STP and POP3? what do you put
    there? im trying to use my hotmail email so is it possibe.?....

    1. Looking for mail, function, mails, spam

Searching Video's for mail, function, mails, spam
Similar
Spammers
Using My
Domain To
Send Spam
Keep Getting
Socket Error
- mail
won't
send.
Our Own
Email
Account -
How do I
make it and
read my
mail?
Web Mail
Forwarding
Not Working?
Did I Spam?
Errors With
Php
Setcookie()
And
Headers!
Please
Help! -
Having
header
errors when
I try to set
a cookie
with PHP
function
setc
Genuine Help
With Smtp
And Php
Mail()
Function - I
need help
using the
PHP mail()
function and
the SMTP
server on
Trap1
Trap17 Mail
Exchange
Servers
Mac Mail And
Server
Settings
Is The
Report
Function
Working?
Mx Mail
Question -
Need to
change it to
the new
google
program
E-mail
Log-in -
need code to
allow e-mail
log-ins
Why Spam Is
Spreading
Through My
Domain Email
Mail Problem
Bandwidth
Mail - i´m
receiving
alerts about
bandwith
usage
Sendmail Vs
Mail() And
Smtp - how
to use
sendmail?
Concerned
Security
With Hosting
Application
Info - Spam
bots can
harvest
emails in
requests
Mailing
Lists - Does
Trap17
support this
function
& how?
Sending Mail
- SMTP
problems
Need Help
With Web
Mail
How To
Delete A
Mail From My
Webmail
Admin
Where Is The
Mail Server
Info? - Need
SMTP and
POP3 server
info
Sending Mail
Problems -
Outlook
Express
Mail
Settings To
Configure
Outlook
Express -
Common
mistakes by
members
Error When
Using
Imagefilter(
) - Fatal
Error: Call
to undefined
function
I Won't
Do It
Again! -
don't
spam
Any Good
E-mail
Newsletters?
- Im looking
for a great
e-mail
newsletter
How To Stop
The Spam
That Pirates
My Domain?
Advanced
Guestbook
2.3.1 Spam
Issue -
Anyone has
this
problem?
Outlook Mail
advertisement



Mail() Function - the mails are sent as SPAM!!



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE