|
|
Classic ASP
Started by zaggwarrior at 09-29-2005 11:12 AM. Topic has 11 replies.
 
 
|
|
Sort Posts:
|
|
|
|
09-29-2005, 11:12 AM
|
zaggwarrior
Joined on 09-30-2005
Posts 1
|
|
|
|
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
Joined on 08-10-2005
Posts 245
|
|
|
Our control panel has a script email section, there's sample code in it.
|
|
|
|
|
Report
|
|
|
|
08-02-2006, 2:48 PM
|
billperry
Joined on 08-03-2006
Posts 2
|
|
|
|
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
|
|
|
|
06-19-2008, 11:44 AM
|
stuhome
Joined on 06-20-2008
Posts 2
|
|
|
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
Joined on 06-20-2008
Posts 2
|
|
|
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
Joined on 08-10-2005
Posts 245
|
|
|
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
Joined on 08-15-2008
Posts 1
|
|
|
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
Joined on 08-29-2008
Posts 1
|
|
|
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
Joined on 08-10-2005
Posts 245
|
|
|
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
|
|
|
|