Now a days email communication is very important for every person. So in this section we are going to see how to send simple email using php code.
<?php $to = "john@xxx.com"; //to whom you need to send email $subject = "Your Subject Here"; $message = "Your Main Content Here!"; $headers = "From: your website name\r\n"; mail($to,$subject,$message,$headers); ?>
Pampers Complete Skin Comfort Pants, Anti-rash blanket, Lotion with Vitamin E & Aloe Vera, Medium (M), 76 Count, 7-12kg
₹862.00 (as of October 29, 2025 13:05 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Mee Mee Baby Liquid Detergent 1 L | Ph balanced, Free from Harsh Chemicals, Safe for mother's hands & baby's skin | Anti-Bacterial, Removes Stains & Odor with One Drop, Hypoallergenic
₹315.00 (as of October 29, 2025 13:05 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)tütots 360° Soft Spout Baby Trainer Sipper, 210ml, Dual Handle Leakproof & spillproof Sippy Cup for Babies/Toddlers/Kids, Easy-Grip Handles, BPA-Free, Ergonomic Design | Plane Design (Green)
₹449.00 (as of October 29, 2025 13:05 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Mamypoko Pants All Night Absorb| Pant Style Baby Diapers Medium Size(M), 72 Count, Ideal for 7-12Kgs|+50% Wider and Repeated Absorption for All Night 12hr Protection from Leakage, Prevents Heaviness.
₹572.00 (as of October 29, 2025 13:05 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Pampers Active Baby Tape Style Baby Diapers, Newborn/Extra Small (NB/XS) Size, 72 Count, Adjustable Fit with 5 star skin protection, Up to 5kg Diapers
₹924.00 (as of October 29, 2025 13:05 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Tidy Sleep Baby Changing Mat – Waterproof, Foldable, Padded Diaper Changing Sheets for Newborns & Infants – Little Star (65 cm x 45 cm)
₹269.00 (as of October 29, 2025 13:05 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Tedibar Moisturising Baby Bathing Bar 75gx3 (Pack of 1) 100% Soap Free No. 1* Pediatrician Prescribed Moisturising Bar - By Torrent Pharma
₹544.00 (as of October 29, 2025 13:05 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)BELOXY Silicone Bottle Cleaning Brush, 360 Degree Rotational, Flexible Soft Bristle, Long Handle Cleaning Brush for Jar, Cup, Glass Mug Container and Kitchenware (29 × 5.5 × 1cm) (1)
₹199.00 (as of October 29, 2025 13:05 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Jr. Sr. Baby Tape Diapers with Advanced Leak Protection | Soft & Comfortable | Pack of 1 | New Born - 72 Count
Now retrieving the price.
(as of October 29, 2025 13:05 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)
Hey Vetrivel, Thanks for share this code, Can you share the code for how to send email with attachment?