Contact form script tweak

Tamamlanmış İlan edilme: 6 yıl önce Teslim sırasında ödenir
Tamamlanmış Teslim sırasında ödenir

We have a web contact form that works to send an email to a gmail account. There is an autoreponse setup in the gmail account that doesn't go out becuase the reply to address appear as the web form server host name. Need the following script to also send reply to address instead of hostname.

<?php

$name = $_POST['name'];

$telephone = $_POST['telephone'];

$email = $_POST['email'];

$hearabout = $_POST['hearabout'];

$topic = $_POST['topic'];

$comments = $_POST['comments'];

$message = "

Name: $name\n

Phone: $telephone\n

Email: $email\n

How Did You Hear About Us: $hearabout\n

Topic: $topic\n

Comments: $comments

";

$from = "From: $email\r\n";

switch($topic) {

case "Prevention":

$to = "email1@[url removed, login to view]";

break;

default:

$to = "email2@[url removed, login to view]";

}

mail($to, "Website Contact Form", $message, $from);

PHP

Proje NO: #16480763

Proje hakkında

4 teklif Uzak proje Aktif 6 yıl önce

Seçilen:

bherunath

Hello, As discussed I can do this task, to add the Reply to header while sending the mail to gmail. Thanks

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% USD
(11 Değerlendirme)
3.6

Bu iş için 4 freelancer ortalamada $20 teklif veriyor

asifchaudhry2015

Hi there, I am senior web developer. Let me handle this. I will solve this asap. Let's come to chat with me . Thanks

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(77 Değerlendirme)
6.6
hamidejaz024

Hello Hope you are good sir. Sir i'm sure i can do this for you. Please consider me for this job i can start work right now and try to complete it asap. Thanks

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(57 Değerlendirme)
5.6
Anikghosh1234

Hi Dear, As I can read your requirement, I am a Website developer and designer and I am confident enough to complete your task with quality on time. I hope that you are going to message me. Thanks, Anik

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)
0.4