snowman
  • snowman
  • 57.5% (Neutral)
  • Newbie Topic Starter
9 years ago
The page here https://www.emailarchitect.net/easendmail/ex/d/7.aspx  explains how to send emails using the queue.

I couldn't make the example work using the exact code on that page because in the line

If oSmtp.SendMailToQueue() = 0 Then


SendMailToQueue expected a string parameter (Formal parameter name 'Instant') to be passed to it.

Not knowing what that was, I simply passed the empty string and the email queuing and sending worked fine.

But what is the parameter Instant supposed to be used for and is there anything special that I should be setting it to?

ivan
  • ivan
  • 100% (Exalted)
  • Administration
9 years ago

oSmtp.SendMailToQueue doesn't require a parameter

SendMailToQueueEx requires a parameter.

You can refer to this link:

https://www.emailarchitect.net/easendmail/sdk/?ct=sendmailtoqueue 

https://www.emailarchitect.net/easendmail/sdk/?ct=sendmailtoqueueex 
snowman
  • snowman
  • 57.5% (Neutral)
  • Newbie Topic Starter
9 years ago
Yes I did look at those links, hence my post.
The only explanation for the Paramater is

instance
A String value used to specify EASendMail Service instance.


and the example shows simply

hres = oSmtp.SendMailToQueueEx( "myinstance" )



But how do I know what string vaule I need to pass for any particular installation?
How do I know what my "EASendMail Service instance" is?

Passing an empty string to SendMailToQueueEx seems to work, so what is the difference detween doing that and passing some other string ?
ivan
  • ivan
  • 100% (Exalted)
  • Administration
snowman
  • snowman
  • 57.5% (Neutral)
  • Newbie Topic Starter
9 years ago
Ah, OK I understand now, thank you.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.