Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

PHPMailer not showing error but not sending mail. See Code

the mail() function

Moderators: macek, egami, gesf

PHPMailer not showing error but not sending mail. See Code

Postby OlammieConcept » Mon Feb 04, 2013 1:11 am

I am trying to send mail using the PHPMailer classes with smtp, i was not getting any error but the mail isn't going. Please find below the code I used.

<?php
//require("class.phpmailer.php");
include "class.smtp.php";
include "class.phpmailer.php";

$Host = $_POST["smtpUrl"]; // SMTP servers
$Username = $_POST["smtpUsername"]; // SMTP password
$Password = $_POST["smtpPassword"];

$From = $_POST["fromEmail"];
$FromName = $_POST["from"];
$to = $_POST["to"];
$subject = $_POST["subject"];
$body = $_POST["boduu"];
$bcclist = $_POST["bcc"];


$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Mailer = "smtp"; // send via SMTP
$mail->Host = $Host;
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = $Username;
$mail->Password = $Password;

$mail->From = $From;
$mail->FromName = $FromName;


//Logic for the BCC mail will go here

$mail->WordWrap = 50; // set word wrap
$mail->Priority = 1;
$mail->IsHTML(true);
$mail->Subject = $subject;
$mail->Body = $body;
$mailer->AddAddress($to);

foreach($bcclist as $bccer)
{
$mail->AddBCC($bccer);
}

if(!$mail->Send())
{
echo "Mailer Error: " . $mail->ErrorInfo;
}
else
{
echo "The mail has been sent in HTML format. This is inbox confirmed.";
}

?>


I will appreciate any help provided by you in the house.

Thank You in advance.
OlammieConcept
New php-forum User
New php-forum User
 
Posts: 1
Joined: Mon Feb 04, 2013 12:59 am

cheapest Herve Leger on sale (17)

Postby griffis99 » Sun May 12, 2013 3:48 am

Article Submission Software that actually works? I was a little skeptical, and i have purchased plenty of aditional software and read that articles are definately the way to go to build traffic to my website. I had been writing articles, but really felt that this idea was a horrible one and the reality was that my articles would never get placed.
OH BOY WAS I SOOOOOO WRONG!!!
I had looked into different ideas, toyed around with a few article submission packages. I spent a bit of money on a package (that i will not name), but it was the most expensive package out there. I like the idea of unmanned instant article submission, but this package ended up mixing my information up in the search engines. For the most part it was ok, but on a few important sites i was disappointed that my ratings ended up not at my expectation.
So, i needed a manual submission process that wasn't so manual, and an automated submission process that wasn't so automated to where i could preview my submissions before they where submitted. I didn't want to actually have to type the information at every site, but i did want to be able to glance over the info to make sure that the information was correct.
So after looking around at the herve leger cap sleeve bandage dress software i found Article Submision Pro. This software gave me the best herve leger white strapless dress of both worlds automatic and herve leger allegro manual submission.
ARTICLE SUBMISSION WORKS!! - Yes it does!!! There isn't a choice whether you should or net a porter herve leger shouldn't submit articles. The choice you have to make is are you going to:
1.) Spend all your time searching and creating a way to submit your articles in a systematic fashion.
2.) Pay a directory and submission service company up to $50 per site to manually submit your articles.
3.) Make a purchase herve leger for max azria of a piece of software that can herve leger dress ebay submit the articles for you, the software i use is called Article Submission PRO, and i even used it to distribute this article that you are reading now. Free Traffic is the way to go.
If you are interested in Article Submission Pro - The website is http://www.articlesubmissionpro.net

Related articles:


cheapest Herve Leger on sale (47)
griffis99
New php-forum User
New php-forum User
 
Posts: 40
Joined: Mon Dec 17, 2012 12:41 am


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.