English 中文(简体)
寄送当地托管但不是服务器的邮件
原标题:Mail sent in localhost but not in server
  • 时间:2012-05-17 12:07:22
  •  标签:
  • localhost

我正在“电子商务”网上工作。 我想寄送邮件,因为用户已在同一个电子邮件前登记并试图再次登记。 邮件含有体质,因为“用户名称是某些用户名称”。 当我写并执行该法典时,该法典在当地的工作受到罚款。 但是,在服务器上运行(在全球导航卫星系统服务器上建立一个新网站之后)时,没有寄出邮件。 另一件事是,一页将在当地显示“成功发送邮件”的情况。 但它没有在服务器上显示,尽管该机的舱面相同。 任何人都可以向我提出解决办法。

问题回答

这一解决办法需要发送邮件(CLI),接受PHP的电子邮件,与MSTP服务器连接并发送电子邮件。 您无需通过指挥加以使用,不要对它有 both。 页: 1 并遵循这些步骤:

Create a folder named “sendmail” in “C:wamp”.
Extract these 4 files in “sendmail” folder: “sendmail.exe”, “libeay32.dll”, “ssleay32.dll” and “sendmail.ini”.
Open the “sendmail.ini” file and configure it as following
    smtp_server=smtp.gmail.com
    smtp_port=465
    smtp_ssl=ssl
    default_domain=localhost
    error_logfile=error.log
    debug_logfile=debug.log
    auth_username=[your_gmail_account_username]@gmail.com
    auth_password=[your_gmail_account_password]
    pop3_server=
    pop3_username=
    pop3_password=
    force_sender=
    force_recipient=
    hostname=localhost

You do not need to specify any value for these properties: pop3_server, pop3_username, pop3_password, force_sender, force_recipient. The error_logfile and debug_logfile settings should be kept blank if you have already sent successful email(s) otherwise size of this file will keep increasing. Enable these log file settings if you don’t get able to send email using sendmail. 




相关问题
ASP.NET WebService deny remote access

I ve created an ASP.NET WebService that is to be consumed using ASP.NET Ajax. The WebService is located on the same box and same web application that it is to be used by, so I do not want to allow ...

IOException when making HttpWebRequest to local ASHX file

Greetings, all. Here is my situation. I am attempting to make an HttpWebRequest to a local handler file and I keep getting the following exception: Unable to read data from the transport connection:...

Localhost issue with Net.Msmq endpoints on Windows 7

I ve just moved my development to a Win 7 64-bit machine and am having some wcf endpoint issues. As far as I can see the net.msmq endpoints that point to localhost do not work. The messages do get ...

Allowing "Cross-Site" calls between local ports

I m working on a Google Web Toolkit driven site that communicates via AJAX to a WCF server. Once deployed the GWT code will run in the same domain as the WCF service but when developing/debugging ...

Rmi connection refused with localhost

I have a problem using java rmi: When I m trying to run my server, I get a connectException (see below). Exception happens when executing the rebind method: Runtime.getRuntime().exec("rmiregistry ...

Updating your blog from a localhost version

Okay, I trust this is not a ServerFault question, though it has something to do with server settings, the main issue might concern some programming. I use Wordpress as my blogging platform, only ...

send email from localhost

I m try learn about email in rails. I m developing something on localhost. Is it possible to send an email from localhost to say a normal mail account like gmail? Do I have a install a mail server? I ...

Visual Studio Localhost Redirect Problem Asp.net

I have a test site running on Visual Studio 2008. When I try to debug and it opens up the browser through localhost, I can this error"Firefox has detected that the server is redirecting the request ...

热门标签