This topic is locked
[SOLVED]

  more SMTP Server

8/30/2012 10:50:43 AM
ASPRunnerPro General questions
M
marcove author

Hi

Is it possible to set in a ASPRunner project, more one SMTP server, because I need to use more than one?

Thank you

Sergey Kornilov admin 8/30/2012

You need to elaborate how do you plan to use more then one SMTP server.

M
marcove author 8/31/2012

In the same project, there are two mailing systems:
One of them, send emails to public mail, so use a public SMTP server

The second, sends emails to intranet mail server, so here I need to use a local SMTP server.
How could I set differts SMTP in project, Please?

Thank you

M

Sergey Kornilov admin 8/31/2012

When you need to send an email via second SMTP server - specify all SMTP parameters right in your code.
Examples are at http://www.paulsadowski.com/wsh/cdo.htm

Set objMessage = CreateObject("CDO.Message")

objMessage.Subject = "Example CDO Message"

objMessage.From = "me@my.com"

objMessage.To = "test@paulsadowski.com"

objMessage.TextBody = "This is some sample message text."
objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing";) = 2
objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver";) = "smtp.myserver.com"
objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport";) = 25
objMessage.Configuration.Fields.Update

objMessage.Send
M
marcove author 9/3/2012

Many thanks

But If I need to attach a file stored in a web directory, using ASPRunner project (file path is stored in a field of DB), How could I do?

Thank you

M

Sergey Kornilov admin 9/3/2012

This page provides examples of sending email with attachment as well:

http://www.paulsadowski.com/wsh/cdo.htm

M
marcove author 9/3/2012

Sergey Many Thanks.

It works fine!
Bye M