formmail在数据库中发送电子邮件

formmail在数据库中发送电子邮件

问题描述:

Here's what I need to setup...and I am not well versed in PHP/SQL...but this is what I'm trying to do.

On the New User database, I will have a section where they can have information sent to their phone using the provider's default e-mail to text msg (i.e. 2225551212@txt.att.net.)

New User: 
Input number: ______________(2225551212 format, no hyphens, etc.)
Select Provider: (Drop-down menu with proper @provider.ext...)

Then the formmail, when sent, if for specific user will get ($phone".@."$provider); or something like that and send a preset message like: $user."requested information on ".$product."on".$date." at ".$time.".";

Is this possible?

The $user, $product, $date, $time all are generated directly from the most recent input page for a database.

Is this possible?

Please help!

以下是我需要设置的内容......而且我不熟悉PHP / SQL ...但是这个 我正在尝试做什么。 p>

在新用户数据库中,我将有一个部分,他们可以使用提供商的默认电子邮件发送到他们的手机信息到文本消息 (即2225551212@txt.att.net。) p>

 新用户:
输入号码:______________(2225551212格式,无连字符等)
选择提供者:(删除 -  下面的菜单有正确的@ provider.ext ...)
  code>  pre> 
 
 

然后发送的formmail,如果特定用户将获得($ phone“。@。” $提供商); 或类似的东西,并发送预设的消息,如: $ user。“请求信息”。$ product。“on”。$ date。“at”。$ time。“。”; p> \ n

这可能吗? p>

$ user,$ product,$ date,$ time都是直接从数据库的最新输入页面生成的。 p> \ n

这可能吗? p>

请帮助! p> div>

Assuming your question is "can I send a text message from PHP", then yes; if the server where you are running PHP is configured to send email, then within PHP you can try:

mail('2225551212@txt.att.net', 'New User', $user."requested information on ".$product."on".$date." at ".$time.".");

For more help with the mail() function, check out http://php.net/mail .