All In One Script
MENU

PHPMailer AddAddress()

by 4:10:00 AM
undefined
PHPMailer AddAddress() I don't know how the data should be formatted for AddAddress PHPMailer function; I need the email to be sent to multiple recipients so I tried $to = "me@domain.com,you@domain.net,she@domain.it"; $obj->AddAddress($to); but with no success. Any help will be appreciated. Solution: You need to call the AddAddress function once for each E-Mail address you want to send to. There are only two arguments for this function: recipient_email_address and recipient_name. The recipient name is optional and will not be used if not present. $mailer->AddAddress('recipient1@domain.com', 'First Name'); $mailer->AddAddress('recipient2@domain.com', 'Second

PHPMailer: SMTP Error: Could not connect to SMTP host

by 4:09:00 AM
undefined
PHPMailer: SMTP Error: Could not connect to SMTP host I've used PHPMailer on several projects but now I'm stuck. It gives me the error:SMTP Error: Could not connect to SMTP host.I've tried sending email from Thunderbird and it works ! But not through PHPMailer ... Here are the settings from Thunderbird: Server name: mail.exampleserver.comPort: 587Username: user@exampleserver.comSecure Authentication: NoConnection Security: STARTTLS I've compared these with the server at my last project where I used PHPMailer and they were: Server name: mail.exampleserver2.comPort: 465Username: user@exampleserver2.comSecure Authentication:

“SMTP Error: Could not authenticate” in PHPMailer

by 4:07:00 AM
undefined
“SMTP Error: Could not authenticate” in PHPMailer I'm Using PHPMailer in a Simple Script For Send Email's Through Gmail, And I'm Getting an "Unknown Error" (At least For me!):     SMTP Error: Could not authenticate. Error: SMTP Error: Could not authenticate.     SMTP server error: 5.7.1 Username and Password not accepted. Learn more at 535 5.7.1http://mail.google.com/support/bin/answer.py?answer=14257 p38sm2467302ybk.16 I've Read About Configure OpenSSL For SSL/TLS Connections, and i did it. Apache And PHP Are properly-Configured (With OpenSSL extension Running in PHP and mod_ssl

HTML mail with dyanmic values

by 4:04:00 AM
undefined
HTML mail with dyanmic values Here is what I need to do. I need to be able to dynamically generate custom emails. I have been using PHP's mail() function, but I have been encouraged to try phpmailer or Zendmail. But it doesn't seem to be able to handle custom emails. What I need to do is be able to grab values from the form and insert them into the body of the message. I've been doing: $message = '<html><body><p>First name: ' $first .

PhpMailer vs. SwiftMailer?

by 4:01:00 AM
undefined
PhpMailer vs. SwiftMailer? I'm building a fairly simple php script that will need to send some emails with attachments. I've found these 2 libraries to do this. Does either one have significant advantages over the other? Or should I just pick one at random and be done with it? Solution: I was going to say that PHPMailer is no longer developed, and Swift Mailer is. But when I googled ... https://github.com/PHPMailer/PHPMailer That suggests its being worked on again. I've used PHPMailer a lot,

How do you parse and process HTML/XML in PHP?

by 2:49:00 AM
undefined
How do you parse and process HTML/XML in PHP? How can one parse HTML/XML and extract information from it?         This is a General Reference question for the php tag Answer: Native XML Extensions I prefer using one of the native XML extensions since they come bundled with PHP, are usually faster than all the 3rd party libs and give me all the control I need over the markup. DOM The DOM extension allows you to operate on XML documents through the DOM API with PHP

SimpleTest vs PHPunit

by 4:43:00 AM
undefined
SimpleTest vs PHPunit I was wondering if anyone that have experience in both these stuff can shed some light on the significant difference between the two, if any? Any specific strength of each that makes it suitable for any specific case? Answer: This question is quite dated but as it is still getting traffic and answers I though I state my point here again even so I already did it on some other (newer) questions. I'm really really baffled that SimpleTest still is considered an alternative to phpunit. Maybe

Instagram