douna5529 2009-12-07 07:12
浏览 76
已采纳

使用电子邮件身份验证注册,只有30%被激活?

I am using php and mysql. And my site is in flash (full flash site)

I have a website which let users to sign up. The signup process including sending "activation email", click link to activate account.

The first two weeks was fine. Out of around 2000 users, 1800 users are activated. After that, the activated users drop drastically, to about 30%. Example: 1000 users signup, only 300 were activated.

At first, I found the problem is because the email could not be reach to ymail, msn and gmail users. (Most of my subscribers are Ymail (yahoo), hotmail/msn(live) and gmail (gmail)). I tried signup using ymail and hotmail, but i didnt get any activation email. I contacted yahoo and msn, eventually my email can go through now.

However, my signup statistic still showing, the activated users are only about 30%, which very confuse me. I contact my hosting company, ask them the whitelist my IP. And they did it.

I need your advice/help on following questions:

  • How to check where the problem lies? Is the email not delivered? User receive email but didnt click the activation link?

I am using php mail funstion. and this is my headers:

  $headers = 'MIME-Version: 1.0' . "
";

  $headers .= 'Content-type: text/html; charset=UTF-8' . "
";

  $headers .= 'From: Admin <\admin@domain.com>' . "
";

  $headers .= 'Return-Receipt-To: Bounce <\bounce@domain.com>' . "
";

  $headers .= 'Reply-To: Admin <\admin@domain.com>' . "
";

  $return_path = "\bounce@domain.com\";

(I hide my domain name, and i add backslashes within emails, cuz if not, the email wont show here, weird)

Is there anything wrong with the headers?

  • What can I do to improve my registration/signup activation process?
  • 写回答

4条回答 默认 最新

  • dqvtm82066 2009-12-07 07:20
    关注

    You should pass your return path as "-f" parameter for mail() function:

    mail(
        $this->recipient,
        $subj,
        $this->body,
        $this->compose_headers(),
        '-f ' . Options::obj()->mail->return_path);
    

    Also, for the best results, if the sending server has a public domain name example.com, the return path should be something@example.com.

    Anyway, you should definitely check the logs (/var/log/mail*) to know exactly what's going on.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 ad5933的I2C
  • ¥15 请问RTX4060的笔记本电脑可以训练yolov5模型吗?
  • ¥15 数学建模求思路及代码
  • ¥50 silvaco GaN HEMT有栅极场板的击穿电压仿真问题
  • ¥15 谁会P4语言啊,我想请教一下
  • ¥15 哪个tomcat中startup一直一闪而过 找不出问题
  • ¥15 这个怎么改成直流激励源给加热电阻提供5a电流呀
  • ¥50 求解vmware的网络模式问题 别拿AI回答
  • ¥24 EFS加密后,在同一台电脑解密出错,证书界面找不到对应指纹的证书,未备份证书,求在原电脑解密的方法,可行即采纳
  • ¥15 springboot 3.0 实现Security 6.x版本集成