Troubleshoot the SMTP Server

The SendMail function in PeopleSoft uses the SMTP server to send emails. The first thing to do when troubleshooting problems with emails not being sent is to make sure your SMTP server is up and running. In this post, I will show you how to verify if you can connect to the SMTP server as well as manually sending an email!

Note: I’m using Unix Telnet to connect to the SMTP sever.

Let’s get started by trying to connect to the server:

Open a telnet session and login to the server box you would like to test sending emails from. I will be logging in to a DEV environment.

Step one:
Once logged in successfully, type:

$ telnet <Your-SMTP-Server> 25

And you shoud see...
Trying...
Connected to <Your-SMTP-Server>.
Escape character is '^]'.
220 <Your-SMTP-Server> ESMTP Sendmail 8.11.7p3+Sun/8.11.6; Mon, 14 Apr 2008 14:24:56 -0500 (CDT)
 

Great our DEV box allowed to connect to the SMTP server.

 

Step Two:
Send an email manually:
Lets identify ourselves with the HELO command and the domain name we are coming from. For example, if your work email address is your-name@yourcompany.com then your domain name would be yourcompany.com

helo yourcompany.com

And you should see…
250 <Your-SMTP-Server> Hello serverbox.yourcompany.com , pleased to meet you

 

Now type the email address you want the email to appear from:

mail from:test@yourcompany.com
250 2.1.0 <a href="mailto:test@yourcompany.com">test@yourcompany.com</a>... Sender ok

Now type the email address you would want the message to go to:
rcpt to:you@yourcompany.com
250 2.1.5 <a href="mailto:you@yourcompany.com">you@yourcompany.com</a>... Recipient ok

Now, lets type the email message. You will need to issue the command "data" then start typing your message, once done click enter and type "." And then enter. A single point "." On a line by itself followed by and enter means you are done typing your message.

 

data
354 Enter mail, end with "." on a line by itself
This is a test email using SMTP.
.
250 2.0.0 m3EJaMf21424 Message accepted for delivery

To send your message just type "quit" in the command line and your done.
quit
221 2.0.0 <Your-SMTP-Server> closing connection
Connection closed.

转载于:https://www.cnblogs.com/GoDevil/archive/2008/08/28/1278596.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值