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. 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. 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? 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? 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! Link to comment https://forums.phpfreaks.com/topic/82746-solved-send-two-emails/#findComment-420869 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.