Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1411
  • Last Modified:

phpmailer with smtp connection, help please

I'm very stupid :( . Just wanted to point that out :)
1.I have a form ( contact form ) and I have a free website with no smtp or sendmail.
2.I have a gmail account and a btinternet. Both with SMTP ( only that gmail uses SSL and btinternet does not ).
question!!!!
how the heck to I for the phpmailer so that when they contact me the phpmailer can connect to my gmail or to my btinternet smtp and send me the email.

PLEASE HELP ME!!!!
0
canfote5
Asked:
canfote5
  • 5
  • 4
1 Solution
 
nplibCommented:
Assuming the following variable was used to initialize your PHPmailer()
$mail = new PHPMailer();

$mail->IsSMTP();
$mail->Host = "smtp.gmail.com"; or $mail->Host = "ssl://smtp.gmail.com";
$mail->SMTPAuth = true;
$mail->Username = "your@gmail.com";
$mail->Password = "yourgmailpassword";

Since gmail uses SSL in the newest build of phpmailer that should work.

Let me know.
0
 
nplibCommented:
you could also look into this

http://www.klenwell.net/is/PhpGmailMailer

its like phpmailer, but it's specifically for gmail
0
 
canfote5Author Commented:
my man, I think you are on a good track.
do you have an yahoo id so we can chat? hotmail or something?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
nplibCommented:
jrooks@newmarketpl.ca
0
 
canfote5Author Commented:
where d I put that?

$mailto = $_POST['emailto'];

mail($mail0, "question", $body, "From: user@gmail.com \r\nReply-To: \r\nContent-Type: text/html; charset=iso-8859-1");
echo "<TD>SENT MAIL</TD>";
0
 
nplibCommented:
post code,

if you are using SMTP,
you don't use mail() that is a different function entirely.
0
 
canfote5Author Commented:
what do I use then?
can you modify what I sent you for me?
0
 
nplibCommented:
post code, I will modify.
0
 
canfote5Author Commented:
<form method="post" action="phpmailer.php" name="1"><input type="text" name="mail0" value=""><br><input type="text" name="question" value=""><br><input type="txt" name="body" value=""><br><input type=submit name=submit value=subscribe></form>
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now