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 孟德尔随机化结果不一致
  • ¥15 深度学习残差模块模型
  • ¥50 怎么判断同步时序逻辑电路和异步时序逻辑电路
  • ¥15 差动电流二次谐波的含量Matlab计算
  • ¥15 Can/caned 总线错误问题,错误显示控制器要发1,结果总线检测到0
  • ¥15 C#如何调用串口数据
  • ¥15 MATLAB与单片机串口通信
  • ¥15 L76k模块的GPS的使用
  • ¥15 请帮我看一看数电项目如何设计
  • ¥23 (标签-bug|关键词-密码错误加密)