Old 04-11-2005, 13:53   #1 (permalink)
grafiks
Senior Member
 
Join Date: Jan 2004
Posts: 365
emailing an image

I have the following code as part of a send.asp file


<!-- #include virtual="/includes/adovbs.inc" -->


<%

' Construct and send email

Dim oMail
Set oMail = server.CreateObject("MEMail.Message")
oMail.MailFrom = Request.Form("email_address")
oMail.MailFromDisplayName = Request.Form("email_address")
oMail.ContentType = "text/plain;"
oMail.MailTo = "info@hypelondon.co.uk"
oMail.Subject = "New Model Registered on Rascals"

oMail.MessageBody = "This person has just registered with Rascals and their details are as follows:" & VbCrLf & _
"firstname: " & Request.Form("firstname") & VbCrLf & _
"surname: " & Request.Form("surname") & VbCrLf & _
"Height: " & Request.Form("height") & VbCrLf & _
"Bust: " & Request.Form("bust") & VbCrLf & _
"Waist: " & Request.Form("waist") & VbCrLf & _
"Hips: " & Request.Form("hips") & VbCrLf & _
"Eye Colour: " & Request.Form("eye_colour") & VbCrLf & _
"Hair Colour: " & Request.Form("hair_colour") & VbCrLf & _
"Shoe Size: " & Request.Form("shoe_size") & VbCrLf & _
"Email: " & Request.Form("email_address") & VbCrLf & _
"Telephone: " & Request.Form("telephone") & VbCrLf & _
"Age: " & Request.Form("age")

oMail.SendMessage
Response.Redirect("register2.asp?id=" & MEntityID)
%>

if I wanted the user to email a photo as well and it send the above details and the photo to an email address what would I need to add to the above script
  Reply With Quote
Old 04-11-2005, 16:46   #2 (permalink)
Rakan
Senior Member
 
Join Date: Mar 2005
Posts: 567
I haven't done it myself... but I'm almost certain that you'd need to install additional software on your server to support sending attachments... If you're not running your own server, check with your hosting company to see if they have something installed that would support it...
  Reply With Quote
Old 04-11-2005, 18:37   #3 (permalink)
adras
Zły
 
adras's Avatar
 
Join Date: May 2004
Location: Toronto, Canada
Posts: 2,091
Send a message via MSN to adras
I use CDO mail object to send emails. There you can choose the email format (text, html) it even allows to specify an HTML file on your server to be the email content.

And attachments are done with an ease.

Just google "CDO Mail ASP"
__________________
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8