如何自动为我的网站成员创建一个电子邮件地址? [英] How can I automatically create an email address for my website members?

查看:206
本文介绍了如何自动为我的网站成员创建一个电子邮件地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何自动为我的网站成员创建电子邮件地址并将邮件转发到自己的电子邮件地址。



例如。


  1. john123注册到我的会员网站。

  2. 脚本自动创建电子邮件地址john123@mydomain.com

  3. mail to john123@mydomain.com转到johns电子邮件地址:john123@hotmail.com


解决方案

如果我记得这样正确,这是我做的。这不是你如何设想它发生的事情。



1:而不是弹出发送到错误的电子邮件地址的电子邮件,我将其发送到PHP脚本。 / p>

2:脚本解析To字段中的用户名部分,并在DB中检查,如果找到匹配项,请获取真实的电子邮件



3:将电子邮件重新发送到实际地址。


How can I automatically create an email address for my website members and forward the mail to their own email address.

eg.

  1. john123 signs up to my members site.
  2. script automatically creates email address john123@mydomain.com
  3. mail to john123@mydomain.com goes to johns email address: john123@hotmail.com

解决方案

If i remember this correctly, this is how i did it. This is not how you envision it to happen though.

1 : Instead of bouncing emails which were sent to a wrong email addy, i routed them to a PHP script.

2 : The script parsed the username part in the "To" field and checked in DB, if match found, get the real email

3 : Re-mail the email to real address.

这篇关于如何自动为我的网站成员创建一个电子邮件地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