SMTP authentication in ASP

Discussions on webmail and the Professional version.
Post Reply
kanasai

SMTP authentication in ASP

Post by kanasai »

Hi,

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 = "peter@mailenable.com"
oMail.MailFromDisplayName = "Test Account"
oMail.ContentType = "text/html;"
oMail.MailTo = "peter@mailenable.com"
oMail.Subject = "Welcome to our service"

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

oMail.SendMessage

%>

kanasai

Post by kanasai »

Oh...there is no such property, http://www.mailenable.com/documentation ... oc37618489

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

mescruffy

Post by mescruffy »

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 postcards@my-domain.com

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

Post by whiteknight »

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 »

kanasai wrote:Oh...there is no such property, http://www.mailenable.com/documentation ... 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

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

Post by Alyson_J »

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?
Aly

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

Here too!

Post by imagin »

Yes,
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