forumnz Posted December 21, 2007 Share Posted December 21, 2007 I made a script that emails a user with specific text. I also want that script to email another user with different text. I have all the variables and text sorted, but how do I send them without the two mail functions conflicting? Thanks, Sam. Quote Link to comment https://forums.phpfreaks.com/topic/82746-solved-send-two-emails/ Share on other sites More sharing options...
revraz Posted December 21, 2007 Share Posted December 21, 2007 Just add the second mail () function after the first one. Quote Link to comment https://forums.phpfreaks.com/topic/82746-solved-send-two-emails/#findComment-420863 Share on other sites More sharing options...
forumnz Posted December 21, 2007 Author Share Posted December 21, 2007 But both have $message, $to etc. How will it not use the wrong ones? Quote Link to comment https://forums.phpfreaks.com/topic/82746-solved-send-two-emails/#findComment-420864 Share on other sites More sharing options...
revraz Posted December 21, 2007 Share Posted December 21, 2007 Use $message2 instead? Quote Link to comment https://forums.phpfreaks.com/topic/82746-solved-send-two-emails/#findComment-420866 Share on other sites More sharing options...
forumnz Posted December 21, 2007 Author Share Posted December 21, 2007 Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/82746-solved-send-two-emails/#findComment-420869 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.