Problems with sending verification mail in php api

On my php api for an android app I use PHPMailer() ([login to view URL])

for sending verification mails.

$mail = new PHPMailer(true);

$to = GTG_security($_REQUEST['email']);

try {

$mail->SMTPDebug = 4;

$mail->Host = '[login to view URL]';

$mail->SMTPAuth = true;

$mail->Username = 'info@[login to view URL]';

$mail->Password = '*******';

$mail->SMTPSecure = 'ssl';

$mail->Port = 587;

$mail->setFrom('info@[login to view URL]', '[login to view URL]');

$mail->addAddress("$to", ".$first_name.");


$mail->Subject = 'Verification Mail';

$mail->Body = "<html>


<title>Verification Mail</title>



<h4><b>Hello ".$first_name." ".$last_name."</b></h4>

<p>Please click Below link to Verify Your Account</p><br>

<a href='".$SITE_URL."/webservices/[login to view URL]".$last_inserted_id."'>Click Here...</a><br><br>





$json = array("status" => 1);


Problem is that mails are just received for gmail registrated accounts, but flagged as spam and do not trust,...

I tried for example [login to view URL] and [login to view URL] Registration, there it does not work.

Maybe someone knows the reason?

Evner: Android, Mobile App Development, PHP, System Administrator

Se mere: sending mail php, php sending html mail facebook mail, php sending html mail, email api php, mail.php download, php send email form, php mailer, php send email, smtp mail php code, mailgun php send email, user registration with email verification in php, fast sending mail php, php api getting contacts sending email, sending mail php method, php api mail, sending google mail api php, sending message using php facebook api, php send mail gmail api, media temple sending mail php, sending attachment mail php

Om arbejdsgiveren:
( 19 bedømmelser ) Kapfenberg, Austria

Projekt ID: #20041839

Tildelt til:

                                                's Profile Picture"                                                    >
                                        <div class=

Hi i know problem (with auto detected mails as spam) and can show how solve it, pm me, if u have any questions.

$15 USD på 1 dag
(3 bedømmelser)

16 freelancere byder i gennemsnit $26 på dette job


I can setup dkim, spf for you. I am a skilled hosting admin with over 10 years experience. let discuss more via private message.

$30 USD in 5 dage
(446 bedømmelser)

please reply now thanks

$50 USD på 1 dag
(221 bedømmelser)

hi i read the discription of your project ..............and am so excited to work on it we are full group consist of qualification designer & developer,we have high expert to compleate your project .......in a prof Flere

$20 USD in 7 dage
(61 bedømmelser)

Dear sir I have read requirements of your project with great care and I am very interested. I think that I am the right person for the job. I am a Android and Web(PHP, Javascript) Backend Expert and have full experien Flere

$20 USD in 7 dage
(13 bedømmelser)

We have experience of Website in PHP, Laravel, CodeIgnitor, Wordpress, Opencart, Woocommerce . We also have experience of making Android,Window and iphone application with ionic & phonegap. Benefits in working with Flere

$18 USD på 1 dag
(116 bedømmelser)

Dear Hiring Manager, I read your job description and I am confident that I can exceed your expectations. I am a professional programmer on PHP+MySQL+WordPress. Here is few recent work for website development : crm.n Flere

$20 USD in 7 dage
(30 bedømmelser)

Hello Professional !!!! Thanks for sharing your requirement here at Freelancer and I will be more than happy to help you. Let me share with you my expertise. I represent a company which holds an esteemed & reputed Flere

$20 USD in 7 dage
(10 bedømmelser)

Hi, nice to meet you. I read your project description and I am very interested in your project. I can resolve the problem within 1 hr. I am a full stack developer who has 10+ years of experience. I'm looking forwar Flere

$50 USD på 1 dag
(6 bedømmelser)

Hey, I am Noah, I've carefully gone through your posted job and I believe that I can easily work on your posted job. I ’m an expert Software Engineer with more than 8 years experiences in the field of development. I am Flere

$20 USD in 7 dage
(4 bedømmelser)

Hello There, Hope you’re having a great day. I would like to assure you that I’ve read the detail thoroughly. I’ve done the very similar task before and very much eager to do this task for you as well. I am available Flere

$25 USD in 2 dage
(4 bedømmelser)

Hello Sir, I'm a FullStack software engineer with 4+ years of experience working on multiple high traffic solutions. I've worked on 50+ project throughout my career, Last High traffic projects that I've worked on Flere

$20 USD in 2 dage
(1 bedømmelse)

Hi, This is not a generic bid, I have understood that what you are looking for. I can do this within a couple of days, Let me know if you are interested so we can move forward. Thanks, Naveed

$20 USD in 7 dage
(1 bedømmelse)

Portfolio: [login to view URL] Cv:[login to view URL] With a Bachelor’s Degree in Electronic Engineering, hands-on experience creating and implementing software applications, and the ability to d Flere

$30 USD på 1 dag
(0 bedømmelser)

If you are using a custom RegisterController you should be able to call $user->sendEmailVerificationNotification(); this in turn calls the $this->notify(new Notifications\VerifyEmail);

$25 USD på 1 dag
(0 bedømmelser)
$25 USD på 1 dag
(0 bedømmelser)