473,587 Members | 2,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

converting from ASPMail to ASPEmail

Has anyone converted from ASPMail to ASPEmail...?

1) I get the following error. Can you offer some insight?

2) Is there an equivalent to this line: Mail.ContentTyp e = "text/html" ...?

thanks!
---------------------------------
Persits.MailSen der.4 error '800a0006'
501 Syntax error. Syntax:{RCPT TO:<address> [SIZE=msgSize]}
/email_to_sales. asp, line 225 (line 225 is: Mail.Send)
---------------------------------
<%
Set Mail = Server.CreateOb ject("Persits.M ailSender")
Mail.Host ="mail.mydomain .com"
Mail.From = "sa***@mydomain .com"
Mail.FromName = "Purchases Sales Department"
Mail.AddAddress "sa***@mydomain .com", "Purchases Sales Department"
Mail.AddBCC "Purchases Support", "su*****@mydoma in.com"
Mail.AddReplyTo Email, FirstName & " " & LastName
Mail.Priority = 1
Mail.Subject = "Sold By: " & (rsGetCustInfo. Fields.Item("Ho stURL").Value)
'Mail.ContentTy pe = "text/html"
%>
<%
HTML = "<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML//EN"">" & vbCrLf
HTML = HTML & "<html><head><t itle>Online Order</title></head>"
HTML = HTML & "the rest of my message...."
%>
<%
Mail.IsHTML = True
Mail.Body = HTML
Mail.Send
Set Mail = Nothing
%>
Jul 22 '05 #1
1 4109
> 1) I get the following error. Can you offer some insight?

Sure, every other property goes "email", "pretty name", except this one,
which you seem to have got backwards:
Mail.AddBCC "Purchases Support", "su*****@mydoma in.com"

2) Is there an equivalent to this line: Mail.ContentTyp e = "text/html"

....?

Mail.IsHTML = True

You might consider looking at the manual, then you don't have to wait for
someone else to look at the manual for you...
http://www.aspemail.com/

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3353
by: jason | last post by:
Database: Access 2000 Host: Maximum ASP I am trying to work out the best way to send bulk email below the 1000 mark (about 800). I understand that I could either use ASPEmail or CDO although I believe that ASPEmail may be superior in that it offers SENDQUEUE command which will allow me to loop through my customer database and insert them into the TO fields.
1
1702
by: b_boy | last post by:
Hi all, Maybe you can help. I've downloaded this calendar application that i want to incorporate in my site. It has an email sending facility which uses Cdonts but the host i am planning to host it with only supports ASP Email. Is it straightfoward to convert Cdonts to ASPemail ie just replacing code? And is the application likely to suffer as a result? I'm sorry it may be straight-forward but i'm still building on experience and...
0
1651
by: Dave Navarro | last post by:
We have a client with a site hosted on Verio which is running ASPMail 4.x I need to send an email to the client with an attachment, however, I'd prefer not to create the attachment on the local drive first. I rather create it in memory and then attach the memory images as a file to the email. Is that possible in ASPMail? The online docs are pretty sparse.
15
11057
by: news.microsoft.com | last post by:
HI, ASPEmail to send to multiple recipients? I tried to use comma and semicolon but all the time give this message error: Error: 6 - 501 Bad address syntax nor : email@dom,email@dom,email@dom or: email@dom;email@dom;email@dom
6
1769
by: Steve Bywaters | last post by:
Since 2000, I have built a web site for a client in ASP, using CDO mail. All has been well, and I have getting extension projects from them <g> But while I was away on the holiday over Christmas, the "IT dept." has decided to rationalise all the web servers (ok)... and standardise on one mail component (ok)... and they have chosen and bought ASPmail (huh?) without consultation with me. This will break a lot of my code (syntax is very...
1
2348
by: Roy Danon | last post by:
Hi, I'm trying to use ASPmail in order to send an email, for some reason the email arrives to the recipent but the body isn't sent with it and the subject is shown as question marks(encoding problems probably) This is the code : Set Mailer = Server.CreateObject("SMTPsvg.Mailer") Mailer.FromName = mailer.EncodeHeader(fromtitle) Mailer.FromAddress= from Mailer.RemoteHost = "localhost"
1
2420
by: Andrew Wrigley | last post by:
Hi I am setting up emailing for an all Access contact management app and DO NOT want to use Outlook. Aspemail.dll (aspemail.com) works fine, but... Unless you pay the licence fee for the premium features, you cannot access a smtp host that requires authentication with username and password.
1
1934
by: Chris A. | last post by:
Trying to use the following to sendmail... ASP/IIS don't give me any problems or errors, but no mail gets sent either. Dim objMailer Set objMailer = Server.CreateObject("ASPMAIL.ASPMailCtrl.1") objMailer.SendMail "my.smtp.com",strTo,strFrom,strSubject,strBody Set objMailer = Nothing Does this require some special IIS setup or anything?
0
1933
by: Ewen | last post by:
Hi, I've searched the forums but can't find a specific answer to this particular problem. We're using ServerObjects ASPMail (SMTPSVG.DLL) to send system generated emails on behalf of users of our sites. As such, we need to set 'correct' Return-Path: and Sender: headers in those emails. I'm using Mailer.AddExtraHeader to do this, in the following code: Set Mailer = Server.CreateObject("SMTPsvg.Mailer") Mailer.RemoteHost =...
0
7854
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8219
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7978
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8221
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2364
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.