Re: [PHP] mail() help
-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 @yahoo.co.in>' . > "\r\n"; > > $headers.= 'X-Mailer: PHP/' . phpversion(). "\r\n"; > > $sendmessage = "Here is the information you requestedYour > Logon name and Password details for MyADTV Account your LogonName > is : suresh your Password is rajaysIf You Want > To Login into Your MyADTV Account, href=\"Click'>http://myadtv.com/login.php\";>Click Here"; > > > 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
What are you doing on this line: $headers .= 'From: MyADTV @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 @yahoo.co.in>' . "\r\n"; $headers.= 'X-Mailer: PHP/' . phpversion(). "\r\n"; $sendmessage = "Here is the information you requestedYour Logon name and Password details for MyADTV Account your LogonName is : suresh your Password is rajaysIf You Want To Login into Your MyADTV Account,http://myadtv.com/login.php\";>Click Here"; 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
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 @yahoo.co.in>' . > "\r\n"; > > $headers.= 'X-Mailer: PHP/' . phpversion(). "\r\n"; > > $sendmessage = "Here is the information you requestedYour > Logon name and Password details for MyADTV Account your LogonName > is : suresh your Password is rajaysIf You Want > To Login into Your MyADTV Account, href=\"Click'>http://myadtv.com/login.php\";>Click Here"; > > > 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
[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 @yahoo.co.in>' . "\r\n"; $headers.= 'X-Mailer: PHP/' . phpversion(). "\r\n"; $sendmessage = "Here is the information you requestedYour Logon name and Password details for MyADTV Account your LogonName is : suresh your Password is rajaysIf You Want To Login into Your MyADTV Account,http://myadtv.com/login.php\";>Click Here"; 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
Re: [PHP] mail() help
-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] mail() help
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
[PHP] Re: php mail help
*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
[PHP] php mail help
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
Re: [PHP] mail help, and php.ini help.
ðÒÉ×ÅÔ! 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
[PHP] mail help, and php.ini help.
i`ve coded a mass-mailer for my site but the $from header doesn't work. when i get a test message back from it it says from "Unprivileged user" = not what i set it to. How would i set it out using the syntax: $to # $from # $subject # $message # mail($to, $from, $subject, $message) ___=20 Also, i was wondering how i could use my own PHP.INI config file on a = remote webserver which hosts my site. And can i set .php to something else, like .he for example? -ReLik
[PHP] mail-help
-- 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]
[PHP] mail() help
I am getting this error when using the trying to use the mail function. Any insite will help, I have been up for too long working on a few projects and my brain is damn near melted. mail() is not supported in this PHP build in so when I built PHP 4.06 I am assuming I missed a option, but just want to make sure before i head back and re-do things. Is there a simple option to turn on the mail support. -- 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]
Re: [PHP] Mail help!!!!!
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]
[PHP] Mail help!!!!!
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);