发送电子邮件问题...... [英] Sending email issues...

查看:88
本文介绍了发送电子邮件问题......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我几周都试图从windows pc发送电子邮件,从我的Gmail帐户到我的hotmail帐户。使用net :: smtp模块发送电子邮件失败,请帮助。 (对于项目d,它适用于普通的电子邮件服务器,但不是gmail服务器,我仍然非常困惑!!)


代码(下面的项目c)它一直抱怨和日志和代码如下。


a)apache访问日志

--------------------- ------------

127.0.0.1 - - [09 / Jun / 2009:16:33:15 -0700]GET / cgi-bin / net- email2.pl HTTP / 1.1" 500 543


b)apache错误日志...

--------------------- -------------

[Tue Jun 09 16:33:45 2009] [错误] [client 127.0.0.1]脚本标题过早结束:net-email2 .pl

[Tue Jun 09 16:33:45 2009] [错误] [客户端127.0.0.1]连接到SMTP服务器失败\ r


错误日志



c)无法发送电子邮件的代码

----------------- ---------------------------------------

展开 < span class =codeDivider> | 选择 | Wrap | Line数字

解决方案

快速执行 Google搜索,您将要阅读文章。它解释了你没有做的事情。


问候,


杰夫


嗨先生,


谢谢!再一次,你来这里救援。此外,我认为使其工作只需几步改进。请在错误项目a)下面提出错误可能的错误建议?特别是模块我认为我安装了四个模块(来自 http://robertmaldon.blogspot.com/200...smtp-from.html


模块安装

--------------------------

1)Net_SSLeay.pm (打开SSL) - 在我的ppm gui中它是Net-SSLeay,不确定它是否相同?

2)IO-Socket-SSL

3)Authen-SASL

4)Net-SMTP-SSL



注意:


1)我用不同的选择和方法尝试了一整天。我收到了apache错误文件。访问apache的文件。 127.0.0.1 - - [11 / Jun / 2009:17:40:05 -0700]" GET /cgi-bin/gmail-work.pl HTTP / 1.1" 500 543.


2)我很好奇如何安装C:/Perl/site/lib/IO/Socket/SSL.pm和其他模块。不确定Net :: SSLeay这些软件包是什么以及它是如何工作的。


3)还有如何从命令行和gui安装ppm,特别是每个目录的工作方式。任何启动指南?


a)apache的错误文件。

-------------- -------------------

[Thu Jun 11 17:40:06 2009] [错误] [客户端127.0.0.1]提前结束脚本标题:gmail-work.pl

[Thu Jun 11 17:40:06 2009] [错误] [客户端127.0.0.1]无法在@INC中找到Net / SSLeay.pm( @INC包含:C:/ Perl / site / lib C:/ Perl / lib。)在C:/Perl/site/lib/IO/Socket/SSL.pm第18行。\ r

[Thu Jun 11 17:40:06 2009] [错误] [客户端127.0.0.1] BEGIN失败 - 编译在C:/Perl/site/lib/IO/Socket/SSL.pm第18行中止。

[Thu Jun 11 17:40:06 2009] [错误] [client 127.0.0.1]在C:/Perl/site/lib/Net/SMTP/SSL.pm行的require中编译失败8. \r

[Thu Jun 11 17:40:06 2009] [错误] [客户端127.0.0.1] BEGIN失败 - 编译在C:/ Perl / site / lib / Net中止/SMTP/SSL.pm第8行。\ r

[Thu Jun 11 17:40:06 2009] [错误] [客户端127.0.0.1] D:/ Program Files中的require编译失败/ Apache Software Foundation / Apache2.2 / cgi-bin / gmail-work.pl line 3. \ r

[Thu Jun 11 17:40:06 2009] [错误] [客户端127.0。 0.1] BEGIN失败 - 编译在D:/ Program Files / Apache Software Foundation / Apache2.2 / cgi-bin / gmail-work.pl第3行中止。\ r



b)代码

-----------

展开 | 选择 | Wrap | 行号


任何替代方案?干杯..

Hi All,

I am trying for weeks how to send email from windows pc, which from my gmail account to my hotmail account. Using net::smtp module sending email failed,Kindly assist. (for the item d it is working for normal email servers, but NOT with gmail server, I am very puzzled still!!)

Codes(item c below) It keeps complaining and logs and codes are below.

a) apache access logs
---------------------------------
127.0.0.1 - - [09/Jun/2009:16:33:15 -0700] "GET /cgi-bin/net-email2.pl HTTP/1.1" 500 543

b) apache error Logs...
----------------------------------
[Tue Jun 09 16:33:45 2009] [error] [client 127.0.0.1] Premature end of script headers: net-email2.pl
[Tue Jun 09 16:33:45 2009] [error] [client 127.0.0.1] Connection to SMTP server failed\r

Error Logs


c) Not working codes for sending email
--------------------------------------------------------

Expand|Select|Wrap|Line Numbers

解决方案

Doing a quick Google search, you are going to want to have a read on this article. It explains what you are not doing.

Regards,

Jeff


Hi Sir,

Thanks! Once again, you are here to come to rescue. Also, I think it is few steps improvement to making it work. Please kindly advise on the error item a) below where the error possibly lies? Especially the modules as I believed I have installed the four modules(which is from http://robertmaldon.blogspot.com/200...smtp-from.html) from ppm gui program.

modules installed
--------------------------
1) Net_SSLeay.pm (Open SSL) - in my ppm gui it is Net-SSLeay, not sure if it same?
2) IO-Socket-SSL
3) Authen-SASL
4) Net-SMTP-SSL



NOTES :

1) I tried the whole day with different alternatives and methods. I got the apache error file. Access file for apache. 127.0.0.1 - - [11/Jun/2009:17:40:05 -0700] "GET /cgi-bin/gmail-work.pl HTTP/1.1" 500 543.

2) I am curious how to get C:/Perl/site/lib/IO/Socket/SSL.pm and other modules installed. Not sure what these packages like Net::SSLeay are and how it works.

3) And also how to install from command line and gui for ppm, especially how the directories for each works. Any guide to start up?


a) error file for apache.
---------------------------------
[Thu Jun 11 17:40:06 2009] [error] [client 127.0.0.1] Premature end of script headers: gmail-work.pl
[Thu Jun 11 17:40:06 2009] [error] [client 127.0.0.1] Can''t locate Net/SSLeay.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/IO/Socket/SSL.pm line 18.\r
[Thu Jun 11 17:40:06 2009] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at C:/Perl/site/lib/IO/Socket/SSL.pm line 18.\r
[Thu Jun 11 17:40:06 2009] [error] [client 127.0.0.1] Compilation failed in require at C:/Perl/site/lib/Net/SMTP/SSL.pm line 8.\r
[Thu Jun 11 17:40:06 2009] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at C:/Perl/site/lib/Net/SMTP/SSL.pm line 8.\r
[Thu Jun 11 17:40:06 2009] [error] [client 127.0.0.1] Compilation failed in require at D:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/gmail-work.pl line 3.\r
[Thu Jun 11 17:40:06 2009] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at D:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/gmail-work.pl line 3.\r



b) code
-----------

Expand|Select|Wrap|Line Numbers


any alternative? Cheers..


这篇关于发送电子邮件问题......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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