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

Notification

Icon
Error

Options
Go to last post Go to first unread
dougtpx  
#1 Posted : Friday, August 11, 2017 7:17:39 AM(UTC)
dougtpx

Rank: Newbie

Groups: Registered
Joined: 8/11/2017(UTC)
Posts: 1
United States
Location: Atlanta GA

I am installing EASendEmail on a Windows Server 2012 server and want to use it to send DKIM signed emails from within classic asp forms.

Can anyone show me how to modify the following code to work with EASendMail?

Function sendASPEMail(fromName, fromAddr, toName, toAddr, subject, strEmailBody, hdrName, hdrValue, strResponse)

' establish connection
Set Mail = Server.CreateObject("??????????")
Mail.Host = "smtp.tpxcnex.com"
Mail.Port = 25
Mail.Username = "postmaster@tpxcnex.com"
Mail.Password = "********"

' populate variables
Mail.Subject = subject
Mail.From = fromAddr
Mail.FromName = fromName
Mail.AddAddress toAddr, toName
Mail.AddCustomHeader "Precedence: bulk"
Mail.Body = strEmailBody
Mail.IsHTML = True
Mail.ContentTransferEncoding = "Quoted-Printable" ' Required

' open signer certificate
' X509Certificate2 Cert = new X509Certificate2(Server.MapPath("C:\Users\usr050198\Desktop\12345DKIMCert.cer"), "test" );

' check for errors. if none send email
strErr = ""
bSuccess = False
On Error Resume Next ' catch errors
If Err <> 0 Then ' error occurred
strErr = Err.Description
Else
bSuccess = True
Mail.Send
End If
End Function
ivan  
#2 Posted : Friday, August 11, 2017 4:47:23 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)
Hi, i have received your email and replied to you, please check your email.
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.106 seconds.

EXPLORE TUTORIALS

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