Link to home
Start Free TrialLog in
Avatar of canfote5
canfote5

asked on

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!!!!
ASKER CERTIFIED SOLUTION
Avatar of nplib
nplib
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you could also look into this

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

its like phpmailer, but it's specifically for gmail
Avatar of canfote5
canfote5

ASKER

my man, I think you are on a good track.
do you have an yahoo id so we can chat? hotmail or something?
jrooks@newmarketpl.ca
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>";
post code,

if you are using SMTP,
you don't use mail() that is a different function entirely.
what do I use then?
can you modify what I sent you for me?
post code, I will modify.
<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>