$mailer->Username = 'email@example.com'; // Change this to your gmail adress
$mailer->Password = '123456'; // Change this to your gmail password
$mailer->From = $nameMail; // This HAVE TO be your gmail adress
$mailer->FromName = $name; // This is the from name in the email, you can put anything you like here
$mailer->Body = $body ;
$mailer->Subject = $sub;
$mailer->AddAddress($address); // This is where you put the email adress of the person you want to mail
echo "Message was not sent<br/ >";
echo "Mailer Error: " . $mailer->ErrorInfo;
echo "Message has been sent";
ofcourse there are the phpmailer class and the smtp class within the same folder .
as i said .. it was working before a short period of time .. but now it is not .
Look here for the Gmail example: http://phpmailer.worxware.com/index.php?pg=examplebgmail
And here: http://phpmailer.worxware.com/index.php?pg=exampleagmail
Also Gmail settings: http://mail.google.com/support/bin/answer.py?answer=78799
Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.
Popularity Can Be Measured
Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients. This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing.
Set up your basic HTML file. Open your form tag and set the method and action attributes.:
Set up your first few inputs one for the name and …