Re: [PHP] mail() help

2006-09-12 Thread David Tulloh
Your email is going to the bulk mail folder because the email provider
believes that it's spam.  It's nothing specifically wrong with your
email, there is no this isn't spam flag, otherwise everyone would set it.

To figure out why the email is being marked as spam, check the program
that is doing the filtering.  Most of the filtering programs will list
the tests which matched in the headers.  You can then try and fix the
problems highlighted.

A few suggestions from what you provided below, I believe your From
header is incorrect.  You could try not sending HTML in the message or
sending properly formed and MIME typed HTML, along with a non-HTML version.


David

suresh kumar wrote:
 Hi,
   I  am using php mail function to send mails to our customers.but when i 
 send mail to them.it is getting received in customers bulk folder .i want 
 mail to get received in customers inbox.i dont know the reason why its 
 getting stored in bulk folder.

i attached the code.below,any one help me
 
   $to='[EMAIL PROTECTED]';
 
 $subject='Password from MyAdTV';
 
 $headers  = 'MIME-Version: 1.0' . \r\n;
 
 $headers .= 'Content-type: text/html; charset=iso-8859-1' . \r\n;
 
 $headers .= 'From: MyADTV asureshkumar_1983'@yahoo.co.in' . 
 \r\n;
 
 $headers.= 'X-Mailer: PHP/' . phpversion(). \r\n;
 
 $sendmessage = brHere is the information you requestedbrbrYour 
 Logon name and Password details for MyADTV Accountbrbrb your LogonName 
 is /b: suresh brbrb your Password is /b rajaysbrbrIf You Want 
 To Login into Your MyADTV Account,a 
 href=\Click'http://myadtv.com/login.php\;Click Here/abrbr;
   

  mail($to,$subject,$sendmessage,$headers);
   
 
 Christopher Weldon [EMAIL PROTECTED] wrote:
   -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 suresh kumar wrote:
 
Hi to all,
i am having one doubt regarding php mail function.i am using php mail() 
function to send mail to the users.but when i send mail throught php its 
going to the users bulk folder but not to the user inbox.i dont know the 
reason.

Is there any setting that is requried in the php.ini file (or) the user have 
to change their setting in their mail (or) is there any option available to 
send mail to the user inbox.tnxs for reply

A.suresh




-
Find out what India is talking about on - Yahoo! Answers India 
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW
 
 
 There are several things you need to check for, and probably add to your
 emails that you're sending.
 
 Number one, add additional headers to make SPAM / Bulk filters realize
 the message is not SPAM or should not be considered SPAM. IE:
 
 $headers = From: Suresh Kumar \r\n.
 X-Mailer: PHP 4.3.2\r\n.
 X-Sender: $_SERVER['HTTP_HOST']\r\n.
 X-Comment: If you can put a comment here, do it.\r\n;
 
 mail($to, $subject, $body, $headers);
 
 The above is considering you have already declared the $to, $subject,
 and $body variables. Also, make sure your $subject is not
 'undisclosed-recipients;' or something like that - it's a big no-no and
 will definitely flag some SPAM filters. Put a valid e-mail address - but
 you can still use the BCC-headers and everything should go just fine.
 Alternatively, if your list is not too large, it looks better to run a
 for / while loop to send each recipient a message directly (ie: not
 using BCC) as that will cut down on the SPAM probability.
 
 Second, if you are making MIME emails, make sure you are doing so
 correctly. You can learn about creating multipart/alternative MIME
 emails more at www.php.net/mail.
 
 Finally, if none of the above works, it would be helpful for us to see
 the headers of the received message from one of your recipients where
 the message was put in the BULK folder.
 
 - --
 Christopher Weldon, ZCE
 President  CEO
 Cerberus Interactive, Inc.
 [EMAIL PROTECTED]
 979.739.5874
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.1 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iD8DBQFFBaG2Zxvk7JEXkbERAgZiAKCJVQfno2fAca13Sx7aXPWD2WMgUwCeOMBX
 grbViYDnAXXy8l1i4liVHzE=
 =ka5I
 -END PGP SIGNATURE-
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] mail() help

