phpmailer

Emails showing up as 7 hours late despite server time being correctly set

Our server time is set correctly but our auto emails keep showing up as 7 hours late etc.? Am I missing something? We're using Google Apps for the mail server, where we've set the default timezone to EST. ...

PHP Mailer works on localhost (MAMP), but not on live site

I'm learning to make websites and I'm putting together a simple website for my parents business. I made a contact form and the message is just emailed to my parents' email. I just looked up a sample gmail php code to send mail and it works when I test it with MAMP, but when I upload it to the live site, I get this error: SMTP Error: Co...

"SMTP Error: Could not authenticate" in PHPMailer

Hi Everybody, 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.1 http://mail.goo...

PHP mailer with WordPress - how to pull admin email?

I'm trying to use a mailer in my WordPress theme, but I don't seem to be able to pull admin email from WordPress. I have a mailer.php file in my theme folder and tried using get_bloginfo('admin_email') function but it doesn't work. I'm a PHP newbie, but I'm guessing the mailer.php file isn't "connected" to WordPress installation. I trie...

PHPMailer - Double Opt In - Spam - Confirm script and multiple email addresses

Hi, I have written a script for my clients to generate a newsletter form, embed it on their website, collect email addresses and then email them using a php while and PHPMailer. Currently, the script uses a "double opt in" which sends an email from "[email protected]" to the subscriber to click on a confirm link that then go...

phpmailer can't add a reply to address

Hi, I am trying to add a reply to address to my php mailer and it just puts from "me" and replies to my address. Any ideas what I am doing wrong? I have added the $mail->AddReplyTo. I want it to reply to the sender of the web form. $name = $_POST['name']; $telephone = $_POST['telephone']; $email = $_POST['email']; $message = $_POST['...

Send Email from PHP Script.

I wrote some code to send an email from my PHP script using PHPMailer. For some reason, the scripts isn't sending the messages. Here Is My Code: <?php require_once("PHPMailer/class.phpmailer.php"); $mail=new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Host = "ssl://smtp.gmail.com"; $mail->Port = 465; $mail->Username ...

PHPMailer SMTP Error 550

I'm using PHPMailer to send email via SMTP on a shared server (my hosting service is Softsys). Email is being sent fine to email addresses on the same server (i.e. the @ domain is my webdomain). However, when I try to change the recipient to @gmail (or any external address) I get the following error log: SMTP -> get_lines(): $data was "...

TextArea line breaks for e-mail

How can I take the text from a textarea (html) and insert line breaks. Right now, if I input info to send out as an e-mail, it puts all the text on the same line without any line breaks. Using $_POST['field'] to get the data from the form and sending using PHP mail. ...

Swiftmailer subject and weird whitespace problem

Hey When sending a message with swiftmailer or SmtpMailer, the subject has a weird whitespace. The subject should look like this: "Newsletter October 2010 - Hello everyone" But looks like this: "Newsletter October 2010 - Hello everyo ne" The whitespace always comes up the same place. PHPmailer does not have the whitespace, but we ...