We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

SMTP Specify delivery time

PatrickJmorrow
on
Medium Priority
302 Views
Last Modified: 2010-08-05
Hello,

I am wondering if there is a way to set a specific delivery time for each and every message I would programitically create.  I am not sure how or if this is possible.  What I am saying is say I have a program that sends mail out using SMTP well when it is delivered to the SMTP server I am at the mercy of the rules that have been setup on the specific mail server.  So it might immediately send it out or maybe it will batch 100 messages and then send them out in FIFO like manner or maybe it waits until some predetermined amount of time has passed since that message entered the queue then sends it out.  What I am asking is, is there a  way to append to the message itself, maybe in its header, that says don't send this message out until this time.  But remember I may not have physical access to that mail server.  Thats why  I want to append some property or command for a lack of a better term that tells that server to hold off on sending it until the time specified in that parameter has been met.

Thank you in advance for your time.
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2016
Commented:
>>to set a specific delivery time for each and every message I would programitically create

With SMTP AFAIK no

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
PatrickJmorrowSecurity Network and Infrastructure

Author

Commented:
With any of the mail protocols?
CERTIFIED EXPERT
Top Expert 2016

Commented:
AFAIK none of them supports it. What if everyone chose the same time? ;-)
Java Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
you could instead use a timer (eg. java.util.Timer) to delay the actual sending of it to the smtp server. You're still at the mercy of smtp server as to when it actual gets sent, but at least it won't be sent *before* the desired time.
Mayank SPrincipal Technologist
CERTIFIED EXPERT

Commented:
This might actually be proprietary to the server, in case the server allows you to set such a time on a post to it (maybe it would defer sending it until the time arrives). Try posting on the server TA (like if you use Exchange Server, post on the Exchange Server TA).
PatrickJmorrowSecurity Network and Infrastructure

Author

Commented:
Yeah java.util.Timer was my first thought.  Just wondered if there was a way to insert a "deliverytime" in a header of a message or something like that before creating a scheduler like app.  It appears that the answer is no though and that makes tons of sense.  Was just curious before I started heading down one design path.  Wanted to see what my options were.  I appreciate the quick replies from each of you.
Mayank SPrincipal Technologist
CERTIFIED EXPERT

Commented:
No, its more likely to be a server configuration if the server allows it (I don't know of any).
CERTIFIED EXPERT
Top Expert 2016

Commented:
Well of course if you hande the dispatching of mail directly, rather than sending it to, say, your ISP, you have more control of when it goes
PatrickJmorrowSecurity Network and Infrastructure

Author

Commented:
Mayankeagle,

I appreciate your response also but sadly I see this program in my mind I won't have access to any SMTP servers myself.  The user who purchases this would setup what SMTP server to use so it could be a work server or an ISP's server.  Thats why I was looking for some protocol acceptable way of specifying the delivery time.  It appears that this cannot be done so I will just have to control the sending from my program.  Which is rather simple to achieve just was curious about this approach as perhaps another option.  Thanks again to all.
PatrickJmorrowSecurity Network and Infrastructure

Author

Commented:
I decided to split the points.  CEHJ gave me the answer but I felt that if anyone were reading this thread and were not aware of Java's Timer classes could use objects response as a starting point to learn more about that as a possible solution.

Thanks again
CERTIFIED EXPERT
Top Expert 2016

Commented:
:-)
Mayank SPrincipal Technologist
CERTIFIED EXPERT

Commented:
Sure, no problem.
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
(:
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.