Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-07-2006, 10:47 AM
WebProWorld Pro
 

Join Date: Jun 2004
Location: Weymouth, UK
Posts: 124
EmmaGale RepRank 0
Default Help with ASP Mail and Webfusion hosting please!

Hi there I am using some existing ASPMail script that works perfectly on 1and1 but have to use it on some webfusion space. Their support isnt too good!

Please can someone tell me where I am going wrong. I have a form on this page:

www.loans4france.com/decisionForm.asp

The relevant bit of code I am using is here - i have called the file aspMail.asp. I have had to modify the original bit of script on the other servers and so have included this at the end for reference.

MyMail.Host = "intmail.atlas.pipex.net"
MyMail.From = "emma.gale@northdorset-pct.nhs.uk"
MyMail.FromName = "Emma Gale"
MyMail.AddAddress = email
MyMail.Subject = "Enquiry from Loans4France"
MyMail.Body = MyBody
On Error Resume Next
MyMail.SendToQueue
Set MyMail = Nothing


The error i am receiving states that it does not support AddAddress



Original script that worked with 1and1

Set MyMail = Server.CreateObject("SMTPsvg.Mailer")
MyMail.FromName = enquiryName
MyMail.FromAddress= email
MyMail.RemoteHost = "mrvnet.kundenserver.de"
MyMail.AddRecipient "Gavin Borthwaite", "gbor26@aol.com"
MyMail.Subject = "Enquiry from Alpsbuy2let"
MyMail.BodyText = MyBody
MyMail.SendMail
Set MyMail = nothing
Response.Write ("Your e-mail has been sent")
%>
Reply With Quote
  #2 (permalink)  
Old 04-10-2006, 04:50 PM
WebProWorld New Member
 

Join Date: Apr 2006
Location: London
Posts: 3
Astaroth-Stafford RepRank 0
Default

It has been a long time since I used ASPMail but isnt it addrecipient rather than addaddress
__________________
Astaroth

Http://www.staffordfamilyhistory.co.uk
Reply With Quote
  #3 (permalink)  
Old 04-21-2006, 11:54 AM
WebProWorld Pro
 

Join Date: Jun 2004
Location: Weymouth, UK
Posts: 124
EmmaGale RepRank 0
Default

Hi thank you for your reply. This unfortunatley didnt work, produced an error stating that "Object doesn't support this property or method: 'AddRecipient'"

Can anyone else help me with this please? The information appears to be being sent but nothing comes through. I have included cut down sections of the rest of the code if it helps.

<%
'First lets Dim all the variables we need
Dim email
Dim name1
Dim name2
...

'Now lets get some values for the variables from the form
email = Request.Form("email")
name1 = Request.Form("name1")
name2 = Request.Form("name2")
...

'Now lets build the body of the email from the data in the form
MyBody = "Email Address:"& email & vbcrlf
MyBody = MyBody & "First applicant: "& vbcrlf
MyBody = MyBody & "Name: "& name1 & vbcrlf
MyBody = MyBody & "Date of birth: "& dateOfBirth1 & vbcrlf
...

'Now lets put the variables and other information we need into the mailing script
Set Mail = Server.CreateObject("Persits.MailSender")

Mail.Host = "intmail.atlas.pipex.net"
Mail.From = "emmagale@aol.com"
Mail.FromName = "Emma Gale"
Mail.AddAddress email
Mail.Subject = "Enquiry from Loans4France"
Mail.Body = MyBody
On Error Resume Next
Mail.SendToQueue
Set Mail = Nothing

%>

The html page:

<form action="aspMail.asp" method="post" name="contactEmail" id="contactEmail">
<table border="0">
<tr>
<td valign="top" class="tablep" style="color: #003399; font-weight: bold"></td>
<td></td>
</tr>
<tr>
<td valign="top" class="tablep" style="color: #003399; font-weight: bold"> Email Address:</td>
<td><input name="email" type="text" id="email" size="30" /></td>
</tr>
<tr>

Webfusion say that they support ASPMail - but their support is very limited. All the phone support could do was to send me through what they said was working code but I couldnt for the life of me see how it worked.

Can anyone else help with this please? Im pulling my hair out now!

Kind regards
Emma Gale
Reply With Quote
  #4 (permalink)  
Old 04-21-2006, 11:56 AM
WebProWorld Pro
 

Join Date: Jun 2004
Location: Weymouth, UK
Posts: 124
EmmaGale RepRank 0
Default

What i forgot to say was that in my original code i had

Mail.AddRecipient = email

I found some advice on the net which stated that AddRecipient didnt require the '=' so now the code is:

Mail.AddRecipient email

This has stopped producing an error and you are taken to the "Your email has been sent we will be in touch with you shortly page" but as i said in my last post - the email does not get received at this end.

Kind regards
Emma
Reply With Quote
  #5 (permalink)  
Old 05-02-2006, 02:02 AM
WebProWorld New Member
 

Join Date: Mar 2006
Posts: 11
jt007superman RepRank 0
Default ASPmail

I work at a hosting company and I know we've had to test and restart ASPmail several times. You might call the host and ask them to load an example script to test the connection.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , , ,



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

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


Search Engine Optimization by vBSEO 3.2.0