Jump to content

Net::SMTP is not working in few cases

Agarwal Sahab's Photo
Posted Nov 12 2009 10:53 PM
3631 Views

We are getting some special scenarios where Net::SMTP is not working for some mails.

we are sending a similar kind of data via mails but some of the mails are not received.

After checking the Net::SMTP in debug mode we found below difference:

Good One - (Mail sent properlly)
---
-----
Net::SMTP=GLOB(0x1bfcd34)>>>
Net::SMTP=GLOB(0x1bfcd34)>>> </body></html>
Net::SMTP=GLOB(0x1bfcd34)>>> .
Net::SMTP=GLOB(0x1bfcd34)<<< 250 2.0.0 nAD6WZah001063 Message accepted for delivery
Net::SMTP=GLOB(0x1bfcd34)>>> QUIT
Net::SMTP=GLOB(0x1bfcd34)<<< 221 2.0.0 XXX.yyy.com closing connection



Failed One - (Mail not recieved )
-----
----------
Net::SMTP=GLOB(0x1bfccb4)>>>
Net::SMTP=GLOB(0x1bfccb4)>>> </body></html>
Net::SMTP=GLOB(0x1bfccb4)>>> .
Net::SMTP=GLOB(0x1bfccb4)<<< 250 OK: data received
Net::SMTP=GLOB(0x1bfccb4)>>> QUIT
Net::SMTP=GLOB(0x1bfccb4)<<< 221 2.0.0 XXX.YYY.com closing connection


Can some one please help me undestanding this issue
Thanks in advance

Tags:
0 Subscribe


2 Replies

0
  JulieDelany's Photo
Posted Nov 13 2009 10:29 AM

Re net :: smtp - if the other end has said "250 ok" then the send has worked. Why do you think it hasn't worked? :)
 : Nov 16 2009 12:02 PM
As stated, if the other end responds with 250, the message has been accepted. The remote server has accepted responsibility for delivery of the message at that point. The content following the 250 response on the same line is the remote server's verbal comment, and can be different depending on the software they are using.