Discussion:
Any way to get the status if the email was successfully sent out
(too old to reply)
marwinmesa@yahoo.com [blat]
2018-10-18 05:39:08 UTC
Permalink
Hi Guys, i would like to ask if there are any ways to get the status if the email was successfully sent out ? for example i have sent out to a correct email address and incorrect email address however the status codes on those 2 transmissions are the same




1)with Correct Email Address Receiver
putline>>> DATA
<<<getline<<< 354 Start mail input; end with <CRLF>.<CRLF>
putline>>> QUIT
<<<getline<<< 221 2.0.0 FriendlySoft.fds.local Service closing transmission channel


2) with Incorrect Email Address Receiver
putline>>> DATA
<<<getline<<< 354 Start mail input; end with <CRLF>.<CRLF>
putline>>> QUIT
<<<getline<<< 221 2.0.0 FriendlySoft.fds.local Service closing transmission channel




Any Tips or advice would be appreciated.


Thanks
'Skand Bhargava' skand.bhargava@gmail.com [blat]
2018-10-19 06:52:04 UTC
Permalink
Is your local mail server accepting emails whether the email address is correct or wrong? Perhaps you may like to use the ReplyTo switch of blat to receive the bounced emails into?

Skand

-----Original Message-----
From: ***@yahoogroups.com [mailto:***@yahoogroups.com]
Sent: Thursday, October 18, 2018 9:39 AM
To: ***@yahoogroups.com
Subject: [blat] Any way to get the status if the email was successfully sent out




Hi Guys, i would like to ask if there are any ways to get the status if the email was successfully sent out ? for example i have sent out to a correct email address and incorrect email address however the status codes on those 2 transmissions are the same






1)with Correct Email Address Receiver
putline>>> DATA
<<<getline<<< 354 Start mail input; end with <CRLF>.<CRLF>
putline>>> QUIT
<<<getline<<< 221 2.0.0 FriendlySoft.fds.local Service closing transmission channel




2) with Incorrect Email Address Receiver
putline>>> DATA
<<<getline<<< 354 Start mail input; end with <CRLF>.<CRLF>
putline>>> QUIT
<<<getline<<< 221 2.0.0 FriendlySoft.fds.local Service closing transmission channel





Any Tips or advice would be appreciated.


Thanks
marwinmesa@yahoo.com [blat]
2018-10-22 03:11:34 UTC
Permalink
Is your local mail server accepting emails whether the email address is correct or wrong? Perhaps you may like to use the ReplyTo switch of blat to receive the bounced emails into?

Skand


Hi Skand, i tried add -ReplyTo <myemailaddress> and send email to 1) correct email address:***@yahoo.com 2) incorrect email address: ***@yahooc.om and i did not receive a bounce email notification for those 2 attempts, should i do some configurations ?


Thanks
gep2@terabites.com [blat]
2018-10-22 14:35:38 UTC
Permalink
ReplyTo is the address to which the recipient will (by default) respond to if they reply to your e-mail, not the address a bounce will come back to. The bounce if the mail isn't delivered will (hopefully) come back to your From: address (or the address it was actually sent from, which might not be the same I suppose).

The problem (as you maybe already realize) is that these bounces don't have any kind of standard format, and one bounce can even cover multiple recipients. If you want to handle something like that automatically, I would strongly urge you to write a program in SPITBOL (a GREAT pattern-matching language, great for doing stuff like this) to extract the data you'll want to find in the various kinds of bounce messages you'll be receiving. (and yes, SPITBOL is FAR better than PERL, which is probably the way most people who don't know better would try to do it).


You can get SPITBOL (free) tutorial and executable at the files area of the SPITBOL Yahoogroup.


If you REALLY don't want to bother learning SPITBOL, I could write something for you on a consulting basis. ;-)


