A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.
Current location:homephp forumphp talk in 2009 yearHow to get user mails in my free gmail inbox through contact us form on my website - page 1
User InfoPosts
How to get user mails in my free gmail inbox through contact us form on my website#1
How to get user mails in my free gmail inbox through contact us form on my website. I do not use email with my website name . i use free gmail. I tried many script but the all need email account on domain.

posted date: 2009-04-16 00:41:00


Re: How to get user mails in my free gmail inbox through contact us form on my website#2
I had made out the solution of this problem. click to view my topic...

hope that hepls.

posted date: 2009-04-16 00:41:01


Re: How to get user mails in my free gmail inbox through contact us form on my website#3
Basically, it involves the PHP mail() function:<?php mail(yourGmailAddress, object, message); ?>As you have already observed, this solution works only if the webserver operates a mail server. This mail server may forbid unknown users. So you need to have an email account on that web/mail server (I believe this is the case). The second step then is to forward mail from your website address to you gmail account. I am 90% certain that it is possible from your gmail configuration. It may also be possible from your website mail configuration. But don(t configure both!

posted date: 2009-04-16 00:53:00


Re: How to get user mails in my free gmail inbox through contact us form on my website#4
'I tried many script but the all need email account on domain' ???

posted date: 2009-04-16 01:06:00


Re: How to get user mails in my free gmail inbox through contact us form on my website#5
You can also put your email address into "action" attribute of the form element. But that(s very unreliable. Like this:<form method=(post( action=(mailto:your@email.com?Subject=Hello(>...</form>Users must have email client installed and configured for this to work properly. There are some other drawbacks. You have to do some research to find whether this method is for you or not.http://www.google.com/search?client=opera&rls=en&q=form+action+mailto&sourceid=opera&ie=utf-8&oe=utf-8

posted date: 2009-04-16 01:08:00


Re: How to get user mails in my free gmail inbox through contact us form on my website#6
Could you provide some info on your hosting solution (provate server? shared hosting? PHP? only static HTML?). What kind of script did you try?

posted date: 2009-04-16 01:25:00


Re: How to get user mails in my free gmail inbox through contact us form on my website#7
Does this question have something to do with This One?Well, so you have a form on your site, your users fill it up and you need an email with that data, right?Simple example:<form action="sendMail.php" method="post"> Name: <input type="text" name="name" id="name" /><br /> Email: <input type="text" name="email" id="email" /><br /> Text: <textarea name="text"></textarea><br /> <input type="submit" value="Send" /></form>then, the php page wich send the mail://php sendThis.php page<?phprequire("class.phpmailer.php");$name = $_POST[(name(];$email = $_POST[(email(];$text = $name . (, ( . $email . ( has filled the form with the text:<br />( . $_POST[(text(];$from = (your.email@gmail.com(;$to = (your.email@gmail.com(;$gmailPass = (your gmail password(;$mail = new PHPMailer();$mail->IsSMTP();// enable SMTP authentication$mail->SMTPAuth = true;// sets the prefix to the server$mail->SMTPSecure = "ssl";// sets GMAIL as the SMTP server$mail->Host = (smtp.gmail.com(;// set the SMTP port$mail->Port = (465(;// GMAIL username$mail->Username = $from;// GMAIL password$mail->Password = $gmailPass;$mail->From = $from;$mail->FromName = $from;$mail->AddReplyTo($from, $from);$mail->Subject = (This is a test!(;$mail->Body = $text;$mail->MsgHTML($text);$mail->IsHTML(true);$mail->AddAddress($to, $to);if(!$mail->Send()){ echo $mail->ErrorInfo;}else{ echo (sent!(; $mail->ClearAddresses(); $mail->ClearAttachments();}?>EDIT: just tested and works fine. Make sure that the 3 files (class.phpmailer.php, class.pop3.php and class.smtp.php) are in the correct include path

posted date: 2009-04-16 01:37:00


Re: How to get user mails in my free gmail inbox through contact us form on my website#8
when i tried this i got this error Warning: stream_socket_enable_crypto() [streams.crypto]: this stream does not support SSL/crypto in /home/jitu/public_html/mailer/phpMailer/class.smtp.php on line 194

posted date: 2009-04-16 03:42:00


Re: How to get user mails in my free gmail inbox through contact us form on my website#9
read this too lizjamieson.co.uk/2008/09/01/…

posted date: 2009-04-16 03:45:00


Re: How to get user mails in my free gmail inbox through contact us form on my website#10
Dont know, probably is a hosting problem (restriction). I just tried on a 10€/year hosting and it works fine.. i edit my answer with the working one.

posted date: 2009-04-16 04:33:00


Re: How to get user mails in my free gmail inbox through contact us form on my website#11
is here 2 different email address needed: $from = 'your.email@gmail.com'; $to = 'your.email@gmail.com';

posted date: 2009-04-16 04:57:00


Re: How to get user mails in my free gmail inbox through contact us form on my website#12
i got this error now Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.gmail.com:465 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /home/jitu/public_html/mailer/phpMailer/class.smtp.php on line 122 SMTP Error: Could not

posted date: 2009-04-16 05:26:00


select page: « 1 2 »
Copyright ©2008-2017 www.momige.com, all rights reserved.