UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  eUKhost's Official Web Hosting Forum > Technical Support > Windows Reseller Hosting

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-05-2009, 12:30
new member
 
Join Date: May 2009
Posts: 6
Default mailsend from classic asp

I'm using classic asp what method is allowed to invoke an email to be sent from a form?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-05-2009, 14:33
eUK-Martin's Avatar
Windows System Administrator
 
Join Date: Nov 2005
Location: Earth
Posts: 628
Default

You can use the "CreatObject" method in your ASP scripts and use any of the following component:

CDOSys
ASPMAIL
ASPEMAIL

If you are also looking for a script then please email windows[at]eukhost.com and we will give you an example script.
__________________
Martin
Chief R & D Officer.

Windows 100% Uptime Hosting - Windows Dedicated Server - Web Hosting Tutorials
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-05-2009, 16:55
flesso's Avatar
Premium Member
 
Join Date: Mar 2007
Location: 127.0.0.1
Posts: 1,652
Default

I'd give Jmail a try if possible, probably the best one I've ever used. Let me know if you want any code examples.
__________________
Josh

Resident Blogger
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 25-06-2009, 09:51
new member
 
Join Date: May 2009
Posts: 6
Default

Hi guys following on from this I have a new problem I need to get round.

I have the follwoing code which works AOK:

'Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
'Mailer.ContentType = "text/html"
'Mailer.FromName = "XXX"
'Mailer.FromAddress= "xx@xx.co.uk"
'Mailer.RemoteHost = "mail.xx.co.uk"
'Mailer.AddRecipient SendRS("Name"), SendRS("EmailAddress")
'Mailer.Subject = "XXX"
'Mailer.BodyText = Mailbody

I have placed this in a loop where Name and EmailAddress are stored in a db however it doesn't like the referance to a recordset as the recipient, it works if I hardcode the recipient details.

On another server I use I can get it to work using CDO no problem:

Set myMail=CreateObject("CDO.Message")
myMail.Subject= "xxxx"
myMail.From="xx@xx.co.uk"
myMail.To= SendRS("EmailAddress")
myMail.HTMLBody = Mailbody
myMail.Send
set myMail=nothing

Any pointers greatfully recieved
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 25-06-2009, 10:19
Senior Member
 
Join Date: Aug 2008
Posts: 177
Default

I've not seen this problem, but have you tried saving the recordset data in a couple of variables:

txtSendToName = SendRS("Name")
txtSendToAddress = SendRS("EmailAddress")

and then:

Mailer.AddRecipient txtSendToName, txtSendToAddress

Just a suggestion.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 25-06-2009, 10:20
new member
 
Join Date: May 2009
Posts: 6
Default

Yes sorry should have said I have already tried banging them into a couple of vars
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 29-06-2009, 08:32
new member
 
Join Date: May 2009
Posts: 6
Default

Any other ideas?... anyone
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-07-2009, 21:04
Rock's Avatar
Technical Support (eUKhost.com)
 
Join Date: Oct 2006
Location: localhost
Posts: 3,356
Send a message via MSN to Rock Send a message via Skype™ to Rock
Smile

Here's a sample working CDOSYS mail script which you can give a try with:
Quote:
<%
Set oMail = Server.CreateObject("CDO.Message")
Set iConf = Server.CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
iConf.Fields.Update
Set oMail.Configuration = iConf
oMail.To = "recipient@his-domain.co.uk"
oMail.From = "sender@domain.co.uk"
oMail.Subject = "Test mail.."
oMail.BodyPart.ContentTransferEncoding = "quoted-printable"
oMail.HTMLBody = HTML
oMail.Send
Set iConf = Nothing
Set Flds = Nothing
%>
<html>
Message Sent !!!
</html>
Let us know if you need any further assistance.. Good luck !
__________________

Rock _a.k.a._ Jack
Windows Hosting || Windows Reseller Hosting
Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
Follow eUKhost on Twitter || Join eUKhost Community on Facebook

For complaints, grievances or suggestions kindly email our FeedBack Dept.
Proper action will be taken accordingly & instantaneously!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 20:22.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
UK Web Hosting by eUKHosting 3.1.0
UK Web Hosting by eUKHosting 3.1.0
Copyright © 2001-2012, eUKhost LTD. All rights reserved.

 


UK VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

VoIP Dedicated Servers
Asterisk, Trixbox Dedicated Servers

Business Web Hosting
100% uptime Hosting

UK Cpanel Hosting
cPanel Shared Hosting

Domain Hosting
Cheap Domains & Hosting Plans

UK Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

ColdFusion Hosting
ColdFusion Web Hosting
 
 

Android and Apple App


knowledgebase articles
eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting

Joomla Hosting
Joomla Web Hosting

Mambo Hosting
Mambo Web Hosting

Magento Hosting
Magento Web Hosting

Wordpress Hosting
Wordpress Web Hosting

 

Web Hosting Affiliate Program
 

popular blog categories

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles