Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text email from HTML form with a file attachment 1

Status
Not open for further replies.

MartinDurant

Programmer
Jan 25, 2002
41
GB
I want to create a text email containing data from a HTML form with a file attached. I have read some stuff about CDONTS but I don't think I can use this under Win98 with PWS. Are there any other alternatives, or should I upgrade to Win2000?

Thanks.
 
Well, you should definitely upgrade to win2k. You'll thank yourself in a big big way.

But has a nice email component you can get for free. Useable on win98.

:)
paul
penny.gif
penny.gif
 
Thanks. I'm in the process of an art business startup and I want to sell my wares via the web. I'm trying to minimise my outlay, but I guess its a case of having the right tools for the job. Would I need to get a server version of Win2000 or would a workstaion version suffice?

Thanks.
 
I have downloaded and installed the Persits ASPEmail component. When I run it using the following code, I get a "Not connected" error. (then names have been changed to protect the innocent...)

Code:
Set Mail = Server.CreateObject("Persits.MailSender")

Mail.Host = "mail.mywebsite.co.uk" ' Specify a valid SMTP server
Mail.From = "HenryFonda@BlueYonder.com" ' Specify sender's address
Mail.FromName = "Myself" ' Specify sender's name

Mail.AddAddress "quotes@mywebsite.co.uk", "Bob"
Mail.AddReplyTo "quotes@mywebsite.co.uk"
Mail.AddAttachment "d:\images\my fence.jpg"

Mail.Subject = "Quote from mywebsite"
Mail.Body = "Dear Sir, Thank you for your business."

On Error Resume Next
Mail.Send
If Err <> 0 Then
	Response.Write &quot;Error encountered: &quot; & Err.Description
End If

The SMTP server is the server address from my web site host.

Any ideas? Thanks.

Martin.
 
Once I switched off my firewall, this worked a treat. Top ASP componenent if you ask me. The support from the author is excellent too. I posted a query on at 10am and had a reply that fixed my connection problem by 7 in the evening - on a Sunday!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top