phpmailer

how to send two different messages to two different users phpmailer

强颜欢笑 提交于 2019-12-07 07:34:05
问题 I am sending mails to two different persons, two different messages one for user and one for admin. $message1='hello user' $message2='hello admin' $email = 'user@email.com' $adminemail = 'admin@email.com'; require 'PHPMailerAutoload.php'; $mail = new PHPMailer(true); $mail->isHTML(); $mail->IsSMTP(); $mail->setFrom('admin@mysite.com', 'admin site'); $mail->AddAddress( $email); $mail->Subject = $subject; $mail->Body =$message1; $mail->Send(); //message for admin $mail->Body =$message2; //

phpmailer exchange server authentication

允我心安 提交于 2019-12-07 07:02:58
问题 My mail send code: $mail = new PHPMailer(true); $mail->IsSMTP(); try { $mail->Host = 192.168.205.19; $mail->Port = 25; $mail->SMTPDebug = 2; $mail->SMTPSecure = "tls"; $mail->SMTPAuth = true; $mail->Username = "mymailadress@mysite.com"; $mail->Password = "mypassword"; $mail->From = "mymailaddress@mysite.com"; $mail->FromName = "My Mail Address"; $mail->SetFrom("mymailaddress@mysite.cm", "My Mail Address"); $mail->AddAddress('toaddress@mysite.com'); $mail->Subject = "Test for subject"; $mail-

get raw rfc822 message from phpmailer

你。 提交于 2019-12-07 05:00:35
问题 I am trying to use google-api-php-client and gmail-api to allow my users to authenticate their gmail accounts and send emails through my website. I asked a more generic questions earlier and decided to seek help from the PHPMailer community with this question. I have used PHPMailer to send emails. And I want to know if I can extract the raw rfc822 message from my PHPMailer object after setting it up prior to sending. I should be able to then do a base64_encode on that string and set the "raw"

how to send emails to multiple addresses using phpmailer

爷,独闯天下 提交于 2019-12-07 03:41:31
I am trying to send emails to multiple email addresses using php mailer but its not working. I've tried explode the addresses but nothing seems to work. here is my code html: <input type="text" name="addresses" value="{$addresses}"/> current output in the input is test1@gmail.com,test2@gmail.com,test3@gmail.com, php to send email: /* Get Customer info*/ $sql = mysql_query("SELECT * FROM customer WHERE ID='$id' LIMIT 1"); $sql=mysql_fetch_array($sql); $fname=$sql['FIRST_NAME']; $lname=$sql['LAST_NAME']; $company=$sql['COMPANY']; $customer_email=$sql['EMAIL']; $email_addresses=$VAR['addresses'];

Gmail mark as spam email with html and anchor links

跟風遠走 提交于 2019-12-07 03:27:18
问题 first of all, sorry for my bad English =( I created an HTML email, send it to yahoo, hotmail and gmail, the first and the second work's ok, received in the front of the inbox, but, the gmail mark as spam, but it will mark it as span only with I send these HTML codes: <tr> <td colspan="2" style="padding:10px; border:2px solid #e3e3e3; text-align:center;"><a href="%%url%%" style="font-size:14px; text-decoration:none; color:#595959;"><span>Clique aqui e confira todas as informações e fotos dessa

PhpMailer not sending mails - TLS error?

痴心易碎 提交于 2019-12-07 03:10:51
问题 I have a problem sending emails with phpmailer . The code that sends emails is: $mail_User = "site@xxxxxxx.com"; $mail_Password = "My Password"; $mail_address = "site@xxxxxxx.com"; $mail_Name = "MyName"; $mail_Server = "222.222.222.222"; $mail_Port = 25; function SendHTMLMail($to, $cc, $bcc, $subject, $body) { global $mail_User, $mail_Password, $mail_address, $mail_Name, $mail_Server, $mail_Port; $correo = new PHPMailer; $correo->SMTPDebug = 3; // Enable verbose debug output $correo-

Deprecated: preg_replace(): The /e modifier is deprecated in phpmailer

跟風遠走 提交于 2019-12-07 03:02:15
问题 I am using class.phpmailer.php to send email from my local server, it's processing well in my local server with PHP version php5.3.4 but after I update PHP version to 5.5.4 it's showing the following message: Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in class.phpmailer.php` This is the line causing the error: $encoded = preg_replace('/([\000-\011\013\014\016-\037\075\077\137\177-\377])/e', "'='.sprintf('%02X', ord(stripslashes('\\1')))",

PHPMailer not sending CC or BCC

99封情书 提交于 2019-12-07 03:01:18
问题 I have been testing the following code for hours. The email will send to the addresses added through $mail->AddAddress() and in the received email it states the cc but the person cced does not receive the email. I have looked everywhere and can not find a solution to why this is happening. I have run tests and all variables are being submitted to this code properly. My server is running Linux Red Hat My Code: require_once('../smtp/class.phpmailer.php'); //include("class.smtp.php"); //

Connection Refused using PHPMailer with Namecheap Accounts

核能气质少年 提交于 2019-12-06 22:38:33
I have been using the code below to try to send emails out to people who sign up on my website however I can not get the code to work with my namecheap hosted email account. This namecheap email configuration was used but it seems to still give me an error. I have tried the same code with the hotmail settings and it works just fine. Error 2016-06-17 09:28:33 SMTP ERROR: Failed to connect to server: Connection refused (61) 2016-06-17 09:28:33 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Mailer: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer

SwiftMailer Connection could not be established with host smtp.mailgun.org [closed]

大兔子大兔子 提交于 2019-12-06 21:05:47
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . If i use $transport = Swift_SmtpTransport::newInstance('localhost', 25); then it's working fine but when i'm using this settings it's not working $transport = Swift_SmtpTransport::newInstance('smtp.mailgun.org', 465, 'ssl') ->setUsername('mailegun username') ->setPassword('mailgun password'); This problem is in "godaddy" and "bluehost" account but in localhost using xampp it's working fine <?php ini_set('display