Get Your Free Estimate

We're here to help with your construction and repair needs

Send Us a Message

Fill out the form below and we'll get back to you as soon as possible.

New Quote Request from MadrasHandyman.com
Name: {$name}
Email: {$email}
Phone: {$phone}
Service Needed: {$service}
Message: " . nl2br($message) . "

This message was sent from the MadrasHandyman.com contact form.

"; // Plain text version $textBody = "New Quote Request from MadrasHandyman.com\n\n"; $textBody .= "Name: {$name}\n"; $textBody .= "Email: {$email}\n"; $textBody .= "Phone: {$phone}\n"; $textBody .= "Service Needed: {$service}\n\n"; $textBody .= "Message:\n{$message}\n"; // SMTP2GO API payload $payload = [ 'api_key' => 'api-E5D139ADAB004302B8F93322AD7BE0B0', 'to' => ['Josh Richesin '], 'sender' => 'Madras Handyman Website ', 'subject' => 'New Quote Request from MadrasHandyman.com - ' . $name, 'text_body' => $textBody, 'html_body' => $htmlBody, 'custom_headers' => [ [ 'header' => 'Reply-To', 'value' => $email ] ] ]; // Send via SMTP2GO HTTP API $ch = curl_init('https://api.smtp2go.com/v3/email/send'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload)); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Content-Type: application/json', 'Accept: application/json' ]); curl_setopt($ch, CURLOPT_TIMEOUT, 30); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); $curlError = curl_error($ch); curl_close($ch); if ($curlError) { $error = true; $errorMessage = 'Connection error. Please try again or call us directly.'; } else { $result = json_decode($response, true); if ($httpCode === 200 && isset($result['data']['succeeded']) && $result['data']['succeeded'] > 0) { $success = true; } else { $error = true; $errorMessage = 'Unable to send message. Please call us directly at (541) 312-6233.'; } } } else { $error = true; $errorMessage = 'Please fill out all required fields.'; } } ?>
Thank you!

Your message has been sent. We'll get back to you as soon as possible.

Error

Contact Information

Reach out directly or stop by our location in Madras.

Address

574 SW 4th Street
Madras, OR 97741

Business Hours

Monday - Friday: 8am - 5pm
Saturday - Sunday: Closed

License

Oregon CCB# 246006
Licensed & Bonded

A Division of

Richesin Engineering LLC