Korelis Posted May 13, 2008 Share Posted May 13, 2008 Hello Everyone, I had a friend help me with this PHP project I am working on. However, my friend decided to run off to France and leave me in the dust. Any help would be GREATLY appreciated :-). What I am trying to get is for an email to be generated for each account/contact that matches the lines error lines. I am going to have a static email that will allow me to place the errors towards the end. But I am not sure what exactly to do next. [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
Loldongs Posted May 13, 2008 Share Posted May 13, 2008 Sending mail in php is really easily done just use this is example below <?php $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> Quote Link to comment Share on other sites More sharing options...
severndigital Posted May 14, 2008 Share Posted May 14, 2008 agreed that using php's mail() functions are easy.. however if you need more robust configurations and settings you may want to check out phpmailer http://phpmailer.codeworxtech.com/ Quote Link to comment Share on other sites More sharing options...
Korelis Posted May 14, 2008 Author Share Posted May 14, 2008 Using the mail function in this script would I be able to use the information pulled from the array? For example I want to send the email to the person who matches the DSCD# in the error file (and below until the next DSCD# is reached) with the dscd# from the contact file. Quote Link to comment Share on other sites More sharing options...
Korelis Posted May 15, 2008 Author Share Posted May 15, 2008 I tried a few different things like suggested and it is emailing the last DSCD in the contact list not the matches. Quote Link to comment 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.