- Recipient=input.Email;
- Kaituna=false;
- Rangitaiki=false;
- Wairoa=false;
- Tongariro=false;
- Ohau_Channel=false;
- Hot_Pools=false;
- Pickups=false;
- if(input.Raft_Trips.contains("Kaituna River"))
- {
- if(!(input.Pickup.contains("")))
- {
- sendmail
- [
- from:zoho.adminuserid
- to:Recipient
- subject:"Booking Confirmation"
- message:(((((((((((((((("<div style="text-align: left; "> <div style="background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial, Verdana, sans-serif; font-size: 16px; "> <div style="text-align: left; "><strong>Thank you</strong> for booking with ") + input.Company) + ". <br /> <br /> This is an automatically generated email with the details of your booking.<br /> <br /> You have been confirmed to Raft on the Kaituna River at ") + input.Trip_Time) + " on the ") + input.Date_field) + ", with ") + input.Pax) + " people.</div> <div style="text-align: left; "> </div> <div style="text-align: left; ">You have requested a pickup. You will be picked up at ") + input.Pickup) + " about 30 minutes before the scheduled trip time above.<br /> <br /> Please ensure you contact us the day before your trip (NZ Freephone 0800 333 900) to confirm numbers and ensure that everything is fine with water levels, minimum numbers, etc.<br /> <br /> You will want to bring suitable swimwear and a towel, plus any medication you may need on your trip (asthma inhalers, food for diabetics, etc).</div> </div> </div> <div style="margin-left: 40px; "><u><strong><br /> Cancellation Policies/Waiver of Liability<br /> </strong></u><u><strong> </strong></u><br /> <u><strong> </strong></u><strong>FIT Bookings</strong><br /> <strong> </strong>A minimum of 48 hours notice of any cancellation is required to avoid any cancellation fees charged.<br /> <br /> Cancellations with less than 48 hours but more than 24 hours notice will be charged a P cancellation charge.<br /> <br /> Cancellations within 24 hours of departure or no shows will be charged a 0 cancellation fee.<br /> <br /> <strong>Group Bookings (10 or more people)</strong><br /> 10 working days notice is required if the entire group is cancelling to avoid cancellation charges.<br /> <br /> <strong>Refund Policy<br /> </strong>") + input.Company) + " reserves the right to cancel or amend any trip due to safety issues, weather, river or road conditions, or insufficent numbers.<br /> </div> <div style="margin-left: 40px; ">Trips cancelled by ") + input.Company) + " for any reason will be refunded in full if an alternative trip/date is not suitable.<br /> <br /> <strong>Waiver of Liability</strong></div> <div> </div> <div style="margin-left: 40px; ">") + input.Company) + " operates within strict safety guidelines however adventure activites by their very nature involve a degree of risk. By partaking in these activites guests agree to assume this risk and will be required to sign a waiver of liability.</div>"
- content type:HTML
- ]
- }
- else
- {
- sendmail
- [
- from:zoho.adminuserid
- to:Recipient
- subject:"Booking Confirmation"
- message:(((((((((((((((("<div style="text-align: left; "> <div style="background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial, Verdana, sans-serif; font-size: 16px; "> <div style="text-align: left; "><strong>Thank you</strong> for booking with ") + input.Company) + ". <br /> <br /> This is an automatically generated email with the details of your booking.<br /> <br /> You have been confirmed to Raft on the Kaituna River at ") + input.Trip_Time) + " on the ") + input.Date_field) + ", with ") + input.Pax) + " people.</div> <div style="text-align: left; "> </div> <div style="text-align: left; ">You will need to meet at our river base at ") + input.Trip_Time) + ".<br /> <br /> Please ensure you contact us the day before your trip (NZ Freephone 0800 333 900) to confirm numbers and ensure that everything is fine with water levels, minimum numbers, etc.<br /> <br /> You will want to bring suitable swimwear and a towel, plus any medication you may need on your trip (asthma inhalers, food for diabetics, etc).</div> </div> </div> <div style="margin-left: 40px; "><u><strong><br /> </strong></u><u><strong>Cancellation Policies/Waiver of Liability</strong></u></div> <div style="margin-left: 40px; "><br /> <strong>FIT Bookings</strong><br /> A minimum of 48 hours notice of any cancellation is required to avoid any cancellation fees charged.<br /> <br /> Cancellations with less than 48 hours but more than 24 hours notice will be charged a P cancellation charge.<br /> <br /> Cancellations within 24 hours of departure or no shows will be charged a 0 cancellation fee.<br /> <br /> <strong>Group Bookings (10 or more people)</strong><br /> 10 working days notice is required if the entire group is cancelling to avoid cancellation charges.<br /> <br /> <strong>Refund Policy<br /> </strong>") + input.Company) + " reserves the right to cancel or amend any trip due to safety issues, weather, river or road conditions, or insufficent numbers.<br /> </div> <div style="margin-left: 40px; ">Trips cancelled by ") + input.Company) + " for any reason will be refunded in full if an alternative trip/date is not suitable.<br /> <br /> <strong>Waiver of Liability</strong></div> <div style="margin-left: 40px; "> ") + input.Company) + " operates within strict safety guidelines however adventure activities by their very nature involve a degree of risk. By partaking in these activities guests agree to assume this risk and will be required to sign a waiver of liability.</div>"
- content type:HTML
- ]
- }
- }
Every time I create a booking with input in Pickup, it still sends the email that has no input in Pickup.
Everything looks right to me and I have tried a bunch of different ways with no different outcome, except for specifying a Pickup in input.Pickup.contains.