2006-09-12 Thread Peter Lauri
What are you doing on this line:

$headers .= 'From: MyADTV asureshkumar_1983'@yahoo.co.in' . \r\n;

Should it not be:

$headers .= 'From: MyADTV [EMAIL PROTECTED]' . \r\n;

?

/Peter

www.lauri.se - personal web site
www.dwsasia.com - company web site



-Original Message-
From: suresh kumar [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 12, 2006 7:56 PM
To: php-general@lists.php.net
Subject: [PHP] mail() help

Hi,
  I  am using php mail function to send mails to our customers.but when
i send mail to them.it is getting received in customers bulk folder .i want
mail to get received in customers inbox.i dont know the reason why its
getting stored in bulk folder.
   
   i attached the code.below,any one help me

  $to='[EMAIL PROTECTED]';

$subject='Password from MyAdTV';

$headers  = 'MIME-Version: 1.0' . \r\n;

$headers .= 'Content-type: text/html; charset=iso-8859-1' . \r\n;

$headers .= 'From: MyADTV asureshkumar_1983'@yahoo.co.in' .
\r\n;

$headers.= 'X-Mailer: PHP/' . phpversion(). \r\n;

$sendmessage = brHere is the information you
requestedbrbrYour Logon name and Password details for MyADTV
Accountbrbrb your LogonName is /b: suresh brbrb your Password
is /b rajaysbrbrIf You Want To Login into Your MyADTV Account,a
href=\Click'http://myadtv.com/login.php\;Click Here/abrbr;
  
   
 mail($to,$subject,$sendmessage,$headers);
  

Christopher Weldon [EMAIL PROTECTED] wrote:
  -BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

suresh kumar wrote:
 Hi to all,
 i am having one doubt regarding php mail function.i am using php mail()
function to send mail to the users.but when i send mail throught php its
going to the users bulk folder but not to the user inbox.i dont know the
reason.
 
 Is there any setting that is requried in the php.ini file (or) the user
have to change their setting in their mail (or) is there any option
available to send mail to the user inbox.tnxs for reply
 
 A.suresh
 
 
 
 
 -
 Find out what India is talking about on - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get
it NOW

There are several things you need to check for, and probably add to your
emails that you're sending.

Number one, add additional headers to make SPAM / Bulk filters realize
the message is not SPAM or should not be considered SPAM. IE:

$headers = From: Suresh Kumar \r\n.
X-Mailer: PHP 4.3.2\r\n.
X-Sender: $_SERVER['HTTP_HOST']\r\n.
X-Comment: If you can put a comment here, do it.\r\n;

mail($to, $subject, $body, $headers);

The above is considering you have already declared the $to, $subject,
and $body variables. Also, make sure your $subject is not
'undisclosed-recipients;' or something like that - it's a big no-no and
will definitely flag some SPAM filters. Put a valid e-mail address - but
you can still use the BCC-headers and everything should go just fine.
Alternatively, if your list is not too large, it looks better to run a
for / while loop to send each recipient a message directly (ie: not
using BCC) as that will cut down on the SPAM probability.

Second, if you are making MIME emails, make sure you are doing so
correctly. You can learn about creating multipart/alternative MIME
emails more at www.php.net/mail.

Finally, if none of the above works, it would be helpful for us to see
the headers of the received message from one of your recipients where
the message was put in the BULK folder.

- --
Christopher Weldon, ZCE
President  CEO
Cerberus Interactive, Inc.
[EMAIL PROTECTED]
979.739.5874
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFBaG2Zxvk7JEXkbERAgZiAKCJVQfno2fAca13Sx7aXPWD2WMgUwCeOMBX
grbViYDnAXXy8l1i4liVHzE=
=ka5I
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get
it NOW

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mail() help

2006-09-12 Thread Christopher Weldon
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

suresh kumar wrote:
 Hi,
   I  am using php mail function to send mails to our customers.but when i 
 send mail to them.it is getting received in customers bulk folder .i want 
 mail to get received in customers inbox.i dont know the reason why its 
 getting stored in bulk folder.

i attached the code.below,any one help me
 
   $to='[EMAIL PROTECTED]';
 
 $subject='Password from MyAdTV';
 
 $headers  = 'MIME-Version: 1.0' . \r\n;
 
 $headers .= 'Content-type: text/html; charset=iso-8859-1' . \r\n;
 
 $headers .= 'From: MyADTV asureshkumar_1983'@yahoo.co.in' . 
 \r\n;
 
 $headers.= 'X-Mailer: PHP/' . phpversion(). \r\n;
 
 $sendmessage = brHere is the information you requestedbrbrYour 
 Logon name and Password details for MyADTV Accountbrbrb your LogonName 
 is /b: suresh brbrb your Password is /b rajaysbrbrIf You Want 
 To Login into Your MyADTV Account,a 
 href=\Click'http://myadtv.com/login.php\;Click Here/abrbr;
   

  mail($to,$subject,$sendmessage,$headers);
   

Yes, you definitely have a problem with the From line, but I also
suggest that you turn your email into a multipart message - IE have a
plaintext version of your email as well as an HTML version of the email.
This not only will probably be less of a sign of SPAM because it won't
contain mostly HTML. I know SPAMAssassin has a rule that scores big SPAM
points for messages that are  90% HTML.

Finally, after you fix all of those issues, if you still have a problem
with your messages being flagged as SPAM, send us the full email (with
all the headers) so we can see the reason behind the message being
marked as SPAM.

- --
Christopher Weldon, ZCE
President  CEO
Cerberus Interactive, Inc.
[EMAIL PROTECTED]
979.739.5874
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFBx4pZxvk7JEXkbERAg6IAJ4pMh1DMNP+TrPIh+j7UHz51dSkqgCfUhzC
yiG9jiZDyjxPAjunLgOhiGo=
=z8H3
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mail() help

2006-09-11 Thread Christopher Weldon
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

suresh kumar wrote:
 Hi to all,
   i am having one doubt regarding php mail function.i am using 
 php mail() function to send mail to the users.but when i send mail throught 
 php its going to the users bulk folder but not to the  user inbox.i dont know 
 the reason.

Is there any setting that is requried in the php.ini file (or) the 
 user have to change their setting in their mail (or) is there any option 
 available to send mail to the user inbox.tnxs for reply

  A.suresh

   
 
   
 -
  Find out what India is talking about on  - Yahoo! Answers India 
  Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get 
 it NOW

There are several things you need to check for, and probably add to your
emails that you're sending.

Number one, add additional headers to make SPAM / Bulk filters realize
the message is not SPAM or should not be considered SPAM. IE:

$headers =  From: Suresh Kumar [EMAIL PROTECTED]\r\n.
X-Mailer: PHP 4.3.2\r\n.
X-Sender: $_SERVER['HTTP_HOST']\r\n.
X-Comment: If you can put a comment here, do it.\r\n;

mail($to, $subject, $body, $headers);

The above is considering you have already declared the $to, $subject,
and $body variables. Also, make sure your $subject is not
'undisclosed-recipients;' or something like that - it's a big no-no and
will definitely flag some SPAM filters. Put a valid e-mail address - but
you can still use the BCC-headers and everything should go just fine.
Alternatively, if your list is not too large, it looks better to run a
for / while loop to send each recipient a message directly (ie: not
using BCC) as that will cut down on the SPAM probability.

Second, if you are making MIME emails, make sure you are doing so
correctly. You can learn about creating multipart/alternative MIME
emails more at www.php.net/mail.

Finally, if none of the above works, it would be helpful for us to see
the headers of the received message from one of your recipients where
the message was put in the BULK folder.

- --
Christopher Weldon, ZCE
President  CEO
Cerberus Interactive, Inc.
[EMAIL PROTECTED]
979.739.5874
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFBaG2Zxvk7JEXkbERAgZiAKCJVQfno2fAca13Sx7aXPWD2WMgUwCeOMBX
grbViYDnAXXy8l1i4liVHzE=
=ka5I
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: php mail help

2004-10-28 Thread M. Sokolewicz
*cough*quotes*cough*
Patrick E Phillips wrote:
I have php installed on my PC as well as an apache webserver and mysql. I am
using cox.net as my cable internet provider. They block port 25 but I do not
know if that affects what I am trying to do... which is:
use the mail() function to send email for my user activation script. I am
trying to test everything for my website on my computer before I pay for
hosting. When I run the registration script I get this:
Warning: mail(): sendmail_from not set in php.ini or custom From: header
missing in C:\Program Files\Apache
Group\Apache2\htdocs\campushotties\reghandle2.php on line 137
now the funny thing is i have the following code in my php.ini file:
[mail function]
; For Win32 only.
SMTP = smtp.east.cox.net
smtp_port = 25
; For Win32 only.
sendmail_from = [EMAIL PROTECTED]
from the error message one would think that the email would be delivered but
with a bad From address field. However, nothing is delivered. I also tried
switching the smtp_port to port 26.. that didnt work either.
Thanks for any help,
Pat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mail help, and php.ini help.

2002-07-06 Thread Alberto Serra

ðÒÉ×ÅÔ!

Greg Scotts wrote:
 $to #
 $from #
 $subject #
 $message #
 mail($to, $from, $subject, $message)

It always worked for me... you obviously checked variable content, did 
you? And I am not sure I got you right. Mail gets sent, it's just the 
sender address being wrong?

 Also, i was wondering how i could use my own PHP.INI config file on a =
 remote webserver which hosts my site.

You need a shell with root access. I doubt you will be given one.

 And can i set .php to something else, like .he for example?

Yes, if you are root :) You need to do it in your httpd.conf (that's 
actually something Apache must now. For PHP file extension is totally 
equivalent, you could have no extension at all and they would work. It's 
Apache that needs some rule for it to know how it's going to process the 
request).

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-- 


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Mail help!!!!!

