Phpmailer/smtp
my phpmailer script, which emails a cart confirmation to a customer, does not work every now and then. However, I've identified when this happens, and am guessing at the problem. At work, we have wireless connectivity, and the way they have their wireless setup, I can NOT send mail, via outlook, using my websites smtp server.
The wireless connection at work FORCES me to use their smtp server in order to send mail via outlook. And this is where i have problems with phpmailer. So is this because of the same reason? Is it because the phpmailer uses smtp and the isp that i am using here at work will not allow me to use another smtp other than theirs?
View Complete Forum Thread with Replies
Related Forum Messages:
PHPMailer And Remote SMTP
I'm using PHPMailer to send out emails and I want to use my ISP SMTP server to send those emails since where my website is hosted, it says 'Email sent on behalf of' in the message ... yes, it's a shared hosting. I'm using this code to send mails; PHP Code:
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 !
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 !
Class.phpmailer.php & Class.smtp.php ?
class.phpmailer.php & class.smtp.php ? Hi friend, anybody tried class.phpmailer.php & class.smtp.php to sendmail? I try to connect to mail.yahoo.com, not working. <?php require("class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); // set mailer to use SMTP $mail->Host = "smtp1.example.com;smtp2.example.com"; // specify main and backup server $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "jswan"; // SMTP username $mail->Password = "secret"; // SMTP password $mail->From = "from@..."; $mail->FromName = "Mailer"; $mail->AddAddress("josh@...", "Josh Adams"); $mail->AddAddress("ellen@..."); // name is optional $mail->AddReplyTo("info@...", "Information"); $mail->WordWrap = 50; // set word wrap to 50 characters $mail->AddAttachment("/var/tmp/file.tar.gz"); // add attachments $mail->AddAttachment("/tmp/image.jpg", "new.jpg"); // optional name $mail->IsHTML(true); // set email format to HTML $mail->Subject = "Here is the subject"; $mail->Body = "This is the HTML message body <b>in bold!</b>"; $mail->AltBody = "This is the body in plain text for non-HTML mail clients"; if(!$mail->Send()) { echo "Message could not be sent. <p>"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } echo "Message has been sent"; ?>
View Replies !
Phpmailer And CSS
i have recently tried using phpmailer to format HTML emails with complete success. However, i am trying to take it a step further by using style sheets. The php script i am using is a simple script that is gathering information from a form which then sends an email to a specific user using the POST method after hitting "submit". i was wondering how to attach a style sheet with the phpmailer class. I have tried searching the forum for info on this and havent had much luck.
View Replies !
Phpmailer And Ssl
I'm trying to send email with phpmailer class and ssl. I have configured phpmailer like here and I have this error: Code: warning: fsockopen() [function.fsockopen]: unable to connect to ssl://www.my_server.pl:465 (Connection timed out) in class.smtp.php on line 107. I can send email by outlook, my page is working on ssl, in php.ini I have removed ";" at extension=php_openssl.dll. what can be wrong?
View Replies !
Phpmailer
I am looking for a simple way to handle attachments of received mails as easy as phpmailer provides it for sending mails.
View Replies !
I Have Some Problems With Phpmailer....
My server has all the latest versions of everything installed, including phpmailer 1.71. So this should be a no-brainer, right? I downloaded a VERY nice simple mailing list script from webinsta.com. Installs easily, sets up quickly, up and running in no time.... but.... You KNEW there was a "but", right? Here's what happens. I have a choice of 3 mail servers: phpmail, sendmail, and smtp. smtp gives me fsockopen() errors no matter what I do. In trying to use either phpmail or sendmail (and after correcting the path to sendmail so it's right - that is, usr/sbin/sendmail), I get the following errors (I'm sending to the listed addys only - my own - for testing purposes): self@domain1.com gives no errors, message received just fine self@domain2.com gives no errors, message received just fine self@domain3.net produces 'unrouteable mail domain "domain3.net"' self@gmail.com produces 'unrouteable mail domain "gmail.com"' self@yahoo.com produces 'unrouteable mail domain "yahoo.com"' Note please that these are ALL valid, working email addresses for myself. Also please notice that the two mails I get just fine using either phpmail or sendmail are on the same "umbrella" server as they are being sent FROM. *sigh* Anyone have any ideas?
View Replies !
PHPMailer Issue
i'm using phpmailer, the variable that makes up the html body contains other variables. when one of these other variables contains more than 980 characters, it stops rendering. any ideas on what would cause this limitation? is it the mailer or might it be my code which basically prepends and appends html (a table images etc.) around a message body containing the other variables (like product info fields). any workarounds?
View Replies !
Using PhpMailer & HTML
I'm using the following line of php code and would like to incorporate a little HTML in order to get line breaks <brand bold headers <b></ bwhere I want. Anyone know how to make that happen? current: $mail->Body = ("From: $name, Area: $area, Issue: $issue"); would like to get something as follows: $mail->Body = ("<b>From:</b$name,<br><b>Area:</b> $area,<br><b>Issue:</b$issue");
View Replies !
Problem With PhpMailer
I have problem with phpMailer 1.73 (windows version) After copying both class.phpmailer and class.smtp and also language file phpmailer.lang-pl to my php include directory im getting this error when I'm trying to use phpMailer: Mailer Error: Language string failed to load: recipients_failed Does anyone know the reason for this error?
View Replies !
Phpmailer And Spam
I'm using phpmailer class (http://phpmailer.sourceforge.net) to send mails from my site, but i can't figure out why those mails are seen as spam by yahoo and hotmail. Gmail seems to look them better and allows them to stay in "inbox" folder. Are there any thing I can do about that?
View Replies !
PHPMailer On Behalf Of
Does anyone know how I can send an email using PHPMailer (or similar) and have it send 'on behalf of' someone. This is for a tell a friend feature on a website (I am trying to mimic the way that the BBC website does it as I believe this will help with the more strict spam filters). I know I could just send the email directly from our sites email address, but that would stop the recipient being able to reply to the friend sending the email. I hope that makes sense!
View Replies !
PhpMailer Error
I have problem with phpMailer 1.73 (windows version) After copying both class.phpmailer and class.smtp and also language file phpmailer.lang-pl to my php include directory im getting this error when I'm trying to use phpMailer: Mailer Error: Language string failed to load: recipients_failed Does anyone konw the reason for this error? Could you give a solution?
View Replies !
PHPMailer Question
Does anyone know if it is possible to configure PHPMailer so that instead of actually sending the message it writes its contents out to a file (i.e., including all the message headers, boundaries, etc.)?
View Replies !
Inbox And PHPmailer
i am using PHPmailer in my PHP project i try to send the messages in my script when some event happen by the user. until this all thing were ok the problem is ? the messages go to the junk mail , is there any way to enforce the messages to go to the INBOX in the client email ?
View Replies !
PHPMailer Class
Is anyone using phpmailer class from SourceForge and feeding the mailer from a DB? any problems that you know of? any security issue? I might give it a try but would like hearing about your experience before digging in it .
View Replies !
Using Latest PHPMailer
i am using latest PHPMailer and it sends emails fine but take a loot at this last part of the code mailer->send(); if(!mailer->send()) { echo"error": } so it sends the mail very fine but also echo error so how is that possible? I mean its good that is sendin the mails but i still wana check if there is error in sendin any of the emails in the loop so i mark in the DB who didnt recieve so i resend it or somethig.
View Replies !
PHPMailer Error?
I'm trying to send an email from my php page to my email addresss (gmail). When I run the page, I get this error. Mailer Error: Language string failed to load: recipients_failedadmin1sdasp@gmail.com Should I debug or just use swiftmailer?
View Replies !
Phpmailer And Send ID
I'm using phpmailer to send mails. This great class works properly when sending to one hotmail account (I mean not considered as spam). But when I use the AddBCC() method, all recipients get the mail into the spam directories of their hotmail account.
View Replies !
Phpmailer Outlook
I have a problem with using phpmailer and outlook. whenever i send a mail using the phpmailer class outlook filters it as junk unless i put the word 'test' somewhere in the subject line. I just cant understand why, the mail filters correctly in hotmail and gmail, just outlook (which i REALLY need to accept it) is being a pain.
View Replies !
PhpMailer :: Send Only CC
array of email addresses with phpmailer by doing this: $emails = array("email1", "email2", "email3", "email4", "email5", "email6", "email7", "email8", "email9", "email10"); $mail->AddBCC($emails); or do you have to add each email separately with AddBCC like: $mail->AddBCC($emails1); $mail->AddBCC($emails2); $mail->AddBCC($emails3; also, does the TO array need to be assigned? i basically only want to send an email with BCCs and nothing in the TO field. can this be done, or must i have something in the TO field.
View Replies !
Code Inside Phpmailer
I want to send people in my email database information that I have in there.Basically I am sending players in a hockey league player info through an email. I figured the easiest way to do this is by emailing them a table with the results of my database query in it. When I tried to do this using phpmailer I got very lost. Everything is fine except I'm not sure how to structure the code inside the $body variable so that it will show up in the email.Code:
View Replies !
Phpmailer Integration And Forms
I have a Dolphin script installed on a free host which blocked the sendmail function. I'd like to use the phpmailer with dolphin (with smtp) to allow users to retrieve lost passwords, report other users and so on. But I'm a complete noob. If none of you guys could do this, maybe you could provide me with an already made page containing the form and all the field. Normally it would be great if phpmailer could be used on all the dolphin's pages, but if too hard or impossible, I can use another page with the form where users could send to my email their registration email or name so I can send them the new password. One of this too I want to do. Now, if you want to take a look: -here is the page that sends lost passwords: http://www.cafebar.ro/forgot.php -the phpmailer is located here: www.cafebar.ro/phpmailer/ I guess this is it.
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 And A Auto Responder
how to setup or program a auto responder for my website form. Basically I have a flash website and a general form that is filled out and then posted to a php script and sends the info to a email address. What I would like to do is have the script send the information from the form to a email address and then automatically send that person an email back that says we are processing there information or whatever I decide. I am currently using phpmailer so not sure if this is hard to implement or not.
View Replies !
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 Replies !
PHPMailer - Parse Error
I have the class working and everything but i keep getting this error when i test the page Parse Error This is the code i am using to send the mail Code:
View Replies !
Phpmailer Language Class
I have been having problems with the phpmailer language class. When I use it to send out mass emails or to send out auto responses some of the emails do not send and it gives me this error message. If I am using it in a mass mailer the whole list wont send out. X-Powered-By: PHP/4.2.2 Content-type: text/html testMessage could not be sent. <p>Mailer Error: Language string failed to load: from_failedemailaddress@domain.com.
View Replies !
PhpMailer Email Returns
I've got phpMailer rigged up to send out to a mail list (so far of only around 10,000). I sent a mailout to around 3000 properly formed but known to be dead email addresses to test how returns work with my code. When i send out the mails i send each mail individually in order to personalise them. Now this all works fine. The problem is if i send out 3000 dead emails i can get up to 5000 returns a lot simply identical duplicates(sometimes up to 10 of the same mail come back) surely this isn't right? So the question is could phpMailer be responsible for this? I'm really desperate to sort this out but i've got no idea what could be causing this. Could it simply be that the people i send to servers are sending back 10 mails?
View Replies !
Array, Loops, PHPMailer
This is my problem, and i have searched alot of boards and seen alot of code but nothing that will work with what i want to do. My script will create an array of email addresses, it may get as large 5 or 10 thousand. How can i walk through this array getting 50 or 100 email addresses at a time (can someone show me code), and then send those 50 (by BCC) an email with either mail() or PHPMailer, then move on to the next 50 or 100 people in the array.
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 Corrupting Attached Files
I'm using PHP mailer to send a form. I need it to send as multipart/mixed, with the body having links in them. (Not an HTML email - but just clickable links in a text e-mail.) I also need to attach a PDF file to send. Now, I've gotten it to do everything I want in many ways, but every time I try to open the PDF file, it says it's corrupted, probably due to improper decoding. Here's what I have set for the mail part of the thing: require_once($_SERVER['DOCUMENT_ROOT'].'/config.php'); require_once($_SERVER['DOCUMENT_ROOT'].'/lib/MailClass.inc'); $mail = new FreakMailer(); $mail->IsSMTP(); $mail->From = "info@website.com"; $mail->FromName = "Company Name"; $mail->AddAddress($email,$name); $mail->AddBCC("info@website.com","Company Name"); $mail->AddReplyTo("info@website2.com","Company Name"); $mail->ContentType = "text/plain; charset=iso-8859-15"; $mail->Subject = "$subject"; $mail->Body = "$body"; $mail->AddStringAttachment($string,"filename.pdf"); $mail->Encoding = "base64"; $mail->Type = "application/pdf"; if(!$mail->Send()) { echo "Message was not sent <p>"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } Does the "filename.pdf" have to be the actual filename on the server? It's a nasty long name, and I thought I could "pretty it up" by calling it something else. But other than that, I don't know why it's coming in corrupted. By the way, it's on a Windows server.
View Replies !
Hey Need Help With PHPMailer And Checkbox Form Fields
I need to be able to send an attachment for each checkbox the user checks. like this: <input type="checkbox" name="file" value="bob.amr"> I need to have multiple checkboxes! and if they are checked the user gets an attachment for each? I am using the popular PHPMailer!
View Replies !
Phpmailer - Is It Possible To Have Replies To One Address, Bouncebacks To Another?
I have developed a php application for a client that uses the excellent class.phpmailer.php. However, the client has requested that when they get back bounce back emails from people in their database who no longer have the same address. They want these emails to bounce back to a different address? Is it possible to set this up and if so how would I do it? A bulk email is sent out to many people. If email bounce backs are received, they are sent to a particicular email address. If the people reply to the email, this is sent to another email address. Is the above possible and if so how?
View Replies !
Copy Class.phpmailer.php Into Your Php.ini Include_path.
I'm trying to install phpmailer because of its SMTP authentication purposes and i haven't had any luck authenticating any other ways. In the installation instructions it says to "Copy class.phpmailer.php into your php.ini include_path." How do first of all find my php.ini file and secondly how do i copy into it? (The site is hosted on a web server so i never understand when i hear to find the php.ini on your hard drive.).
View Replies !
Phpmailer Class Converted To Plain On Some Servers...
I am using a phpmailer class to send some forms over the email... And the problem is, that some ppl (especially problematic for me is the buyer....) getting the email as rough data (sorce...) here is the emal itself as they get it (the headers are below...) Code: X-Tour4Less.co.il Mailer: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_27976937fb6a931b3ed2d40aebd76a26" --b1_27976937fb6a931b3ed2d40aebd76a26 Content-Type: text/plain; charset = "windows-1255" Content-Transfer-Encoding: 8bit рйсйеп тбшйъ --b1_27976937fb6a931b3ed2d40aebd76a26 Content-Type: text/html; charset = "windows-1255" Content-Transfer-Encoding: 8bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<html> <head> and the rest of the email... and here is the headers... Code: ESMTP; 01 Sep 2006 12:11:23 -0000 Received: (qmail 32712 invoked from network); 1 Sep 2006 05:11:23 -0700 Received: from localhost (HELO http://www.tour4less.co.il) (127.0.0.1) by localhost with SMTP; 1 Sep 2006 05:11:23 -0700 Received: from phpmailer ([88.153.9.8]) by http://www.tour4less.co.il with HTTP (PHPMailer); Fri, 1 Sep 2006 05:11:23 -0700 Date: Fri, 1 Sep 2006 05:11:23 -0700 To: undisclosed-recipients:; From: "Tour4less.co.il" <########## // here was an email i delited... Subject: Contact Email from Tour4Less.co.il Message-ID: <27976937fb6a931b3ed2d40aebd76a26@www.tour4less.co. il> X-Priority: 3 X-Mailer: PHPMailer [version 1.71] X-Virus-Scanned: amavisd-new at sce.ac.il Return-Path: ############## // here was an email i delited... X-OriginalArrivalTime: 01 Sep 2006 12:11:02.0551 (UTC) FILETIME=[B168A270:01C6CDBF]
View Replies !
PHPMailer Debugging (Failed To Connect To Server)
I have a problem using PHPMailer. On my local development machine, the script works fine and sends emails. On amy staging server, when I try to use PHPMailer to send() I see the error: SMTP -> ERROR: Failed to connect to server: Permission denied (13) Can anyone think of why my staging server is preventing my connection...
View Replies !
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 !
Phpmailer.class Messages Are Been Converted To Plain Text...
I am using a phpmailer class to send some staff over the email... I am tring to send it with text/html but for some reason the email are been converted to plain and all the headers are shown, here is the email... X-Tour4Less.co.il Mailer: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_27976937fb6a931b3ed2d40aebd76a26" --b1_27976937fb6a931b3ed2d40aebd76a26 Content-Type: text/plain; charset = "windows-1255" Content-Transfer-Encoding: 8bit *יסיון עברית --b1_27976937fb6a931b3ed2d40aebd76a26 Content-Type: text/html; charset = "windows-1255" Content-Transfer-Encoding: 8bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<html> <head> <META HTTP-EQUIV="Content-Type" content="text/html; charset=windows-1255"</head<body<p dir=RTL><span lang=HE>שלום חברת Tour4less contact .</span></p<p dir=RTL><span lang=HE>משתמש של האתר שלנו </span><span dir=LTR>TOUR4LESS.CO.IL</span><span dir=RTL></span><span lang=HE><span dir=RTL></spanהתעניין ביצירת קשר איתו ע"י.........
View Replies !
PHPMailer: HT Avoid Error Msges Going Back To Wwwrun?
a friend was so kind to host my php scripts. but when they use phpmailer (or other PHP mail facilities) to email e.g. to an invalid address, the returning error message appears in *my friend's email inbox* (recipient - or sender? - is "wwwrun" of my friend's machine). I guess you understand which problem I mean. To fix the problem, I would like to understand what is going on here - in the mail header, i did set replyto, x-sender and from to *my* email address, but it doesnt help. so where must I change what to free my kind friend from this "spam"? Someone was so kind to post a solution for mail() recently. But now I have to use PHPMailer, but in its docu I couldn't find how to solve the problem...
View Replies !
Get PhpMailer To Return A Value For The Message-ID That Exim Assigns The Email That's Been Sent?
Is there any way to get PhpMailer to return a value for the Message-ID that Exim assigns the email that's been sent? I'd like to parse thru an Exim log to see if there were any errors in sending the email, and I need some method of matching the logfile up to what I've sent with PhpMailer. I could use the To: email address, but this doesn't really help if I've sent multiple emails to, I wouldn't know which specific email caused the bounce.
View Replies !
Attaching A File To Emailed Form Data - Phpmailer
I'm using phpmailer to send my form data to an email. I've used it before on various forms, however I've never had to attach a file in the past. Currently I'm working on a career/application form where the user will need to be able to attach their resume in either pdf, word or txt file. I have a few questions about this. how can I limit the size and type of file that the user is submitting? How do I get the file included in the email I'm sending with the rest of the form data? Do I have to somehow upload the file to server first and then attach it to the email? Or is there a way to send it directly from the users browser window when the form is submitted?
View Replies !
Help About POP/SMTP
I want to develop a mail interface for my client. Clinet will provide mail server and my php pages will get mails from that server and show to individual users please tell me what library should i use to enable POP/SMTP, as my web is AJAX based and i am using XOAD and NAJAX as development tool.
View Replies !
|