welshmike Posted January 31, 2010 Share Posted January 31, 2010 I would like to send mail from a client side php script. How may I do this please? Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/190412-sending-mail-from-a-client-side-php-script/ Share on other sites More sharing options...
premiso Posted January 31, 2010 Share Posted January 31, 2010 Client side php script. That makes no real sense. To send mail using php you can use mail or the phpMailer class which can be found via google. Quote Link to comment https://forums.phpfreaks.com/topic/190412-sending-mail-from-a-client-side-php-script/#findComment-1004444 Share on other sites More sharing options...
welshmike Posted January 31, 2010 Author Share Posted January 31, 2010 Client side php script. That makes no real sense. To send mail using php you can use mail or the phpMailer class which can be found via google. Sorry I was not clearer. Ubuntu supports client side php and my small php program works on Ubuntu except that the mail function does not seem to send mail. Quote Link to comment https://forums.phpfreaks.com/topic/190412-sending-mail-from-a-client-side-php-script/#findComment-1004757 Share on other sites More sharing options...
KevinM1 Posted January 31, 2010 Share Posted January 31, 2010 Client side php script. That makes no real sense. To send mail using php you can use mail or the phpMailer class which can be found via google. Sorry I was not clearer. Ubuntu supports client side php and my small php program works on Ubuntu except that the mail function does not seem to send mail. Do you have a mail server installed on your Ubuntu machine? Quote Link to comment https://forums.phpfreaks.com/topic/190412-sending-mail-from-a-client-side-php-script/#findComment-1004760 Share on other sites More sharing options...
welshmike Posted January 31, 2010 Author Share Posted January 31, 2010 I have Postfix installed but I'm not sure if that is enough to enable SMTP to work. Quote Link to comment https://forums.phpfreaks.com/topic/190412-sending-mail-from-a-client-side-php-script/#findComment-1004763 Share on other sites More sharing options...
trq Posted January 31, 2010 Share Posted January 31, 2010 Ubuntu supports client side php and my small php program works on Ubuntu except that the mail function does not seem to send mail. That isn't exactly client side php as it actually turns your machine into a server. Postifx (and its dependencies) should be sufficient if configured correctly. Quote Link to comment https://forums.phpfreaks.com/topic/190412-sending-mail-from-a-client-side-php-script/#findComment-1004776 Share on other sites More sharing options...
welshmike Posted January 31, 2010 Author Share Posted January 31, 2010 Thanks and point taken. I uninstalled and reinstalled Postfix and realised that I had wrongly chosen the Local option instead of the Internet option for the Postfix configuration. I've now succeeded in sending emails from my PC by running my php script on it. So thanks everyone is solving my problem and for the "education". Quote Link to comment https://forums.phpfreaks.com/topic/190412-sending-mail-from-a-client-side-php-script/#findComment-1004780 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.