I can send a email to my domain email but when using a .live email as the $to in php I get the error in the log "Denied ATTR36" is there anything I can do Thanks
i am using php mailer to send emails for my website the code is working very fine mails are sent properly but as soon as i try to include the verification link of my website the email message gets blocked by gmail service so the issue is i am not able to include the link in my email message please help me out of this .
Message blocked
Your message to saddique116p#gmail.com has been blocked. See technical details below for more information.
$msg = "Thank you for Registering to our website";
$msg.="<html>Welcome<h4> $fname $lname <h4>
Thank You please click this link to verify your Account.
<a href='http://codinginn.000webhostapp.com/verify_email.php?code=$activationcode'>click here</a>
</html>";
The code above is my email body please let know how should i improve this?
I am sending email using php mailer and email is going fine to the inbox
but next time when i reply back instead of email coming to under same conversation it create a new email even it should show all the email subject
any one has an idea ?
The email you send via php must have a header
Reply-To: <from-email-address>
From: <from-email-address>
as well as a
To: <destination-email-address>
header line for it to appear as a conversation thread.
Also the subject line should be the same or be the same with a prepended 'Re: '
I'm trying to set up a contact form for a client who wish to link the data from the form into their Goldmine system.
There is a 3rd party company who have sent me a sample contact form and a sample PHPMailer script, but when I test this script on the client's website it sends out the email, but as an attachment rather than in the body of the email.
I've looked at the PHPMailer script and I cannot see anywhere that references adding attachments so I'm puzzled as to whether there is something in the PHPMailer script I've not seen, or if this is some sort of server setting when the email is being sent? Any help would be appreciated.
The PHPMailer script has $Body which it just keeps adding each part of the form input to and then finally ends with what looks like the relevant bit of code to send the email:
ini_set("SMTP", Decode($SMTP));
if(mail(Decode($SendToEmail), $ToSubject, $Body, "From: GoldMine WebImport <no-reply#xxxxxxx>\r\nContent-Type: text/x-gm-impdata\r\n" )) {
print "Your data has been recorded successfully!\n\n<!--\n".Decode($SendToEmail)."\n".$ToSubject."\n".$Body."\n\n".$OutputAs."\n\n-->";
}
else
{print("There was a mailer failure.\n\n<!--\n".$Body."\n\n-->");}
}
else
{echo "There was no form data passed.";}
EDIT: I should also mention that I've been using Tectite's Formmail system for the same client on their existing contact forms and that sends the email with the content in the main body of the email as it is supposed to. I only seem to be having this problem with PHPMailer, but I can't use Formmail for sending the right info to the Goldmine system.
http://www.bridgetjoy.com/Web/requestInfo.html
I am having trouble getting the above form to process...here is my php processing code, I am getting it to redirect to my success page but it is not showing up in my inbox. Any help would be appreciated. Thanks!
<?php
if(isset($_POST['submit'])) {
$to = "bridgetjoymedia#gmail.com" ; //put your email address on which you want to receive the information
$subject = "Information Request"; //set the subject of email.
$headers = "From: $email";
$message = "<table><tr><td>Title :</td><td>".$_POST['title']."</td></tr>
<tr><td>First Name :</td><td>".$_POST['firstName']."</td></tr>
<tr><td>Last Name :</td><td>".$_POST['lastName']."</td></tr>
<tr><td>Degree :</td><td>".$_POST['degree']."</td></tr>
<tr><td>Address :</td><td>".$_POST['address1']."</td></tr>
<tr><td> </td><td>".$_POST['address2']."</td></tr>
<tr><td> </td><td>".$_POST['address3']."</td></tr>
<tr><td>City :</td><td>".$_POST['city']."</td></tr>
<tr><td>State :</td><td>".$_POST['state']."</td></tr>
<tr><td>ZipCode :</td><td>".$_POST['zipCode']."</td></tr>
<tr><td>Country :</td><td>".$_POST['country']."</td></tr>
<tr><td>E-mail Address :</td><td>".$_POST['email']."</td></tr>
<tr><td> Secondary E-mail Address :</td><td>".$_POST['email2']."</td></tr>
<tr><td>Primary Phone :</td><td>".$_POST['phone1']."</td></tr>
<tr><td>Primary Phone Location :</td><td>".$_POST['phone1_location']."</td></tr>
<tr><td>Secondary Phone :</td><td>".$_POST['phone2']."</td></tr>
<tr><td>Secondary Phone Location :</td><td>".$_POST['phone2_location']."</td></tr>
<tr><td>Fax :</td><td>".$_POST['phone3']."</td></tr>
<tr><td>Reason for Request :</td><td>".$_POST['relation']."</td></tr>
<tr><td>Reason for Request :</td><td>".$_POST['relation_specify']."</td>
<tr><td>Reason for Request :</td><td>".$_POST['physician_specialty']."</td>
<tr><td>Reason for Request :</td><td>".$_POST['surgeon_specialty']."</td>
<tr><td>Reason for Request :</td><td>".$_POST['prof_specify']."</td></tr>
<tr><td>Reason for Request :</td><td>".$_POST['other_specify']."</td></tr>
<tr><td>Diagnosis :</td><td>".$_POST['diagnosis']."</td></tr>
<tr><td>Insurance :</td><td>".$_POST['insurance']."</td></tr>
<tr><td>How did you hear of Avery Biomedical :</td><td>".$_POST['source']."</td></tr>
<tr><td>Comments :</td><td>".$_POST['comments']."</td></tr>
</table>" ;
$send_contact = mail($to,$subject, $headers,$message);
// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
header("Location: success.html");
exit();}
else {
header("Location: failure.html");
exit();}
}
?>
Emails sent by mail() function is blocked due is used by scammers try to use sendmail from PEAR or a smtp class
phpmailer https://code.google.com/a/apache-extras.org/p/phpmailer/
PEAR sendmail https://pear.php.net/manual/en/package.mail.mail.send.php
Look at PHP: mail() vs SendMail
Many mail services, such as Gmail, vigorously check for spam, and much of the spam you would otherwise receive simply bounces, rather than even making it to your spam folder!
To prevent this, it helps if the mail server you are sending from has valid MX and SPF records, although this is fairly technical for most people. However, because Gmail is fairly well known, many services do not bounce email origination from smtp.mail.google.com (Gmail). Therefore, you might benefit from setting up an account for your script to use on Gmail, and then using a third-party library to connect to the account and send/receive emails.
If you haven't looked into it, SwiftMailer allows you to send mail on behalf of a Gmail account using PHP.