SMTP authentication in ASP

Discussions on webmail and the Professional version.
Post Reply

SMTP authentication in ASP

Post by kanasai » Wed Dec 10, 2003 4:32 pm


I saw this asp code for sending mail with asp. Is there SMTP authentication property in the asp component?

Dim oMail

Set oMail = server.CreateObject("MEMail.Message")

oMail.MailFrom = ""
oMail.MailFromDisplayName = "Test Account"
oMail.ContentType = "text/html;"
oMail.MailTo = ""
oMail.Subject = "Welcome to our service"

oMail.MessageBody = "<html><body><h1>Hello there,<BR>Welcome to our new service.</h1></body></html>"




Post by kanasai » Wed Dec 10, 2003 4:39 pm

Oh...there is no such property, ... oc37618489

How do I send email with asp if the SMTP requires authentication?


Post by mescruffy » Thu Dec 11, 2003 9:59 pm

the asp component doesn't require the SMTP login. However, unlike CDONTS you have to have a viable email address on the server in order to send the mail.

This totally messed me up in a postcard program that I had. Now instead of sending the postcards from the person browsing to their friends, I have to send them from

Posts: 19
Joined: Tue Nov 18, 2003 6:17 am
Location: Singapore

Post by whiteknight » Thu Dec 11, 2003 11:56 pm

Use CDO 2000 or .NET version of CDO...
CDONTS uses the SMTP in your IIS... but the CDO 2000 and .NET uses their own SMTP.
White Knight

David Payer

it should be there

Post by David Payer » Fri Dec 12, 2003 1:45 pm

kanasai wrote:Oh...there is no such property, ... oc37618489

How do I send email with asp if the SMTP requires authentication?
According to the information for MEPRO 1.14

This is not a complete list of changes.
Release 1.14 - 1st December 2003
Added: MEASP component can do SMTP authentication

So, you should be able to do it.

David Payer

Posts: 40
Joined: Sat Jun 15, 2002 9:44 pm
Location: United Kingdom

Post by Alyson_J » Sat Dec 13, 2003 5:40 pm

Good news, I've been looking for this addition for a while.

Do you have any code examples of how the authentication should be coded to work?

Posts: 20
Joined: Thu Jan 09, 2003 6:36 pm

Here too!

Post by imagin » Mon Dec 15, 2003 9:14 pm

I've even upgraded to the latest 1.14, but I cannot find any documentation on how to use Authentication. Does anyone know yet?

Post Reply