Welcome to Webhost4life Forum Sign in | Join | Faq

Classic ASP

Started by zaggwarrior at 09-29-2005 11:12 AM. Topic has 11 replies.

Print Search
Sort Posts:    
   09-29-2005, 11:12 AM
zaggwarrior is not online. Last active: 9/30/2005 2:08:34 AM zaggwarrior

Top 500 Posts
Joined on 09-30-2005
Posts 1
Email from ASP
Reply Quote

I just moved over a domain that uses email from asp code. 

Where can I find out what software Webhosting4life's offers for sending email from asp code?  I noticed something about aspmailer?  If this is offered, can someone post some sample code on how to use it?  If there are other options, please let me know.

Thanks

Chris


   Report 
   09-30-2005, 3:01 PM
admin is not online. Last active: 10/11/2008 9:15:39 AM admin

Top 10 Posts
Joined on 08-10-2005
Posts 245
Re: Email from ASP
Reply Quote
Our control panel has a script email section, there's sample code in it.
   Report 
   10-20-2005, 9:12 PM
AWizardInDallas is not online. Last active: 10/21/2005 11:57:57 AM AWizardInDallas

Top 500 Posts
Joined on 10-21-2005
Posts 1
Re: Email from ASP
Reply Quote

I'd just use CDO personally and not worry about using any third party components or software.  It's only about six lines of code; simple and easy.  I would avoid CDONTS since Microsoft won't be supporting it in the future.

Set oMail = Server.CreateObject("CDO.Message")
oMail.To = "
fromaddess"

oMail.From = "toaddress"
oMail.Subject = "Your Subject"
oMail.HTMLBody = "Your Message Body"
oMail.Send
Set oMail = Nothing


   Report 
   06-13-2006, 12:59 AM
link.ezer.com is not online. Last active: 8/26/2006 1:09:47 PM link.ezer.com



Top 75 Posts
Joined on 03-21-2006
Posts 4
Re: Email from ASP
Reply Quote

Hi,

http://3w.ezer.com/asp/email/jmail.smtpmail.asp 
has jmail code for Plain Text format and HTML format
maybe helpful .... ....
Set JMail=Server.CreateObject("JMail.SMTPMail")
JMail.ServerAddress = "your-server-name"
Jmail.ContentTransferEncoding = "base64"
Jmail.ISOEncodeHeaders = false
JMail.ContentType = "text/html"
JMail.Encoding = "base64"
JMail.MimeVersion = "1.0"
JMail.sender = "your@email"
JMail.SenderName= "sender name"
JMail.Subject = "mail subject"
JMail.AddRecipient Email
JMail.Body ="<meta http-equiv=Content-Type
content=text/html; charset=utf-8>"
JMail.Body =JMail.Body&...........


Link.Ezer.com free add URL or exchange links and search::Add Your Link - No Link Back Needed , or Automated link exchange free links, free add URL
   Report 
   08-02-2006, 2:48 PM
billperry is not online. Last active: 8/3/2006 5:44:39 AM billperry

Top 200 Posts
Joined on 08-03-2006
Posts 2
Re: Email from ASP
Reply Quote

I am using the

oMail = server.createobject("CDO.Message")

approach and it looks good except I am having trouble formatting the "body" of the email text. The object concatinates the text and looks terrible. I am sending 5 different pieces of information that, in the email, each want to be on their own line.

Can anyone offer the method of formatting the "body" info in

oMail.HTMLBody = mybodyinfo

Thanks,

Bill Perry


   Report 
   08-04-2006, 6:48 AM
link.ezer.com is not online. Last active: 8/26/2006 1:09:47 PM link.ezer.com



Top 75 Posts
Joined on 03-21-2006
Posts 4
Re: Email from ASP
Reply Quote

