-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hay I'm using PHPMailer to send some simple emails, however the function SetFrom() doesn't seem to work, even though the code I'm using is straight from phpmails docs (http://phpmailer.worxware.com/index.php?pg=examplebmail)
Here my error
Call to undefined method PHPMailer::SetFrom()
and my script
require_once('inc/phpmailer/class…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Well, so far, I have been using php built in function, mail(), and I have no problems with it, even I sent a blast to 1000+ users. But then, lately I found this phpmailer, which is specially design to send email.
Q1: Should I change to this phpmailer?
Q2: What are the advantages of using phpmailer…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to send emails from my server by a PHP script. I used to send it by a native php function mail and everything worked OK. Here's the code I used:
$to = $sMail;<br>
$subject = $sSubject;<br>
$message = $sMessage;
$headers = 'From: [email protected]' . "\r\n";<br>
$headers…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I'm trying to send out mail using Google's SMTP in combination with PHPMailer, but I can't get it to work. This is my code:
$mail->IsSMTP();
$mail->Host = "smtp.gmail.com";
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Username = "[email protected]";
$mail->Password…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am using the following code to send mail to a smtp server .
<?php
// example on using PHPMailer with GMAIL
include("PHPMailer/class.phpmailer.php");
include("PHPMailer/class.smtp.php"); // note, this is optional - gets called from main class if not already loaded
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth…
>>> More