Emails Blocked By Certain Mail Hosts? (mail() Function)
I'm using mail($address,$subjectheading,$message,"From:
me@mysite.com") to send emails from my site. For the most part, it
works okay (for example, I receive the mail in my Yahoo box). But when
I check my university email, the message is not delivered. I thought
maybe it was because I had included my web address in the subject
heading and that it was being filtered out, but I removed that from
the subject and it still fails to get through. I'm making a wedding
site for some friends now and they want to be able to email everyone
on their guest list at once, but I'm afraid the same will happen to
some of these addresses as well. Any comments/suggestions on what may
be blocking the mail and how I can get around it? I'm not trying to
send out any kind of mass ad mailings or anything. Just to people on a
mailing list for this site.
View Complete Forum Thread with Replies
Related Forum Messages:
Using Mail() - Get Lots Of Blocked Emails
I am using the mail() function but many times the emails do not make it to their recipient... I see this happen almost 100% of the time to hotmail.com and aol.com accounts. Is there a way to get these emails through? This is not for spam, it is for automatic notifications that the recipient requests. ... well I guess this does sound like spam, but anyways it is for sending tracking information from my ecom site when orders ship out. Does anyone know a better way to do this?
View Replies !
Mail() Function - Using The Mail() Function To Send Emails To Members Of A Website
I am using the mail() function to send emails to members of a website. For some reason when I include words such as "free" or "winner" the mail does not send to any of the addresses - it just seems to disappear in space. I figured this out by trial and error - once I removed those words, it worked. I am running cPanel on the server and have no problem sending emails as long as they don't use those words. It seems to be blocking certain words - ones that I assume spammers would use.
View Replies !
Using Mail() Function For Selected Emails
I have a list of emails and I want to email only selected people by clicking on a checkbox next to their record. So I created a nice table that shows all records and a checkbox next to each record with the recordID as the value. But, I am not sure where to go from here. The next page has the mail() function, but I don't know what to do next. Code:
View Replies !
Mail Function Not Sending Emails.
im starting to doubt my ability to read the php manual. Somehow this thing is not sending emails. Any thoughts why? (Yes i did change mymail@mail.com into an actual email address. mail('mymail@mail.com', 'My Subject', 'my message');
View Replies !
Mail() Function Sending Emails Trapped By IMF
I am using the simple mail() fucntion in a php script but the emails that are being generated and being trapped by Microsoft Exchange server 2003 Inteligent message filter as having an SCL rating of 7 or 8, the highest possible being 9. This is causing me problems getting the emails delivered to people!
View Replies !
Mail Function Sending Double Emails
I have a script I'm using to send me e-mails when someone registers for an event I'm holding. But it's sending the e-mails twice. How can I fix this? Can anyone help? My host uses qmail. I get no errors reported. Here is the function as I'm using it: mail('address1@host, address2@host', $subject, $messageproper, "From: "$yourname" <$email> X-Sender: My site name" ); I have a value passed to the variables "yourname", "subject", "messageproper", "email" from a form I've set up. Any ideas what's causing the double emails and how to solve this problem?
View Replies !
Mail() Gets Blocked By Hotmail
I have a few systems that rely on the php mail function. One really big problem I'm having is I'm always blocked in Hotmail and marked as "junk mail". Does anyone know a solution to this? See below for my headers: # Common Headers $eol = " "; $headers .= 'From: <'.$fromaddress.'>'.$eol; $headers .= 'Reply-To: <'.$fromaddress.'>'.$eol; $headers .= 'Return-Path: <'.$fromaddress.'>'.$eol; // these two to set reply address $headers .= "Message-ID: <".$now." TheSystem@".$_SERVER['SERVER_NAME'].">".$eol;
View Replies !
Mail() Php Blocked As Spam
I created a simple php mail() function with attach. The problem is that I´m receiving the mails as spam, I already tried everything, maybe somebody could give me a help, my headers: $remetente = "$nickuser"."@yachtbrasil.com.br"; $nome_resposta = "$nickuser"; $headers = "MIME-Version: 1.0".$eol; $headers .= "From: $nome_resposta <$remetente>".$eol; $headers .= "Reply-To: $nome_resposta <$remetente>".$eol; $headers .= "Return-Path: $nome_resposta <$remetente>".$eol; $headers .= "Content-type: multipart/mixed; boundary="$mime_boundary"".$eol; $headers .= "Message-ID: <".$now." TheSystem@".$_SERVER['SERVER_NAME'].">".$eol; $headers .= "X-Mailer: PHP v".phpversion().$eol;
View Replies !
Mail() Blocked By Spam Filter
I never had problem with this PHP page with mail() function with at least 5 different servers, but email sent through the server of this "T" company tends to get blocked by spam filters. I tested with my different email accounts and these are the results. * The mail is delivered to the "Inbox" of my AOL account. * The mail is delivered to the "Bulk Mail" folder of my hotmail and msn accounts. * The mail is delivered to the "Spam" folder of another account of mine. * The mail is not delivered to any of my two university accounts. One thing I noticed is that this "T" company hasn't setup the "From" section, unlike the other servers that I worked with before, so the mail is coming from "Nobody" <nobody@________>. I suggested the tech person of the company update the "php.ini" file, but he doesn't admit that's the issue. I tried manually adding the From with PHP coding with "$headers," but it didn't make any change.
View Replies !
Mail() Only Works With Trusted Hosts/domains
I have a dedicated linux web server and I am trying to use the PHP mail() function to send emails any site visitor that requests one. This works only if the visitor has an email account on the box. If not then the email request fails. I think this must be something to do with relaying and I have been entering domains and hosts (such as "localhost") to get the script to trust the source of the email request and relay it. Unfortunately I have not had any success.
View Replies !
Mail() [function.mail]: SMTP Server Response: 550 Not Local Host Gmail.com
I do a mail() and get: Warning: mail() [function.mail]: SMTP server response: 550 not local host gmail.com, not a gateway in C:xamppxampphtdocs estsitemail.php on line 7 <?php ini_set("SMTP","rlwatkins.com"); ini_set("sendmail_from","hunter@rlwatkins.com"); mail("huntercjcarroll@gmail.com","hello me","spamtastic","From: hunter@rlwatkins.com"); ?> what is wrong with this, how do i set it so that i can send to something other than localhost?
View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 501 Syntax Error
When I try this under windows : mail("User <user@example.com>",$subject, "", $headers); I get this error : Warning: mail() [function.mail]: SMTP server response: 501 Syntax error, parameters in command "RCPT TO:<User <user@example.com>>" unrecognized or missing in It seems to add it's own <> characters. If I run the same script under Linux it works fine !?
View Replies !
Warning: Mail() [function.mail]: Permission Denied: Headers Injection
I wrote many years ago a small shop application as hobby for a customer. Worked well until a few days. I'm not a php guru and don't understand why I get now this permission problem. Warning: mail() [function.mail]: Permission denied: headers injection (empty line) in /home/www/edfedca4df03c5ff2685003537a08dd5/web/minishop/mail.php on line 145 mail($this->to, $this->subject, "", $mime); <- LIGNE 145
View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 550 5.7.1
I'm making e-mailing with php script and i setup mailtraq mailserver this thing is just a lil confusing to me first thing i want to know if i can use apache instead of this as mail server second when i wrote my script with that mail function i received an error this is it : Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for monalisa20042006@yahoo.com in D:wampwww1stmail.php on line 2 what's that mean if this means that the mail server not configured right...SO third how to use or configure this server to use as my mail server. Code:
View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 553
my php.ini mail section is setup as follows: [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 then in my php script: <?php mail("joecool@hotmail.com", "Testing", "Line 1 Line 2 Line 3", "From: tom@hotmail.com") or die("email error"); ?> i have also run mercury mail but i keep getting this error: Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:Program Filesxampphtdocsest.php on line 2 on all tutorials that i went, the mail function is written this way what is wrong?
View Replies !
Mail Function :: Send Form In HTML Mail
I am trying to use the PHP mail function to repopulate the information that has been filled out on a form and send the form out in an html email the same way that it looked when the individual filled it out. The problem I am having is with the Radio buttons and repopulating them. Code:
View Replies !
Php Mail() Function Doesn't Send To Pop3 Mail Address
I'm writing a registration script for een webhosting company but the mail() function i used works only for hotmail addresses and not for pop3 email accounts, it also works for other not pop3 email accounts, does any one know what i should do to make this work. I used the same method before on an other server and there it worked perfectly.
View Replies !
PHP Mail() Function Failing To Send Mail
Our setup: PHP 4.3.11, FreeBSD 5.3 RELEASE, Sendmail 8.1, 1 host environment, 2 jails. Our problem: While we can send email from the command line just fine in one of the jails, we cannot use the php mail() command to send email using sendmail at all. The function, when executed, does absolutely nothing. No error, no reports to the maillog, nothing. I've read somewhere that it's "not possible" to send mail using the php mail() function within a freebsd jail, but i'm nearly certain we have it working this way on another server, but can't seem to figure out the issue.
View Replies !
Send Out The Most Basic E-mail Using PHP And The Mail() Function.
im trying to send out the most basic e-mail using PHP and the mail() function. the problem i have is that it will always return true but the message is never received and im not sure if its even sent. heres my code.... $email = "jonathangilmartin@yahoo.co.uk"; $subject = "Subject!"; $body = "whatever you want to email"; $from = "From: Jon <john@beach.es>"; $p5 = '-f john@beach.es'; if(mail($to,$subj,$mesg,$from,$p5)){ echo " sent ok "; } else { echo " failed "; } I think the problem I have could be due to the server I am hosting the site on, but dont quote me on this as im not sure. The site is hosted on my university server, ive now graduated so I cannot ask the support team if any ports are blocked. Does anyone know a way of testing a servers ports, if this is even necessary of course ! can anyone explain the typical server requirements to send e-mail using PHP, i assume port 25 must be open and the server must accept SMTP. Forgive me for asking a dumb question but I take it that i cannot test the mail() function from my testing apache server installed on my local PC ? Also you will have noticed that i have a yahoo e-mail address, would i have to make any changes to my account to get this working ?? its only a standard free e-mail account.
View Replies !
Sending Mail To Hotmail Using The Mail() Function
I have been doing some research into how to send mail to a Hotmail address using the mail() function provided in PHP, in previous posts I may have been wrong in mentioning that you need to add your mail server to the hotmail PostMaster website using Smart Network Data Services (SNDS), after doing some research I have found that in order to send e-mail to a Hotmail address you need to add/ask your host to add an SPF record to your domain. What is SPF? Well, SPF is a protocol used to eliminate forged e-mails, much like SSL certificates help eliminate phising websites. Microsoft use the SPF record against the SenderID Framework that they have in place. How do I go about obtaining an SPF Record? Easy! use the Microsoft wizard found at: http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/ to generate a unique SPF record for your domain, then add it to your DNS server, or ask your web host to do this. I manage my own DNS server, how do I add an SPF record to a domain? To begin, open the DNS MMC from the Administrative Tools menu of your Windows Server 2003 system. Next, find the domain that will host the SPF DNS lookup record. Highlight the folder for the domain, and select Other New Records from the Action menu. You can also access this menu by right-clicking the domain folder. The resource Record Type dialog box will be displayed. From the Select a Resource Record Type area of the screen, scroll down the list and select Text (TXT) from the list. Click Create Record. This will bring up the New Resource Record dialog box to appear. This is where you paste the SPF record generated by the above website ---------------------------------------------------------------------------------------------------------------------------------- I hope this helps, I have tried it myself and e-mails went straight to my inbox (not junk mail). Would also appreciate feedback if this works for other providers such as Yahoo! etc as I have not tried it with them Give me your feedback on how it works for you, also if it works possibly make this thread sticky as I'm sure it will resolve many problems for people out there who are denying access to people who have public email addresses.
View Replies !
Mail() Function Doesn't Seem To Be Sending MAIL FROM: Properly
I'm trying to send an email using the mail() function. I've carefully made use of the ini_set(SMTP, "mail.my.server") function to set my SMTP server and also to set my From: address. I'm still getting a "Relaying not explicitly allowed: fakeemail@fakedomain.com" response from the server however, when I try and set a recipient who is outside of my own domain. This makes my think that the From: address is somehow not getting sent to my server properly or that I'm pointing at the wrong server. The confounding thing is that it was working for a while and I don't think I changed anything and it just stopped. I'm running these PHP pages for a client off of one of those cheap hosting services, I think it's called 1dollarhost.com or something, although I can't remember at the moment. Has anyone else had trouble with this or found a solution?
View Replies !
Use The Mail() Function: Warning: Mail() [function.mail]:
I am trying to use the mail() function. I've got my php.ini file configured to use my current smtp host (Verizon) and I get this error: Warning: mail() [function.mail]: Failed to connect to mailserver at "outgoing.verizon.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:www est.php on line 39 So I'm asking two things. 1) How can I make this work with out using Verizon's SMTP server? The server I am using for this website is a Windows XP machine with Apache as the webserver. 2) Once I have an alternative smtp server option, what is it I need to do to set it up properly? I need an alternative smtp server because this machine is just a development machine at my house, while the file site is in a colo and isn't connect to verizion or anyone else with a smtp server.
View Replies !
Getting 3 Emails From One Mail()
I'm totally clueless on this one -- I'm getting 3 copies of every Email (in plain text, not HTML as expected), from a single mail() line... Can anyone tell me what might be causing the duplicates?? <?PHP include('dbconn.php'); $query="SELECT artistID,active,email,firstname,lastname,city,stat e,mentor from artists WHERE artistID='$artistID'"; $result=mysql_query($query) or die(mysql_error("Could not execute query.")); while($row = mysql_fetch_array($result)) { $emai ?>
View Replies !
Using Mail() With .info Emails?
I am trying to send an email with the mail() function to an email address on a .info domain. I get an error. Everything else is correct, because as soon as I switch the email address to a .com address, it works fine.
View Replies !
Php Mail Stopping After A Few Emails
I am trying to mass mail a newspaper with PHP mail. I am using a local SMTP server. I am trying to send 300 emails at one time (with a for loop i.e. sending the same email to the same recipient 300 times) but it only sends a few them, sometimes about 100, sometimes about 130 and so on.. Then the php script stops, it doesn't even gives me an error. I tried several different SMTP servers. I tried the same script on a domain and it worked perfectly. I don't think that the problem is coming from the SMTP server as the script is not sending the 300 emails, it is stopping.
View Replies !
Mail() Duplicating Emails
I've got a nice email sending script that works a charm - except any email sent is sent twice, despite there only being a single call to the mail() function. It's a simple script, no loops that could have cause it to be called twice. Infact, it's a problem I'm having on two different scripts. Is there some horrible secret about mail() I should be aware of? Or does my server have a double-email complex? The actual code is: $recipient = 'contact@domain.com' $message = 'A message.' $message = wordwrap($message, 70); // Define Header $headers .= 'To: My Dear Friend <'. $recipient .'>' . ""; $headers .= 'From: My Dear Self <NOREPLY>' . ""; // Send mail($recipient, $subject, $message, $headers); (OK, so it's not the actual code, but for all intents and purposes it is)
View Replies !
Blank Emails Using Mail()
I've made an newsletter mailing system which should sent newsletters to my website's members using php mail function. It gets the mail data from an html file, the html file is generated using MS word(save as html). The mail is sent in Japanese Language(Shift_Jis). The html file is HUGE! 150 kb each, there are 5 such html files, the script gets email from database and sends data to the users. Problem is when the cron is executed i'm getting complains of blank mails the subject is okay but the body is blank. I tested the same function using a for loop sending me 25 mails, all mails were fine but the next day when cron was executed i also recieved a blank mail. i checked the message source in outlook express the last line is: Content-Type: text/html; charset=shift_jis which is of the header. Every time it sends a mail, i use a function to read the html file and return the data, is this slowing down the script and causing problems? The word generated html files have some headers of their own and i get an error saying "security settings may prohibit active x to run on this page , this page may not be displayed correctly": Whenever i test the same function it works fine but in actual execution blank mails are sent!
View Replies !
Mail() Sending Two Same Emails
<?php $mymail = '*******'; $mymail2 = "******"; $cc = $_POST['subject']; $FrOm = $_POST['email']; $BoDy .= 'First Name: '; $BoDy .= $_POST['first_name']; $BoDy .= ""; $BoDy .= 'Last Name: '; $BoDy .= $_POST['last_name']; $BoDy .= ""; $BoDy .= 'Email: '; $BoDy .= $_POST['email']; $BoDy .= ""; $BoDy .= 'Message: '; $BoDy .= $_POST['message']; $BoDy .= ""; $send = mail("$mymail", "$cc", "$BoDy", "From: $FrOm"); $send2 = mail("$mymail2", "$cc", "$BoDy", "From: $FrOm"); if ( $_POST['subject'] == "Lunches"){ $send2; } if($send2){ echo '<html><head>'; echo '<meta http-equiv="refresh" content="0;URL=contactus_return.html">'; echo '</head><body>Sending, Please hold...'; echo '</body></html>'; } else { ($send); } if($send) { echo '<html><head>'; echo '<meta http-equiv="refresh" content="0;URL=contactus_return.html">'; echo '</head><body>Sending, Please hold...'; echo '</body></html>'; } ?> When there is Lunches or any other value it sends both emails mymail and mymail2 are active and both send emails. Where is my mistake?
View Replies !
Emails Generated By Php Mail
I'm having a serious problem with the emails generated by php mail script on my sites. All works perfectly well (or has done up to npow) There is nothing wrong with the script. Here is an example of the script: Code:
View Replies !
Mail() Error - Use The Mail() Function
I am getting this message when I try to use the mail() function. Please let me know what it means and how I fix it. Warning: mail(): SMTP server response: 501 Invalid Address in C:AccountsjsniggitwwwRootincprayer.php on line 105 Line 105 = mail($mail,$subject,$message,$header); I dont get the invalid address part cause $mail is just my email ....
View Replies !
Warning: Mail() [function.mail]:
I am trying to send an email through php using the mail() function but getting the following error: Warning: mail() [function.mail]: SMTP server response: my-server-name-here [my-ip-address-here] is currently not 550-permitted to relay through this server. Perhaps you have not logged into 550-the pop/imap server in the last 30 minutes or do not have SMTP 550 Authentication turned on in your email client.My PHP Code is: <?php $to = 'nobody@example.com' $subject = 'the subject' $message = 'hello' $headers = 'From: webmaster@example.com' . "" . 'Reply-To: webmaster@example.com' . "" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> FYI: I am running this code on windows 2003 server and i can send email using Horde. What I am guessing is I need to add smtp authentication in my php code, so If you can tell me what is the syntax that can help me. how to overcome this problem?
View Replies !
Mail Function :: Mail Not Coming
I wrote a small script to send an email to my hotmail. The code run fine, no any error. However, I do not get any email yet. I am not sure how to debug. May I know the way to debug this problem. I also would like to know how to check where a server has been setup SMTP or not. It is not my server. I only can telnet to the server. Is there a way to find out?
View Replies !
Mail Function Not Sending Mail...
I used PHP's mail function to mail a simple contact us type form to an admin person. Well, I have need of doing it with my current job. I created a simple contact us form and all it has to do is email it's contents to me (for testing of course). Code:
View Replies !
Mail Function - How To Send Mail With Php.
I'm learning how to send mail with php. only thing that mystifies me a bit is I can't get NAME of sender to appear in e-mail INBOX under "from". I only see e-mail address. I'm coming from Java, with Java you can set it up so whatever user puts under "name" in the form you can grab and in e-mail INBOX under "from" you see sender's name, not e-mail address. I would like to be able to do this with php.
View Replies !
Some Receiving Blank Emails With Php Mail()
When sending a e-mailing with php's mail() function some receive my mail well, while others just get a blank email. I've noticed in my outlook that in the properties of that mail there's the following line: Received: (from nobody@localhost) Could this be the problem? I think it's possible that some mailservers see this as spam. But where do I change this settings. Because in the mailfunction I've put a real emailadress.
View Replies !
Getting Multiple Emails From A Single Mail()...
I found an old thread on this (http://groups.google.com/group/alt.php/ browse_thread/thread/751edb9c723316c4/ea9bf92a9c6b807c?lnk=gst&q=mail() +duplicate&rnum=7#ea9bf92a9c6b807c), but there didnt seem to be a resolution. I also noticed that this was a pretty old thread and there didn't seem to be anything newer in the search results. Regardless, I have a very similar problem; I am consistently getting five emails per each PHP mail() call. While this originally showed up in a loop generating a flood of email, I explicitly made a single direct mail call using hard coded strings and I confirmed the same behavior. I have spent most of today fighting with this and I can confidently rule out that the mail() function is being accidentally called multiple times (unless PHP is reloading the page multiple times before finally rendering back or something else really bizarre) Here is an example: $result = mail($sendto, $subject, $messagebody, $headers); If it matters, this is being called via a wrapper function, like this: function send_email($email_from, $email_to, $subject, $msg, $show_result = null) { ... $headers = "From: $from "; $headers .= "Reply-To: $from "; ... $result = mail($sendto, $subject, $messagebody, $headers); ... } The values of the vars don't matter, as I ran a very simple mail with hard coded strings and got exactly the same behavior. I have searched extensively and I cant seem to find anything that specifically nails down why this might happen. For those interested in the mail headers generated by a single mail() call, here is what I get (some data scrubbed out): ######################## Received: from crazycooter [67.110.67.194] by XXXXX.marketnet.com (SMTPD-9.10) id A208038C; Wed, 01 Aug 2007 12:25:28 -0500 Date: Wed, 01 Aug 2007 12:25:17 -0500 Subject: Subject To: YYYYY.ZZZZZ@MarketNet.com From: AAAAA.BBBBB@MarketNet.com Reply-To: AAAAA.BBBBB@MarketNet.com Message-Id: <200708011225863.SM03756@crazycooter> X-RCPT-TO: <YYYYY.ZZZZZ@MarketNet.com> Status: X-UIDL: 471469545 X-IMail-ThreadID: c208071f0000b881 ######################## Received: from crazycooter [67.110.67.194] by XXXXX.marketnet.com (SMTPD-9.10) id A2020370; Wed, 01 Aug 2007 12:25:22 -0500 Date: Wed, 01 Aug 2007 12:25:11 -0500 Subject: Subject To: YYYYY.ZZZZZ@MarketNet.com From: AAAAA.BBBBB@MarketNet.com Reply-To: AAAAA.BBBBB@MarketNet.com Message-Id: <200708011225800.SM02212@crazycooter> X-RCPT-TO: <YYYYY.ZZZZZ@MarketNet.com> Status: X-UIDL: 471469541 X-IMail-ThreadID: c20100e10000b872 #######################
View Replies !
Occasionally Get Duplicate Emails From Mail()
I'm trying to spam myself :- with 2,000 emails, shooting for 15,000, and I will occasionally get two identical emails. I'm putting a $counter++ as the from and part of the subject line so I can see what's going on. Any reason why this might happen? here's my code just in case.....
View Replies !
Mail() And Multipart/alternative Emails
I'm trying to use the PHP mail() function to send multipart/alternative emails - ie emails with plain text and html versions. I'm sure I have em formatted correctly; this is how it looks on the server before retrieval: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0059_01BEA6E2.1A467F40" ----=_NextPart_000_0059_01BEA6E2.1A467F40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit ..........
View Replies !
HTML/Plaintext Emails Using Mail()
We currently have a script that sends out renewal emails to our customers, currently these are Plaintext emails, but we want to jazz them up a little and have HTML emails. In the emails I receive from other companies, I notice it's possible to offer an alternative plaintext version in the same email. We managed to do this for our mailing list, using dada mailing list. I'm not sure how I'd do it using php though. The manual doesn't have any hints when I look at mail(). After looking at the source from some of my received emails, it appears that it's done in the constuction of the message.
View Replies !
|