Send Html With Embedded Image Email In Asp
I want to send email in html format with containing more images added dynamically using cdo.message method. can you pls explain any body one how to do this. i alredy done this, but it send only one picture with that email. here i posted my code also. pls any one tell me what is the problem in this code.
theSchema="http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(theSchema & "sendusing")= 2
cdoConfig.Fields.Item(theSchema & "smtpserver")= "smtp server"
cdoConfig.Fields.Update
Set mail = Server.CreateObject("CDO.Message")
html = "<html>"
html = html & "<head>"
html = html & "<meta http-equiv=""Content-Type"""
html = html & "content=""text/html; charset=iso-8859-1"">"
html = html & "</head>"
html = html & "<body>"
html = html & "<p><font face=""Arial"" ><b>Name: " & name & "</b></font></p>"
html = html & "<p><font face=""Arial""><b>Company Name: " & cname & "</b></font></p>"
html = html & "<p><font face=""Arial""><b>Country: " & ctry & "</b></font></p>"
html = html & "<p><font face=""Arial""><b>E-mail: " & email & "</b></font></p>"
html = html & "<p><font face=""Arial""><b>Details: " & remarks & "</b></font></p>"
html = html & "<p> </p>"
for i = 0 to ubound(iid)
html = html & "<img border=""0"" src=""" & "http://www.abcd.com/img/" & fnme(i) & """></td>"
next
html = html & "</body>"
html = html & "</html>"
mail.From= emailFrom
mail.Configuration=cdoConfig
mail.To = emailTo
mail.Subject = emailSubject
mail.HTMLBody = html
mail.Send
set mail = nothing
set cdoConfig = nothing
View Replies
ADVERTISEMENT
I am currently working on an e-commerce website. The customer has asked for a link to Email this Product (Image) to a Friend.
I created the following code but the test email received only has the text. How do I get the image to display in the email. This is apparently a file not found condition.....
View Replies
View Related
This is my first post hope it makes sense. I have learnt how to send emails from forms passing variable etc and it works, but I am lazy so here it goes:
I am writing a set of intranet based asp reports for which the underlying asp code can get quite complicated (tables nested in tables, all sorts of calulations and parameters etc). I would like users to be able to send that report (neatly formated in his browser) by pressing a form button. (by the way, we use Outlook)
1. either as an .html attachement (which would of been saved automatically either locally or on the server)
2. or as an html email (as you would do when doing File > Send > Page by Email in IE 6.0) Code:
View Replies
View Related
how to send an HTMl email from an external server. I am trying to Send email using CDOSYS
this i what i have tried but cant get it to work.
View Replies
View Related
I'm looking for a simple way to do the following:
We have a database that serves-up content to a website. Some of those items
are events, some are news articles. They're stored in the DB as formatted
HTML so ASP just drops them right into a page shell.
Now, we want to send out a newsletter email containing some of those items.
No problem sending as HTML. However, some of the members want just plain
text. Is there some magic method in CDO that can automatically convert HTML
to plain text? Or, is there some existing VBScript code out there that can
do this?
BTW, the environment is IIS 5.x (Windows 2000), Classic ASP, and CDO.
View Replies
View Related
I been trying to send a Html email with a form included. I tryed by including <form> and <input> as usual in Html code. What happen is that the email is send and the form are seen but the input button doesnt work right, in hotmail , msn, I mean its not active
Any idea?
View Replies
View Related
My readers that are lotus note user receive the mails I send using cdonts with image displayed as attachement in place of inline.
I read http://www-1.ibm.com/support/docvie...uid=swg27002572
that say "for displaying image inline in lotus you must set correct
mime header as content disposition : inline"
however I can't achieve it with cdonts : my mime header is stuck to
"content disposition : attachemnt" and I can't see how to change it.
I read somewhere that using attachurl instead of attachfile will fix
it but my test did not achieve this way.Any of you experienced sending inline image to lotus note users with cdonts ?
View Replies
View Related
Usually, when I send HTML emails, I just SRC the image to my web server, but now I would like to consider embedding images for those instances when potential customers may view the email when offline.
Can this be done with CDO or is another component required?
View Replies
View Related
i am trying harder to mix this 2 solutions... but without success... the below on seen to be grabing a template and replace the data with the values posted in a form Code:
View Replies
View Related
i used the following script but it won't send the email. any suggestions why?
<%
Dim TBdy
Dim MyCDO
CR = Chr(13)
Set MyCDO = Server.CreateObject("CDONTS.NewMail")
MyCDO.From = "person@something.org"
MyCDO.To = "allstar@aol.com"
MyCDO.Subject = "collegebound info"
TBdy = Request.Form("cb_name")
MyCDO.Body = TBdy
MyCDO.Importance = 1 (Normal)
MyCDO.Send
Set MyCDO = nothing
%>
View Replies
View Related
How I send e-mail with attachement image. I send e-mail with cdo.message. but I have deffiecult to send attachment image.
Here is my code: ....
View Replies
View Related
How I send e-mail with attachment image. I have made 2 file test.asp and test1.asp
test.asp called test1.asp en attachement 2 images. It does not work because the attachment image.
How I can solve this problem. herewith my code (test.asp and test1.asp) ....
View Replies
View Related
I have a small problrm in sending mail in HTML
I'v done this code, but.:
Code:
Private sub SendMail()
MailBefore = "<html>" & chr(13)
MailBefore = MailBefore & "<head><title>" & MailSubject & "</title></head>" & chr(13)
MailBefore = MailBefore & "<body>"
MailBody = MailBefore & MailBody & "</body></hmtl>"
select case strMailMethod
case "cdonts":
SendCdonts()
I receive like this....:
View Replies
View Related
If i want to send an email in HTML format, do i just set the bodyFormat to 1 or it's much more complicated? any examples available?
View Replies
View Related
I have been using CDO Mail but the message body is plain text. Is there a way that I may send an HTML body so that I can format some tables?
View Replies
View Related
Basically I need to show an image in a web browser (easy enough) I need to be able to track Mouse X & Y positions..Also OK, I have found some javascript to acheive this, but here is where the problem lies, the user must somehow click on this image & I then need to automatically record, display (graphically would be preffered) & send this info to a database !! Can NE1 out there do this How & where would I start?
View Replies
View Related
I am using win2k server and asp.
I am trying to convert html to pdf or image instantly on my web site. Desperately, i am using web hosting and i cant install any component....
View Replies
View Related
I'm new with asp and server thing so if somoene could help me to resolve my problems
it would be very great.
I'm trying to send myself an email but it doesn't work, no error message, I just don't receive any email.
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="bob@hotmail.com"
myMail.To="bob@hotmail.com"
myMail.TextBody="This is a message."
myMail.Send
I'm using IIS at my home to test this code.
View Replies
View Related
Our local educational host doesn't have any COMs on their servers so I need
to use the built-in (if there is one!!) mail/smtp component of ASP.net to
send web form data via email.
Is there such a thing in ASP.net? My apols for the newbie question, but I'm
still an ASP classic developer.
Could somebody post me an example of how to use it.
View Replies
View Related
We currently have a form that is in PHP that after the user fill out the form and hit submit, this form send all the information via email to us. I like to know if there is a similar feature or way to do this in ASP.
View Replies
View Related
using the code below is how to send email using asp;
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="martialdc@hotmail.com"
myMail.To="amboy416@yahoo.com.ph"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
%>
but i encounter this error;
There is a problem with the page you are trying to reach and it cannot be displayed.
attached with this thread is the file (send.asp) so that you can check it for sure.
View Replies
View Related
I am trying to develop a web site which involve in log in n to retrieve password. When a user forget their password they will use this service, after they enter their email address, i will send their user id and password to their email which allow them to see their user id and password, but i don know to to do this service which will automatically send email to user email address when they click the button .....
View Replies
View Related
I've got an asp page that uses CDO.Message and
CDO.Configuration to send an email.
I'm not receiving any of these emails normally (i.e. in
Outlook), instead they all end up in this folder :
Inetpub/Mailroot/Queue.
Could someone please explain what this means? Does this
mean the emails have been successfully sent?...or are they
waiting to be sent?
I'm pretty sure my smtpserver name is correct because i've
got the same thing going in .NET and it all works ok there
(as in I get an email thru Outlook). Just can't seem to
get it going in ASP.
Not sure if it this relevant...I'm behind a firewall, so
i'm assuming the smtpserver name is for a smart host,
which is fine in .NET, but i'm not sure how that'll work
out in ASP (eg. what do i set the serverport number to?)
View Replies
View Related
I've just downloaded a component called AspEmail (http://www.aspemail.com). When i tried to test my code using the localhost, it require sthe address of my SMTP server inorder to send the email.
I put "localhost" as the address but i cannot send the mail for some wierd reason. I check the badmail folder just to find some mails under the "queue" folder.
I've tried the same code in a different pc, and i got a different error: AspEmail: Simple.asp
Error occurred: Connection timed out.
Does any body know how to send email using that aspemail component on localhost
Appreciate it.
View Replies
View Related
I want to implement a function to send emails to the registered users from my web site using ASP. The problem is that the web server provider I'm using does not support any email components (such as CDO, CDONTS, or third-party) or SMTP server.
Therefore I'm looking for some free email/SMTP provider which enables me to send the email information from my ASP web page to their server and it will forward it as ordinary emails to the recipients.
One way to do it could be to set up a html form with fields to hold the email information (recipient addresses, sender address, subject and body) and send it to the service provider. Something like: ....
View Replies
View Related
<%
Set Mail=Server.CreateObject(“CDONTS.NewMail”)
Mail.To=”me@mydomain.com”
Mail.From=”testing-my@SP-Script.com”
Mail.Subject=”Just testing my script”
Mail.Body=”Hey! I am sending this email through an ASP Page and
guess what? I haven’t learnt much yet, but know that ASP is very
powerful.”
Mail.Send
Set Mail=nothing
%>
Can I use the above code, if my pc is running on Windows XP Professional Edition?
View Replies
View Related
I'd like to get opinions on how this can be done. The brief background is that there is someone who, on a daily basis, puts together an email with links and text related to immunization.Would it be possible to automatically: receive this email; fit it into a database; then have a web page read the contents of the page from the database?
e.g., the web page could be told to present the text with the highest record number (assuming each new email is entered in as a new record).
View Replies
View Related
I want to send an E-mail whoever registers to my website. How do I do it?
I visited www.w3schools.com but it is not working.
View Replies
View Related
How can we send email to the given email id with the current page text as the body text of the email.
View Replies
View Related
I try to send email, however i have a problem
set mailmsg = Server.CreateObject("CDONTS.NewMail")
mailmsg.To = "xxx@mail.com"
mailmsg.From = "yy@mail.com"
mailmsg.Body = "This is a test message."
mailmsg.Host = "xxx.host.com"
mailmsg.Send
With this code they work fine but if i do this code
Set oConfig = CreateObject("CDO.Configuration")
to do smtp authentication i received the error that object can be created, because pc of my web hosting have linux with operating sytems and have installed a package to run asp.
Can anyone know other object to do smtp authetication.
View Replies
View Related
i have created a form that emails the data once the submit button is pressed...however i am not recieving the email message. Im not sure if it is because im developing with IIS and its not able to send from my local computer or if it is my code. here is the basic action page
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="test@tvds.ca"
myMail.To="k.letendre@tvdsb.on.ca"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
%>
View Replies
View Related
I have a requirement to display Html text to Image (any format).
Let say i have text as "TEST", this value i need to convert to Image and display. Please let me know if there is any tool or code sample to resolve my purpose.
View Replies
View Related
I have developed a website in ASP 3.0 and Acesss 2000/SQl
Server.
I wan my web site sent invoices to my customer
automatically ...at some specified time
(lets say it execute ceratain ASP page at 3:00 am that
send emails)
how can i schedule that?
Should i write some program (EXE) that will run on web
seerv to do this task or do we have soem other decent
solution?
View Replies
View Related