php - PHPMailer No Reply -
I upgraded my mailing method to phpmailer with my form, and the first question is:
Do I need all this code? (It looks like working) Not sure if I should use SMTP or not.
need_once ('PHPMailer-master / class.phpmailer.php'); $ Mail = new PHPMailer (); // PHP "mail ()" to use the default $ body = $ display; // $ mail- & gt; Euphrli Toe ("name@yourdomain.com, First Fast"); $ Mail- & gt; Senam = 'UMVA membership form'; $ Mail- & gt; Host = 'www.umvaonline.org'; $ Mail- & gt; AddAddress (Matthu_Stacy @ Yale.com, 'Matt Stacey'); $ Mail- & gt; AddAddress ('jskippy@roadrunner.com', 'Jacqueline Bennett'); If ($ fname2! = "") {$ Mail- & gt; Subject = "UMVA membership update" $ Fname "and". $ Fname2 "" $ Lname;} and {$ Mail- & gt; Subject = "UMVA subscription updates" $ Fname "" $ Lname;} $ mail- & gt; AltBody = "To see the message, please use an HTML compatible email viewer!"; // Optional, comment out and $ mail-> test; MsgHTML ($ body); If (! $ Mail-> Send ()) {echo "Mailer error:" $ Mail & gt; ErrorInfo; } Else {echo "Your information has been submitted!
Second question: Email is going to me and another person with the form. How do I set answer to answer or answer? Basically there is no one to answer because the message is coming from the root user and there is no email account on the server? Thanks!
Comments
Post a Comment