/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 // modified to provide authenticated logins function mymail($to,$subject,$message,$headers) { // set as global variable global $GLOBAL; // get From address $from = $fromarr[0]; } // Open an SMTP connection if (!$cp) return "Failed to even make a connection"; // Say hello... // perform authentication // Mail from... // Rcpt to... // Data... // Send To:, From:, Subject:, other headers, blank line, message, and finish // with a period on its own line (for end of message) // ...And time to quit... return true; }
Comments
                    Subscribe to comments
                
                