Hi Bill,
may this help you
way1
oMail.HTMLBody = mybodyinfo
oMail.HTMLBody = oMail.HTMLBody & mybodyinfoLine2
oMail.HTMLBody = oMail.HTMLBody & mybodyinfoLine3
way2
mybodyinfo="Dear receiver,<br>"
mybodyinfo=mybodyinfo&"It is nice to talk to you<br>"
mybodyinfo=mybodyinfo&"May this method helps you.<br>"
mybodyinfo=mybodyinfo&"Best Regards,"
mybodyinfo=mybodyinfo&"3w.ezer.com"
oMail.HTMLBody = mybodyinfo
source & more details from: http://3w.ezer.com/asp/email/cdo.message.asp

 


Link.Ezer.com free add URL or exchange links and search::Add Your Link - No Link Back Needed , or Automated link exchange free links, free add URL
   Report 
   06-19-2008, 11:44 AM
stuhome is not online. Last active: 6/20/2008 2:35:26 AM stuhome

Top 500 Posts
Joined on 06-20-2008
Posts 2
Re: Email from ASP
Reply Quote
Hi

The code offered by webhost4life is as follows....
<form method="POST" action="http://www.webhost4life.com/cgi-bin/ultra/ultra-mail.pl">
<input type="Hidden" name="XX-send-to-email" value="the email address u want it sent to>
<input type="Hidden" name="XX-redirect-to-url" value="forwarding page when completed (thanks page)">

<input name="XX-name" id="XX-name" type="text"></input>
<input name="XX-email" id="XX-email" type="text"></input>
<input name="XX-subject" id="XX-subject" type="text"></input>
        <textarea name="comments" id="comments"></textarea>
<input name="submit" id="submit" type="submit" value="Send"></input>
</form>
does the job but the email that comes through isn't very pretty... but it does hold their subject in the subject line just like it should and means u dont have to use a relay server.

XX-name= text in name field

XX-email= email in email field

comments= message in comments box.


Hope this helps!

   Report 
   06-19-2008, 11:45 AM
stuhome is not online. Last active: 6/20/2008 2:35:26 AM stuhome

Top 500 Posts
Joined on 06-20-2008
Posts 2
Re: Email from ASP
Reply Quote
Hmmm maybe i should read the date on the post, im only 2 years late....  :-)  but the code above is still valid if anyone is listening...?

   Report 
   06-19-2008, 2:10 PM
admin is not online. Last active: 10/11/2008 9:15:39 AM admin

Top 10 Posts
Joined on 08-10-2005
Posts 245
Re: Email from ASP
Reply Quote
Yes , we highly suggest everyone to use our code, because we have build in feature to pretty spamming and email address harvesting.

   Report 
   08-15-2008, 3:32 AM
JMummery is not online. Last active: 8/15/2008 6:14:54 PM JMummery

Not Ranked
Joined on 08-15-2008
Posts 1
Re: Email from ASP
Reply Quote
Hi,

After I send 1 email using this script I get :

You've already submitted your infomation.

Also its not great as it redirect the user to a script on the webhost4life server.

Are there any other alternatives?

Regards
Julian
   Report 
   08-28-2008, 3:35 PM
Patty is not online. Last active: 8/29/2008 4:17:56 AM Patty

Not Ranked
Joined on 08-29-2008
Posts 1
Re: Email from ASP
Reply Quote
Hi Admin,,,

Do you have a sample of the code you would like us to use if we are not posting a simple email? My email data form posts to another page where the information submitted is validated, written to a database, the email message is built using the form information -- after that is where I want to send my email - I have something working now, but if you have a sample that includes info on how to use your recommended code that doesn't POST from the same page, that would be helpful.

Thanks in advance.
   Report 
   09-02-2008, 5:51 PM
admin is not online. Last active: 10/11/2008 9:15:39 AM admin

Top 10 Posts
Joined on 08-10-2005
Posts 245
Re: Email from ASP
Reply Quote
There's sample code in our KB.  One thing to remember is that you must use SMTP authentication if you want to send via your scripts.

   Report 
Webhost4life Fo... » General Discuss... » Classic ASP » Email from ASP

Powered by Community Server, by Telligent Systems