8889841csetFrom($recipientEmail, $recipientName); //Set an alternative reply-to address $mail->addReplyTo($recipientEmail,$recipientName); //Set who the message is to be sent to $mail->addAddress($recipientEmail, $senderName ); //Set the subject line $mail->Subject = $senderSubject; $mail->Body = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test $mail->MsgHTML($body); $mail->AddAddress($recipientEmail, $recipientName); //$mail->AddAttachment("images/phpmailer.gif"); // attachment //$mail->AddAttachment("images/phpmailer_mini.gif"); // attachment //now make those variables the body of the emails $mail->Body=" Name: $senderName
Email: $senderEmail
Suburb: $senderSubject
Message: $senderMessage"; if(!$mail->Send()) { echo ''; } else { echo ''; } ?>