2001-04-17 Thread Johannes Janson

Hi,

I think you can put more than one recipient into the mail-function
by seperating them with a ",". Look in the manual for detailed info.

Johannes

"Bruno Freire" [EMAIL PROTECTED] schrieb im Newsbeitrag
454D444FF5C0D211891800A0C98C7D90359A44@SERVIDOR">news:454D444FF5C0D211891800A0C98C7D90359A44@SERVIDOR...
Hi! My name is Bruno.

Somebody can tell me how to send the same message to more than one recipient
without repeat de code??

something like

  $corpo.="\n";
  $corpo.="\tData de Saída:\t\t$dt_saida\n\n\n";
  $corpo.="\tClique no link abaixo para visualização da Folha de
Cotação:\n\n";
  $corpo.="\t";
  $remetente="From: [EMAIL PROTECTED]";
  mail(email_one and email_two,$assunto,$corpo,$remetente);


and not

  $corpo.="\n";
  $corpo.="\tData de Saída:\t\t$dt_saida\n\n\n";
  $corpo.="\tClique no link abaixo para visualização da Folha de
Cotação:\n\n";
  $corpo.="\t";
  $remetente="From: [EMAIL PROTECTED]";
  mail($email_ONE,$assunto,$corpo,$remetente);

  $corpo.="\n";
  $corpo.="\tData de Saída:\t\t$dt_saida\n\n\n";
  $corpo.="\tClique no link abaixo para visualização da Folha de
Cotação:\n\n";
  $corpo.="\t";
  $remetente="From: [EMAIL PROTECTED]";
  mail($email_TWO,$assunto,$corpo,$remetente);




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]