Jump to content

mako34

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Everything posted by mako34

  1. hello, mail2 is just a second mail sent from my sendmail.php <?php require("../phpmailer/class.phpmailer.php"); include("email.php"); include("email2.php"); $name = $_POST['name']; $childname = $_POST['childname']; $site = $_POST['site']; $days = $_POST['days']; $conf = $_POST['conf']; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Host = "mail.axx.com.au"; // SMTP servers $mail->Username = "x@xx.com.au"; // SMTP username $mail->Password = "xx"; // SMTP password $mail->AddAddress($_POST['email']); $mail->From = "inx@ax.com.au"; //$mail->FromName = $_POST['name']; $mail->FromName = "Axe_online"; $mail->Subject = "Message from Alxe"; $mail->IsHTML(true); $mail->Body = $message; $mail->AddAttachment("../attachs/Alx.pdf"); $mail->AddAttachment("../attachs/Eax.pdf"); if($mail->Send()) { echo "Message sent! Thanks ! "; echo ""; } $mail2 = new PHPMailer(); $mail2->IsSMTP(); $mail2->SMTPAuth = true; $mail2->Host = "xl.alxe.com.au"; // SMTP servers $mail2->Username = "ixo@alxe.com.au"; // SMTP username $mail2->Password = "ix"; // SMTP password $mail2->AddAddress($_POST['conf']); $mail2->From = "x@ax.com.au"; $mail2->FromName = "Ax_online"; //$mail2->Subject = "Confirmation mail"; $mail2->Subject = ($_POST['name']); $mail2->IsHTML(true); $mail2->Body = $message2; if($mail2->Send()) { echo "Confirmation sent! "; echo " \n"; print('<a href="http://www.ax.com.au/mail/form.html">Reset and Back</a>'); } ?>
  2. hello, im using the php mailer, working nicely but I need to put 3 values in my from fields in subject, now I have just 1 field $mail2->Subject = ($_POST['name']); I need to include in the subject email, commas and a message, I tried the following, but not working (noob learning!) $mail2->Subject = ($_POST['name'] "," $_POST['email'] "," "confirmation mail" ); thank you so much!
  3. wow, that's it, thanks Radi8, that's what happens to noobs tnx simple and genius!!
  4. hello, I did my first application of mailer php today, very nice, sending 2 pdf attachments, but for record keeping, I need a copy of the mail to go to another mail, but with out the attachments, how to accomplish this please?? here the code form html: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Contact Form</title> <meta name="Generator" content="Alleycode HTML Editor"> <meta name="Description" content="Your description here..."> <meta name="Keywords" content="Your keywords here..."> </head> <body> <form method="post" action="sendmail2.php"> <p> <label>Name:</label> <br/> <input type="text" name="name" size="48" height="40"/> </p> <p> <label>Email:</label> <br/> <input type="text" name="email" size="48" height="40"/> </p> <p> <label>Child's Name:</label> <br/> <input type="text" name="childname" size="48" height="40"/> </p> <p> <label>Site:</label> <br/> <textarea name="site" rows="2" cols="45" overflow:hidden>xx.com.au</textarea> </p> <p> </p> <p> <label>Days:</label> <br/> <textarea name="days" rows="2" cols="45" overflow:hidden>Monday, Tuesday, Wednesday, Thursday, Friday</textarea> </p> <p> </p> <p> <input type="submit" value="Send"/> <a href="xx/form.html">clear</a></p> </form> </body> </html> sendmail2.php: <?php require("../phpmailer/class.phpmailer.php"); include("email.php"); $name = $_POST['name']; $childname = $_POST['childname']; $site = $_POST['site']; $days = $_POST['days']; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Host = "xxx.com"; // SMTP servers $mail->Username = "xxx"; // SMTP username $mail->Password = "xxx"; // SMTP password $mail->AddAddress($_POST['email']); $mail->From = "xxx@ax.com.au"; $mail->FromName = "xxx_online"; $mail->Subject = "Message from Alouette"; $mail->IsHTML(true); $mail->Body = $message; $mail->AddAttachment("../attachs/x.pdf"); $mail->AddAttachment("../attachs/xd.pdf"); if($mail->Send()) { echo "Message sent! Thanks ! "; print('<a href="xu/mail/form.html">Reset and Back</a>'); } ?> email.php <?php $message = ' Hello '.$name.', <br/> we have received your interest in child care services for '.$childname.' from the '.$site.' website. <br/> <br/> '.$days.' <br/> <br/> Should you have any questions regarding the information on our enrolment form or services please do not hesitate to contactkkk <br/> <br/> <br/> Regards, <br/> <a href="mailto:x@x.com.au">x@nx.com.au</a> <a href="http://www.nx.com.au" target="_new">www.neo-it.com.au</a> <br/> <strong>Childcare Management Services</strong> <br/> <br/> ' ?>
  5. hi, sorry if is a very noob question in this site http://thevalley.org.au/index.php I have changed the info in the link contact us, I know is there changed, cause if I hit the open in new tab contact us, or go to http://thevalley.org.au/contact.php it opens the link in the actual content, but, when it opens the contact us in the side menu, I see the old info how to refresh it, as F5 doesnt seem to work?? thank you!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.