【发布时间】:2017-10-08 05:40:13
【问题描述】:
你好,我希望你们能帮帮我,我有这个联系表格,可以给技术人员发送电子邮件和他的电话号码。
现在一切正常,但他没有收到短信,我觉得问题出在他的手机上,因为我使用了使用同一运营商的我女朋友的电话号码,她可以正常接收短信,其他所有人也一样假设要接收文本,但是当我发送到他的手机时,它就无法正常工作...我缺少什么吗???,注意:他有一个安卓,但其他人都有我的电话。当我直接从我的 GMAIL 写一封电子邮件并将其发送到他的手机时,它的联系表格与我女朋友的电话、经理和其他同事一起工作,一些与技术人员拥有相同运营商的人也能正常工作但只是不适合他(技术人员)......这让我难以置信,请有人帮忙!
<?php
$email='1231231234@tmomail.net, 1231231234@tmomail.net,myemail@gmail.com';
$email1=$_POST['Email1'];
$email2=$_POST['Email2'];
$from2=$_POST['Email1'];
$from=$_POST['Email1'];
$subject="Maintenance Request";
//^this is the subject of the email that serivce gets.
$problem=$_POST['Box'];
$select=$_POST['Select'];
$name=$_POST['Name'];
$phone=$_POST['Phone'];
$number=$_POST['Number'];
$mlocation=$_POST['Machinelocation'];
$orgname=$_POST['OrganisationName'];
//^these information pulls what the customer answers in the field
$message="Name: ".$name."\r\n"."Organization: ".$orgname."\r\n"."Email: ".$from."\r\n"."Phone: ".$phone ."\r\n"."Machine: ".$select."\r\n"."Machine Location: ".$mlocation."\r\n"."Problem: ".$problem ;
$confirmation_subject = 'Your recent Maintenance request';
//^this is the subject of the confirmation email
$confirmation_sender = 'COMPANY NAME HERE<info@youremail.com>';
$msg = "".$name."\r\n" ."Thank you for your recent Maintenance request. A member of our team will respond to your request as soon as possible."."\r\nBelow you will see a copy of your request"."\r\n\n"."Name: ".$name."\r\n"."organization: ".$orgname."\r\n"."Email: ".$from."\r\n"."Phone: ".$phone ."\r\n"."Machine: ".$select."\r\n"."Machine Location: ".$mlocation."\r\n"."Problem: ".$problem ;
//^this is confirmation message message"
if ($number !=10) {
die("You are not a human! or your answer was incorrect!, Please go back and try again.");
}
else {
mail ($email1, $confirmation_subject,$msg, 'From: ' .$confirmation_sender );
}
if(!filter_var($email1, FILTER_VALIDATE_EMAIL)) {
die("Invalid email ($email1)");
}
if ($email1 == $email2) {
mail ($email, $subject, $message, "from:".$from);
header("location: siteethankyou.php");
}
else {
echo "This ($email2) email address is different from ($email1).\n";
}
?>
<div name="my-form" >
<div class="container">
<form id="contact" action="EmailHandler.php" method="post">
<h3>Repair Form</h3>
<h4>Contact us today, and get reply with in 24 hours!</h4>
<fieldset>
<input name="Name" type="text" autofocus required id="Name" placeholder="Your name" tabindex="1">
</fieldset>
<fieldset>
<input name="OrganisationName" type="text" autofocus required id="OrganisationName" placeholder=" Your Organisation Name" tabindex="1">
</fieldset>
<fieldset>
<p>
<input name="Email1" type="email" autofocus required id="Email1" placeholder="Your Email Address" tabindex="2">
</p>
<p class="underfield"><em style="font-size: 10px">please provide your email address to better assist you.</em></p>
</fieldset>
<fieldset>
<input name="Email2" type="email" autofocus required id="Email2" placeholder=" Verify Your Email Address" tabindex="2">
</fieldset>
<fieldset>
<input name="Phone" type="tel" autofocus required id="Phone" placeholder="Your Phone Number" tabindex="3" maxlength="12">
</fieldset>
<fieldset>
<select name="Select" autofocus required class="container" id="Select" onchange="changeSelectValue();">
<option selected="selected">Select</option>
<option value="Carpet Machine">Carpet Machine</option>
<option value="Coffee Brewer">Coffee Brewer</option>
<option value="Floor Machine">Floor Machine</option>
<option value="Rider Scrubber Commercial">Rider Scrubber Commercial </option>
<option value="Rider Scrubber Industrial">Rider Scrubber Industrial</option>
<option value="Sweeper Commercial">Sweeper Commercial</option>
<option value="Sweeper Industrial">Sweeper Industrial</option>
<option value="Vacuum Cleaner">Vacuum Cleaner</option>
<option value="Water Cooler">Water Cooler</option>
<option value="Wet / Dry">Wet / Dry</option>
<option value="Test">Test</option>
<!--the value has to match the php-->
</select>
</fieldset>
<fieldset>
<input name="Machinelocation" type="text" autofocus required id="Machinelocation" placeholder="Your Machine Location Address" tabindex="2">
</fieldset>
<p class="underfield2"> please provide the address location of the machine. city,state,zipe code</p>
<fieldset>
<p>
<textarea name="Box" autofocus required id="Box" placeholder="What's wrong with your machine...?" tabindex="5"></textarea>
</p>
</fieldset>
<fieldset>
<input name="Number" type="text" autofocus required class="container" id="Question" placeholder="What does 5 + 5 = ?" tabindex="1">
</fieldset>
<fieldset>
<p> </p>
<p>
<input name="submit" type="submit" autofocus class="container4" id="submit" value="Send Request"></p></fieldset>
</form>
</div>
</div>
【问题讨论】:
-
你在哪里发短信?
mail()命令不这样做。 -
好吧,到目前为止,它一直在为其他所有人工作,但由于某种原因,特别是由于某种原因,它不是这个人,而是使用邮件,但如果这不是它的完成方式,我应该如何将表格作为短信发送到手机? @杰里米哈里斯
-
您是否收到发送回发件人地址的任何服务器退回邮件?它可能是 SPF 过滤器(因为您不是从通常的服务器发送发件人地址)或 Android 电子邮件->文本消息转发器使用的实时黑名单,但等效的 iPhone 系统不使用.当您从正常运行的常规电子邮件系统发送时,您通常不会遇到这些类型的问题,但服务器脚本经常会遇到。
-
如果我正确的话,“发件人”是使用客户在字段中输入的电子邮件来发送消息,所以感觉我一直在使用我的个人电子邮件测试表单,看看我是否收到了确认电子邮件并使用我的其他电子邮件接收表格我没有收到任何电子邮件的任何退回。 @manassehkatz
-
@twinaholic - 不是电话,是电话的服务提供商。
标签: php android email text contact