I was using BLAT for projects with another consulting client of mine (a diesel oil and gasoline distributor), where they were sending invoices and credit memos (and price quotations too) to their clients every day, and they would also occasionally get bounces.
'Chip' chip.programmer@att.net [blat]
2018-10-19 21:58:42 UTC
Permalink
Post by ***@yahoo.com [blat]
Hi Guys, i would like to ask if there are any ways to get the status if the email was successfully sent out ? for example i have sent out to a correct email address and incorrect email address however the status codes on those 2 transmissions are the same
1)with Incorrect Email Address Receiver
putline>>> DATA
<<<getline<<< 354 Start mail input; end with <CRLF>.<CRLF>
putline>>> QUIT
<<<getline<<< 221 2.0.0 FriendlySoft.fds.local Service closing transmission channel
2) with Correct Email Address Receiver
putline>>> DATA
<<<getline<<< 354 Start mail input; end with <CRLF>.<CRLF>
putline>>> QUIT
<<<getline<<< 221 2.0.0 FriendlySoft.fds.local Service closing transmission channel
Any Tips or advice would be appreciated.
Thanks
Unfortunately, it is not your SMTP server’s responsibility to ensure your “RCPT TO:” email addresses are legitimate. The receiving server is responsible for validating email addresses, and typically sends an automated failure notice if the email address is not valid.

In the case where the TLD is wrong, that is still not the responsibility of your SMTP server to verify this at the moment of receiving your messages. The server will accept your email, then perform a DNS lookup of the domain to determine where your message needs to be sent. It is at that point where your SMTP server may send an automated message back to you indicating a problem.

If your SMTP server were to be configured to validate the TLD at the moment when “RCPT TO:” command is received, then it would respond with an error code other than value 250. Blat should then exit with error messages and an error code.

Chip
gep2@terabites.com [blat]
2018-10-20 17:13:16 UTC
Permalink
That still doesn't really give you a status of whether the e-mail was successfully delivered or not... that would only help if the domain name part of the e-mail address were valid.or invalid.

As you point out, only the (final!!) destination e-mail server will know whether the e-mail you're sending was successfully delivered into the recipient's e-mail inbox. There are many reasons why the e-mail might not be delivered... including:


1) the recipient's name part of their e-mail address is invalid, or the account has been closed.


2) the recipient's e-mail inbox might be full.


Also, note that there might be MULTIPLE e-mail servers involved... the e-mail address you're sending to might be forwarded to some other address (on the same, or a different server) one or more times before it actually ends up in the e-mail inbox from which your recipient's e-mail client actually reads it from. Any of those servers in the chain could have the issues mentioned above.


Complicating things further, the e-mail you're sending could have multiple destination e-mail adddresses... multiple To: or Cc: or Bcc: addresses. These could all have different delivery statuses.


It's fair to say that you wouldn't WANT blat to delay until all these delivery steps are completed before it returned a status... if it did, it would take a LONG time to complete a large group mailing.


I'll also point out that some ill-designed mail delivery services (like "Constant Contact" IIRC) provide a report to the sender regarding which e-mails have actually been opened and viewed, which they generally do by putting in something like a single-pixel (or bigger!) image embedded in the post, and then reporting to the sender if and when that image was retrieved. Of course, anybody who isn't stupid about such things uses an e-mail client (like Thunderbird) which can be configured to NOT automatically retrieve such remote images when the e-mail is opened...!! Some senders don't understand this, and eventually send me e-mails asking why I'm not opening or reading the things they've sent me. :-((((
marwinmesa@yahoo.com [blat]
2018-10-22 02:26:10 UTC
Permalink
Thanks Gep_2 for the post above, i understand now that "only the (final!!) destination e-mail server will know whether the e-mail you're sending was successfully delivered into the recipient's e-mail inbox. "

however maybe i can capture more response code from my sending SMTP server regarding it.


I'll inquire more from one of the person who replied to this email about -Replyto feature
marwinmesa@yahoo.com [blat]
2018-10-22 02:30:26 UTC
Permalink
Hi Chip,


Unfortunately, it is not your SMTP server’s responsibility to ensure your “RCPT TO:” email addresses are legitimate. The receiving server is responsible for validating email addresses, and typically sends an automated failure notice if the email address is not valid.


How do i capture the automated failure notice that you mentioned above?
rod@en-consult.ca [blat]
2018-10-22 03:20:02 UTC
Permalink
It's not a Blat solution, but I've used a utility called POPclient which is called through a batch file. Set it up to use the email account you're using in your Blat emails' From or ReplyTo address. Run POPclient periodically and check for any emails it downloads.
http://www.codeode.com/popclient.html http://www.codeode.com/popclient.html


Another choice would be simply to use an email client like ThunderBird, set up for the aforementioned address, and check it occasionally. With ThunderBird you can even make a filter which watches for failure emails and auto-forwards that to an email address you use all the time.
Continue reading on narkive:
Loading...