Chad Seibert Posted March 13, 2007 Share Posted March 13, 2007 Hello, Community! Is it possible to create email addresses in php code? I have checked the documentation and can't find it anywhere. Sorry if this is a dumb question. Thanks for any assistance, Chad Seibert Link to comment https://forums.phpfreaks.com/topic/42555-creating-email-addresses-in-php-code/ Share on other sites More sharing options...
aebstract Posted March 13, 2007 Share Posted March 13, 2007 What exactly do you mean by create email addresses? Link to comment https://forums.phpfreaks.com/topic/42555-creating-email-addresses-in-php-code/#findComment-206512 Share on other sites More sharing options...
Chad Seibert Posted March 13, 2007 Author Share Posted March 13, 2007 When someone comes and registers on my website, like Bob Smith, I want to be able to create the email address [email protected]. Link to comment https://forums.phpfreaks.com/topic/42555-creating-email-addresses-in-php-code/#findComment-206514 Share on other sites More sharing options...
boo_lolly Posted March 13, 2007 Share Posted March 13, 2007 When someone comes and registers on my website, like Bob Smith, I want to be able to create the email address [email protected]. well, you're getting into some complicated stuff right there. i'd look into shell scripting and perl to create email addresses on the fly. let's not forget you're going to need to integrate all of this with a mail server. Link to comment https://forums.phpfreaks.com/topic/42555-creating-email-addresses-in-php-code/#findComment-206530 Share on other sites More sharing options...
Chad Seibert Posted March 14, 2007 Author Share Posted March 14, 2007 Any resources/help to guide me along. Thanks for the assistance ! Link to comment https://forums.phpfreaks.com/topic/42555-creating-email-addresses-in-php-code/#findComment-206746 Share on other sites More sharing options...
brad Posted March 14, 2007 Share Posted March 14, 2007 do you own the server? unless you have pretty advanced hosting im not sure this will be very easy at all. Link to comment https://forums.phpfreaks.com/topic/42555-creating-email-addresses-in-php-code/#findComment-206748 Share on other sites More sharing options...
Chad Seibert Posted March 14, 2007 Author Share Posted March 14, 2007 Yes, I own the server. It's running Slackware 11. Link to comment https://forums.phpfreaks.com/topic/42555-creating-email-addresses-in-php-code/#findComment-206757 Share on other sites More sharing options...
trq Posted March 14, 2007 Share Posted March 14, 2007 All you need do is figure out the steps you take to create amail accounts now, and place those stpes into a script. php would be fine, but its probably going to be simpler through bash. Have yuo got virtual mailboxes setup on your server or do mail accounts also need a system account? On my systems its easy to add a new email address, I simply add a new system account, but you want really want to do this on a public access server. Link to comment https://forums.phpfreaks.com/topic/42555-creating-email-addresses-in-php-code/#findComment-206762 Share on other sites More sharing options...
boo_lolly Posted March 14, 2007 Share Posted March 14, 2007 just google it man. http://shilo.is-a-geek.com/slack/sendmail18.html http://www.slackbook.org/ http://www.hypexr.org/linux_mail_server.php http://www.flatmtn.com/computer/Linux-EmailServer.html http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch21_:_Configuring_Linux_Mail_Servers by the way, this is just between you and me, i'm glad you're running slackware. slackware is no piece of cake, it definitely takes an avid user to learn a distribution that takes so much manual configuration. there is no handholding with gentoo, either =). good luck! Link to comment https://forums.phpfreaks.com/topic/42555-creating-email-addresses-in-php-code/#findComment-207065 Share on other sites More sharing options...
Chad Seibert Posted March 15, 2007 Author Share Posted March 15, 2007 Hello, I just got my email system setup using sendmail. But now, how can I create a script to create the new user. "adduser -D test" still prompts for information, so how can I set it to used the default uid, group, etc. Thanks for your help ! Chad Seibert Link to comment https://forums.phpfreaks.com/topic/42555-creating-email-addresses-in-php-code/#findComment-208275 Share on other sites More sharing options...
per1os Posted March 15, 2007 Share Posted March 15, 2007 Probably do a grep for the userid and than look at the manpage for adduser on the smtp to look at the parameters needed. Link to comment https://forums.phpfreaks.com/topic/42555-creating-email-addresses-in-php-code/#findComment-208276 Share on other sites More sharing options...
Chad Seibert Posted March 15, 2007 Author Share Posted March 15, 2007 There is no manpage for adduser. Link to comment https://forums.phpfreaks.com/topic/42555-creating-email-addresses-in-php-code/#findComment-208282 Share on other sites More sharing options...
per1os Posted March 15, 2007 Share Posted March 15, 2007 What happens when u just do adduser, does it display help information? Or adduser --help Link to comment https://forums.phpfreaks.com/topic/42555-creating-email-addresses-in-php-code/#findComment-208283 Share on other sites More sharing options...
boo_lolly Posted March 15, 2007 Share Posted March 15, 2007 Hello, I just got my email system setup using sendmail. But now, how can I create a script to create the new user. "adduser -D test" still prompts for information, so how can I set it to used the default uid, group, etc. Thanks for your help ! Chad Seibert personally, to save server load, i'd write a shell script in perl, and use the shell_exec() command in my php script to run it and add a user to the mail accounts list. does that make sense? Link to comment https://forums.phpfreaks.com/topic/42555-creating-email-addresses-in-php-code/#findComment-208315 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.