Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
snowman  
#1 Posted : Sunday, November 8, 2015 4:10:32 AM(UTC)
snowman

Rank: Newbie

Groups: Registered
Joined: 10/6/2015(UTC)
Posts: 1

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
Quote:
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  
#2 Posted : Sunday, November 8, 2015 7:57:08 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,153

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)

oSmtp.SendMailToQueue doesn't require a parameter

SendMailToQueueEx requires a parameter.

You can refer to this link:

https://www.emailarchite.../sdk/?ct=sendmailtoqueue

https://www.emailarchite...dk/?ct=sendmailtoqueueex
snowman  
#3 Posted : Monday, November 9, 2015 12:41:20 AM(UTC)
snowman

Rank: Newbie

Groups: Registered
Joined: 10/6/2015(UTC)
Posts: 1

Yes I did look at those links, hence my post.
The only explanation for the Paramater is

Quote:
instance
A String value used to specify EASendMail Service instance.

and the example shows simply
Quote:
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  
#4 Posted : Monday, November 9, 2015 12:47:57 AM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,153

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
Hi, here is the detail:

SMTP Instances:
https://www.emailarchite...ail/sdk/?ct=svc_instants
snowman  
#5 Posted : Monday, November 9, 2015 8:57:39 AM(UTC)
snowman

Rank: Newbie

Groups: Registered
Joined: 10/6/2015(UTC)
Posts: 1

Ah, OK I understand now, thank you.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.077 seconds.

EXPLORE TUTORIALS

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