phpmailer

Read confirmation with PHPMAILER

依然范特西╮ 提交于 2019-12-10 22:09:03
问题 I try to return a reading confirmation when send an email with PHPMAILER but it doesn't works :( I tried these options : Construction of the object: $mail = new PHPMailer; $mail->CharSet = 'UTF-8'; $mail->From = 'prenom.nom@mail.com'; $mail->FromName = 'Nom Prénom'; $mail->addAddress($Desti); $mail->addCC($CC); $mail->addBCC($BCC); $mail->isHTML(true); $mail->Subject = 'MON SUJET'; $mail->Body = $MonTexteMail; first solution : $mail->AddCustomHeader( 'X-pmrqc: 1' ); $mail->AddCustomHeader( "X

phpmailer noname attachment

本小妞迷上赌 提交于 2019-12-10 19:09:09
问题 I'm using phpmailer to send email. But all of my emails are send with noname attachement. I already checked if variables are set before I use addAttachemnt function and they are. It looks like this: $fname = $_FILES['file']['name']; $fTmpName = $_FILES['file']['tmp_name']; $mail = new PHPMailer(); $mail->From = "mymail@mymail.com"; $mail->FromName = "mymail.com"; //moje meno $mail->IsHTML(true); $mail->IsSMTP(); $mail->Host = "smtp.mymail.com"; $mail->Subject = "Subject"; $mail->AddAddress(

Error while trying to get access to google.com for my local web application

别等时光非礼了梦想. 提交于 2019-12-10 19:06:05
问题 I hope someone of you can give me some helpful instructions about this problem! I'm getting mad! The fact is this: I would like to send emails by my local web application using Google SMTP. I created a .json file in the root folder of my application like this: { "require": { "phpmailer/phpmailer": "^5.2", "league/oauth2-client": "^1.0" }} In order to download and install by compiler the PHPMailer and the oauth2client that is needed. Then I created a new project in the google developer console

PHPMailer SMTP connection error

扶醉桌前 提交于 2019-12-10 18:12:36
问题 I've been trying to figure out how to get phpMailer to work for the last few hours. I keep getting errors. Here is my code: <?php $name = $_REQUEST['name'] ; $email = $_REQUEST['email'] ; $message = $_REQUEST['message'] ; require("class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); // send via SMTP $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "******@gmail.com"; // SMTP username $mail->Password = "******"; // SMTP password $host = "smtp.mandrillapp.com

Sending mail with PHPMailer through proxy?

半腔热情 提交于 2019-12-10 16:28:42
问题 I am trying to send an e-mail with PHPMailer through a SMTP proxy but am not able to find a field or function in PHPMailer to allow me to do this. Maybe you can help me out? If PHPMailer doesn't have support for this maybe you can recommend me a free mailer program which does? Thank you 回答1: There's no such thing as an SMTP proxy - only port forwarders (sometimes refered to as Null mailers) and SMTP relays. It is possible to route arbitrary ports/protocols through HTTP and SOCKS proxies - but

How to send to BCC address when using PHPMailer to format MIME message for Gmail API?

徘徊边缘 提交于 2019-12-10 15:57:04
问题 I am using PHPMailer to build an email message. I am using PHPMailer only for MIME message formatting, not sending. I then extract the raw message from the PHPMailer object before passing it on to the Gmail API for processing. //Create a new PHPMailer instance $mail = new PHPMailer; //Tell PHPMailer to use SMTP $mail->isSMTP(); $mail->IsHTML(true); //Disable SMTP debugging // 0 = off (for production use) $mail->SMTPDebug = 0; //Set who the message is to be sent from $mail->setFrom(

PHPMailer Invalid address

寵の児 提交于 2019-12-10 15:56:21
问题 I want to send a mail with PHPMailer. I use this code, but I got this error : Invalid address: example@gmail.com (I use fake addresses for StackOverflow. I use a real address in my real code.) <?php $from = "My Name"; $mail = "example@gmail.com"; require_once('./class.phpmailer.php'); $bodytext = " <html> <head> <title>title</title> </head> <body> <h1 style='text-align:center'>Some text</h1> <p>more text. Here's a name : $from</p> </body> </html> "; try { $email = new PHPMailer(true); $email-

PHPMailer - this stream does not support SSL/crypto

╄→гoц情女王★ 提交于 2019-12-10 15:08:44
问题 I'm trying to get PHPMailer working and keep getting this error: PHP Warning: stream_socket_enable_crypto(): this stream does not support SSL/crypto in /usr/share/php5/class.smtp.php on line 274 I've seen a few posts where people have fixed the problem by uncommenting this: extension=php_openssl.dll which I have done - and restarted apache. Any ideas? Here is the php example code I am using: Running php 5.3.17 and Apache 2.2.22 on OpenSuse 12.3 <?php require_once('class.phpmailer.php');

Multiple attachments through phpmailer

这一生的挚爱 提交于 2019-12-10 13:14:45
问题 I am using php mailer class to send multiple attachment mails. Two error are coming my way: First these two lines apear when email is sended, these errors are from class.phpmailer.php: Deprecated: Function set_magic_quotes_runtime() is deprecated in /var/www/dev01/maiarn/class.phpmailer.php on line 1471 Deprecated: Function set_magic_quotes_runtime() is deprecated in /var/www/dev01/maiarn/class.phpmailer.php on line 1475 Message has been sent. Second The email is sent with only one attachment

PHPmailer multiple recipients error

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 12:23:04
问题 I have the following code with PHPmailer: $tomailn[0] = 'imap2@gazler.com'; $tomailn[1] = 'imap@gazler.com'; foreach($tomailn as $value) { $mail->AddAddress($value, ''); } But I am getting the error 'Could not instantiate mail function'. If I remove an item from the array it works fine, but gives an error on when trying to add 2 or more addresses. Any ideas why this is happening? Is there a different way to add multiple e-mail addresses? Cheers, Gazler. 回答1: Dig into the source code. Edit