The standard "mail" function I have been using won't work with Optus.
The mailgate script allows me to send one string as the email message to an email account that I have pre-registered.
My website uses an online booking form that has many many fields and my existing script formats these nicely into an email that looks like my normal booking form.
I would like to keep my original php script to read the form and format the message body, then swap the "mail" command to call the mailgate script that I have to use.
I am trying...
Code: Select all
$redurl='http://pedaloz.com.au';
$rep='info@pedaloz.com.au';
$from=... read from form
$name=... read from form
$sub='Online Booking';
$msg= ... lots of code to format all the form fields into my desired email body ...
header("Location: http://mailgate.server-mail.com/cgi-bin ... ct=$redurl");
exit();Is the header (Location ...) the most appropriate command to use?
Any clues? All feedback much appreciated.