Jaap Krijger Posted September 11, 2007 Share Posted September 11, 2007 Hi, I've been looking for a script which i can use to send entered data from a form on my website to the email address on my domain. I wanted to use my gmail address to send the mail to me after the user clicks no the submit button. I've seen plenty of scripts but none seem to be working ??? I've just started with html scripts, everything else seems to be working but this thing is defeating me.... Quote Link to comment https://forums.phpfreaks.com/topic/68919-sending-email-from-webpage-using-gmail-or-other-third-party-server/ Share on other sites More sharing options...
liebs19 Posted September 11, 2007 Share Posted September 11, 2007 http://www.php.net/manual/en/function.mail.php Check out the examples there. You just put your e-mail address as the To address. Quote Link to comment https://forums.phpfreaks.com/topic/68919-sending-email-from-webpage-using-gmail-or-other-third-party-server/#findComment-346428 Share on other sites More sharing options...
Jaap Krijger Posted September 11, 2007 Author Share Posted September 11, 2007 Thanks for the quick response What I see on that link is the mail() function in varios forms. That only seems to work if there is some form of mail-software on the server. when I use it I get 'mail sent' but nothing happens. I've seen phpgmailer and downloaded it, never got it to work and can't trace my steps back to that site. it came with a script which i had to copy paste and i lost that script. I had the feeling that it had a simple typo... Quote Link to comment https://forums.phpfreaks.com/topic/68919-sending-email-from-webpage-using-gmail-or-other-third-party-server/#findComment-346435 Share on other sites More sharing options...
liebs19 Posted September 11, 2007 Share Posted September 11, 2007 I think the mail() function is part of php. You need to have it enabled on your server, however. Quote Link to comment https://forums.phpfreaks.com/topic/68919-sending-email-from-webpage-using-gmail-or-other-third-party-server/#findComment-346450 Share on other sites More sharing options...
Jaap Krijger Posted September 11, 2007 Author Share Posted September 11, 2007 Was afraid of that, is there any software I can download onto my domain to enable the sending of mail? Quote Link to comment https://forums.phpfreaks.com/topic/68919-sending-email-from-webpage-using-gmail-or-other-third-party-server/#findComment-346451 Share on other sites More sharing options...
liebs19 Posted September 11, 2007 Share Posted September 11, 2007 I am not aware of any email programs that you can use that do not involve installing something on the server. The server does the work, not your site. Did you try using phpinfo(); to see if mail is enabled or not? Then you will at least know if your function is failing because it is disabled. I believe you can see if mail is enabled through that. (tho i could be wrong ) Quote Link to comment https://forums.phpfreaks.com/topic/68919-sending-email-from-webpage-using-gmail-or-other-third-party-server/#findComment-346461 Share on other sites More sharing options...
Jaap Krijger Posted September 12, 2007 Author Share Posted September 12, 2007 Am not sure how to use the php info() can't find a write-up on that Quote Link to comment https://forums.phpfreaks.com/topic/68919-sending-email-from-webpage-using-gmail-or-other-third-party-server/#findComment-346833 Share on other sites More sharing options...
xyn Posted September 12, 2007 Share Posted September 12, 2007 <? phpinfo(); ?> Quote Link to comment https://forums.phpfreaks.com/topic/68919-sending-email-from-webpage-using-gmail-or-other-third-party-server/#findComment-346839 Share on other sites More sharing options...
sayedsohail Posted September 12, 2007 Share Posted September 12, 2007 I posted this steps on this website and the mailer class is available from this website. http://www.vulgarisoip.com/2006/10/13/update-send-email-with-php-and-gmail-hosted-for-your-domain/ Here are few steps make sure you performed this before scratching your head? Php.ini 1) Specify your php extension folder probably on line 524. extension_dir =”C:\Program Files\PHP\ext” or of your choice. 2) uncomment ;extension=php_openssl.dll probably on line 668. 3) and make sure you copied (php_openssl.dll) under this directory. extension_dir =”C:\Program Files\PHP\ext” or of your choice from above.(1) 4) restart apache 5) open command prompt (CMD) and type php -v, see if it says any missing files, copy those missing files into the ext folder. Hope this helps., regards Sohail Quote Link to comment https://forums.phpfreaks.com/topic/68919-sending-email-from-webpage-using-gmail-or-other-third-party-server/#findComment-346861 Share on other sites More sharing options...
Jaap Krijger Posted September 13, 2007 Author Share Posted September 13, 2007 Hi, the PHP info() gives me a very long list of information , where do I see whether mail is enabled? the phpgmailer gives me the script in text as response. Is that script written for sending emails from a machine or for a webpage to submit user-entered data? Quote Link to comment https://forums.phpfreaks.com/topic/68919-sending-email-from-webpage-using-gmail-or-other-third-party-server/#findComment-347540 Share on other sites More sharing options...
Jaap Krijger Posted September 13, 2007 Author Share Posted September 13, 2007 Hi, I've tried this but have a problem, I can access the ini file. Rg, Jaap I posted this steps on this website and the mailer class is available from this website. http://www.vulgarisoip.com/2006/10/13/update-send-email-with-php-and-gmail-hosted-for-your-domain/ Here are few steps make sure you performed this before scratching your head? Php.ini 1) Specify your php extension folder probably on line 524. extension_dir =”C:\Program Files\PHP\ext” or of your choice. 2) uncomment ;extension=php_openssl.dll probably on line 668. 3) and make sure you copied (php_openssl.dll) under this directory. extension_dir =”C:\Program Files\PHP\ext” or of your choice from above.(1) 4) restart apache 5) open command prompt (CMD) and type php -v, see if it says any missing files, copy those missing files into the ext folder. Hope this helps., regards Sohail Quote Link to comment https://forums.phpfreaks.com/topic/68919-sending-email-from-webpage-using-gmail-or-other-third-party-server/#findComment-347779 Share on other sites More sharing options...
Jaap Krijger Posted September 17, 2007 Author Share Posted September 17, 2007 Hi, the mail is working, next problem is formatting the body of the email. I get everything in one line... Jaap :-\ Quote Link to comment https://forums.phpfreaks.com/topic/68919-sending-email-from-webpage-using-gmail-or-other-third-party-server/#findComment-350084 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.