PHPMailer Vs Mail() Function
I am developing a simple mailing system. This requires sending emails in HTML format to one or more recipient. I am currently using PHP's mail() function. It works alright but it doesn't seem reliable. I am not able to send email to my hotmail account but it does send to yahoo account. I'm not sure if there is something about hotmail that blocks
emails for some unknown reason. If it goes to yahoo, it must go to hotmail. it doesn't even appear on junk mail section of hotmail. so i'm thining if I use PHPMailer, will it solve this issue? what are your thoughts?
View Complete Forum Thread with Replies
Related Forum Messages:
Sending Email - Mail() Function Or Phpmailer
sending email in hebrew using either the mail() function or phpmailer will result in sending gibberish. how do I fix this? I tried setting the headers to support UTF-8 and windows-1255 and nothing worked. the encoding of the document im sending the email from is ANSI. how do I fix this? I also tried converting the string to utf8 using utf8_encode.
View Replies !
Bulk Mail With PHPMailer?
Is it safe to use PHPMailer to send bulk mail? If so, how do i know it will not time out? Should i be using the phpMassMailer class? How do i know that that one will not time out? I am using my localhost godaddy dedicated SMTP server to send out mail, and only a couple will go through at a time. I have to wait about an hour for the rest to send. Is there another SMTP server i should be using?
View Replies !
PHPMailer SMTP Mail
I am trying to send emails via a PHP script and I am trying to avoid the spam filters. I have used the mail() function which seems to be the worst of all solutions. I have tried SMTP emailing via PHPMailer, and some address wont receive the emails, and 1/10 hotmail attempts will get through, the rest wont even appeaer in the junk folder. All the email contains is SUBJECT: "Linxsmart Document" BODY: " Hello <<Dynamic Name>>,
View Replies !
Sending Mail Using Phpmailer
I am using gmail smptp to send mail using phpmailer and I am getting following error. Message was not sent Mailer Error: The following From address failed: example.com. My code is as follwos: PHP Code: <?php require_once "c:/phpmailer/class.phpmailer.php"; require_once "c:/phpmailer/class.smtp.php"; $mail = new PHPMailer(); $mail->SetLanguage('en','c:/phpmailer/language/'); $mail->PluginDir = "c:/phpmailer/"; $mail->IsSMTP();.                         Â
View Replies !
PHPmailer - SMTP Vs Mail & Time Out
I am trying to send out 50,000 + emails through PHPmailer. I am using the $mail->Send();. Is it better to use SMTP so my server won't get blocked for spam? Is SMTP better for the server resources, it's a lot of HTML mail going out? The PHPmailer program does not seem to be sending out all the emails and it seems to time out. Is this due to the max_execution_time in the php configuration? Or has anyone used the PHPmailer to send out over 100,000+ emails? Our email list is growing and I need to make sure all emails are going out.
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 !
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 !
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 !
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 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 !
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 !
Warning: Mail() [function.mail]: "sendmail_from" Not Set In Php.ini Or Custom "From:" Header Missing
I created a form to send feedback and i get the following error, what does that mean and how to fix it. Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in c:wampwwwphp websitephp and mysqlpractice fileschapter 4 - string manipulation and regular expressionsprocessfeedback.php on line 11 The code is as follows: <? $name=$_POST['name']; $email=$_POST['email']; $feedback=$_POST['mailcontent']; $toaddress="viraj_hoober@yahoo.com"; $subject="Feedback from web site"; $mailcontent="Customer name: " . $name . " " . "Customer email: " . $email . " " . "Customer comments: " . $feedback . " "; $fromaddress="viraj2401@yahoo.com"; mail($toaddress, $subject, $mailcontent, $fromaddress); ?>
View Replies !
BCC For Mail Function
I am using the following code for sending email to users that are stored in my database. The code works fine but when it sends the mail out it does not send blind carbon copies of the email addresses. In other words all mail receivers see each others email addresses. I have been through the php manual and searched on devshed forum to find no reference on my question. <? // First make connection to the server $con=mysql_connect('localhost','username','password'); // Make connection to the database mysql_select_db('databasename',$con) or die( "Unable to select database"); $sql = "SELECT email FROM contact"; $result = mysql_query($sql); $to=""; while ($myrow = mysql_fetch_array($result)) { $to.=($myrow["email"].","); } mail("$to","$subject","$message","$from"); echo "$to"; echo "The results have been sent"; ?>
View Replies !
Mail Function In Php
could anyone help me in sending mails along with attachment using php. i am using mail function, also used class MimeMail() defined in wrox professional php. simple mail function is working, but with attachment mail is not sent.
View Replies !
Mail () Function
I am trying to get the mail () function to work so that when someone fills in a form and hits the submit button it takes them to another page which confirms their submission and in the background sends them an email confirmation. The script I have put in seems OK (ie no error messages come up) but how do you actually get the mail to send. Does it need to go through the sendmail programme on the server? If so, how? If now, what?!
View Replies !
Using Mail() Function!
When I send an email to any Hotmail account it goes directory to the Junk Email! My website is in a dedicated server using: Linux 2.4.21, Apa*che, PHP, MySQL I'm using the following function to send my emails: ============================== <? function SendEmail($veFmName, $veFmEmail, $veToName, $veToEmail, $veSubj, $veBody) { $bound="----=_NextPart_000_" . uniqid(rand()); $message = "This is a multi-part message in MIME format. "; // text $message .= "--$bound "; $message .= "Content-Type: text/plain; charset="windows-1256" "; $message .= "Content-Transfer-Encoding: base64 "; $message .= "This is an HTML email." . " "; // html $message .= "--$bound "; $message .= "Content-Type: text/html; charset="windows-1256" "; $message .= "Content-Transfer-Encoding: quoted-printable "; $message .= $veBody; $message .= " --$bound--"; $varHeader = "From: $veFmName <$veFmEmail> "; $varHeader .= "Return-Path: $veFmEmail "; $varHeader .= "MIME-Version: 1.0 "; $varHeader .= "Content-Type: multipart/alternative; boundary="$bound" "; //$varHeader .= "X-Mailer: PHP Mailer "; $varHeader .= "X-Mailer: Microsoft Office Outlook, Build 11.0.6353 "; $varHeader .= "X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 "; $varHeader .= $message; return mail($veToEmail, $veSubj, "", $varHeader, "-f" . $veFmEmail); } // this is an example to use this function: $varTitle = "Message Title Here"; $varBody = "The HTML body goes here."; SendEmail("Sender Name", "MyName@MyDomain.com", "", "AnyEmail@hotmail.com", $varTitle, $varBody); ?> ==============================
View Replies !
How To Use Mail Function
i want to send mail using php on windows ,i had read the mail() ,but it is not working ,a waring of "unable to relay you@your.com " is coming ,.is i need to set smtp,sendmail_from parameter in php.ini file ,if yes pls tell meto what i should set them.
View Replies !
Using Mail Function
I'm having problem with using the mail() function. On the form, I have two radio buttons. One for Yes and One for No. If I select the No radio button and click submit then the mail insn't going anywhere. But if I select Yes on the radio button then I do receive the email. PHP Code:
View Replies !
URL In Mail Function
I am sending the HTML content using mimemail through PHP mail function. its not going. its working fine if i remove the URL and image from the mesage . HTML content goes fine....
View Replies !
Mail() Function Help!
The below is just to get myself going but I can't seem to get it working... is there something else I should be doing? I checked phpinfo() and the sendmail values are below. Those mean it's turn on right? sendmail_from me@localhost.com sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i My code is as follows:
View Replies !
Use Mail(); Function
I have 1 free host and 1 paid host. I have to use the free to hos my website but the free dont let me tu use mail(); function. So I would like to use the mail(); function of the paid one ( I cant use to host my web for some others reasons ). I was reading about Web services, and I checked the conf of the servers so I decided to use xml-rpc but when I try to execute my code it shows this error msg: Fatal error: Class 'xmlrpcmsg' not found in /www/newsit.es/x/e/v/xevic/htdocs/xmlrpc-client.php on line 7
View Replies !
Mail() Function - From
I have a form whcich sends me an email on submit. However, it says its from 'Nobdy' in my Gmail account. How do i change this to something else like from "My Site"
View Replies !
Mail( ) Function
I created a web page and upon completion and hitting a submit button, the information is gathered up and sent out in an e-mail using the mail( ) function. We have been having recent problems with the e-mails not being sent even though the mail( ) function returns true. I have the mail( ) call in a while-loop so it keeps trying until mail( ) returns true. Has anybody else had a problem with the mail( ) function not always sending the e-mails? Is there a better, safer way to send e-mail through PHP or maybe even Javascript that I should try to use to more reliably have the e-mails sent?
View Replies !
|