TheFilmGod Posted June 20, 2008 Share Posted June 20, 2008 Is there any way to use PHP to set up email forwarding? For instance, the user creates [email protected] and it forwards to all the addresses he inputs. And from that point on, anyone that sends emails to [email protected] forwards automatically to those email addresses. I don't want php to simply forward the message (that's too easy)... - TheFilmGod Quote Link to comment https://forums.phpfreaks.com/topic/111136-php-set-up-email-forwarding/ Share on other sites More sharing options...
TheFilmGod Posted June 21, 2008 Author Share Posted June 21, 2008 bump Quote Link to comment https://forums.phpfreaks.com/topic/111136-php-set-up-email-forwarding/#findComment-570744 Share on other sites More sharing options...
.josh Posted June 21, 2008 Share Posted June 21, 2008 You can setup email forwarding in your cpanel. Quote Link to comment https://forums.phpfreaks.com/topic/111136-php-set-up-email-forwarding/#findComment-570752 Share on other sites More sharing options...
TheFilmGod Posted June 21, 2008 Author Share Posted June 21, 2008 Is it possible to do it through php? I want users to have the ability to setup email forwarding. This is for my school and the teachers/students are not familiar with the cpanel and are unwilling to learn. - TheFilmGod Quote Link to comment https://forums.phpfreaks.com/topic/111136-php-set-up-email-forwarding/#findComment-570759 Share on other sites More sharing options...
DarkWater Posted June 21, 2008 Share Posted June 21, 2008 I'm pretty sure that you can't do that in PHP. You're trying to reinvent the wheel here. You don't need to really "learn" CPanel. Click the damn E-mail forwarding button. o-O Quote Link to comment https://forums.phpfreaks.com/topic/111136-php-set-up-email-forwarding/#findComment-570761 Share on other sites More sharing options...
.josh Posted June 21, 2008 Share Posted June 21, 2008 well, I think you can do it by executing shell commands through php, if you have the access. Couldn't really help you out on how, but maybe that will point you in some kind of direction. Quote Link to comment https://forums.phpfreaks.com/topic/111136-php-set-up-email-forwarding/#findComment-570762 Share on other sites More sharing options...
DarkWater Posted June 21, 2008 Share Posted June 21, 2008 But that's not using PHP to do it...that's using PHP to tell something else to do it. =/ Quote Link to comment https://forums.phpfreaks.com/topic/111136-php-set-up-email-forwarding/#findComment-570764 Share on other sites More sharing options...
.josh Posted June 21, 2008 Share Posted June 21, 2008 I think the point is that he wants a user to be able to fill out a form on a webpage, instead of going to cpanel, which would involve php doing something, even if it's "using php to tell sometihng else to do it". Quote Link to comment https://forums.phpfreaks.com/topic/111136-php-set-up-email-forwarding/#findComment-570769 Share on other sites More sharing options...
DarkWater Posted June 21, 2008 Share Posted June 21, 2008 =/ I guess...but I don't see what's so hard about going into CPanel or something. Wait. I just had an idea. Thread starter, please explain your current e-mail system. If you have it set to e-mail people FROM PHP, you can actually store these "forwarding addresses" in the database and send e-mails to them too. If you actually want any e-mail (even outside e-mail) to go to all those addresses....then I can't help you much further. Quote Link to comment https://forums.phpfreaks.com/topic/111136-php-set-up-email-forwarding/#findComment-570772 Share on other sites More sharing options...
.josh Posted June 21, 2008 Share Posted June 21, 2008 =/ I guess...but I don't see what's so hard about going into CPanel or something. Wait. I just had an idea. Thread starter, please explain your current e-mail system. If you have it set to e-mail people FROM PHP, you can actually store these "forwarding addresses" in the database and send e-mails to them too. If you actually want any e-mail (even outside e-mail) to go to all those addresses....then I can't help you much further. I think that's what he's saying he doesn't want to do, in the OP. Quote Link to comment https://forums.phpfreaks.com/topic/111136-php-set-up-email-forwarding/#findComment-570774 Share on other sites More sharing options...
DarkWater Posted June 21, 2008 Share Posted June 21, 2008 I didn't quite understand exactly what he was saying in the OP, honestly. =/ I hope he posts back. I don't get why something like that doesn't suffice. O_O Quote Link to comment https://forums.phpfreaks.com/topic/111136-php-set-up-email-forwarding/#findComment-570781 Share on other sites More sharing options...
TheFilmGod Posted June 21, 2008 Author Share Posted June 21, 2008 Cpanel is easy to use but I don't want the average user to be logging into my cpanel.... and I don't want to do it for like 100+ people. I think it would be a great feature on my website (it is a school website) where clubs can setup email forwarding. For instance, the Model United Nations club would be [email protected] - and it would send emails out to it's officers and members. Putting the emails into a database wouldn't suffice since people would be too lazy to send emails from my site. To make it a complete + good feature I should allow users to send emails from their own email software to an address that would forward. I hope that makes sense. Or here's another way of doing it. Is it possible to send emails, let us say to [email protected]?id=1 ? And have the pop3 server check the id and send to the appropriate people? Thanks - TheFilmGod Quote Link to comment https://forums.phpfreaks.com/topic/111136-php-set-up-email-forwarding/#findComment-571042 Share on other sites More sharing options...
DarkWater Posted June 21, 2008 Share Posted June 21, 2008 You definitely can't do that last thing you said. I think you should just make them send it from your site. Quote Link to comment https://forums.phpfreaks.com/topic/111136-php-set-up-email-forwarding/#findComment-571043 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.