In website design, what kind of coding would I use to send an outgoing message without using a client? (Smtp?)?
Question by drrickbragg: In website design, what kind of coding would I use to send an outgoing message without using a client? (Smtp?)?
I know i need to use SMTP, but what kind of coding does that require? Can someone point me in the direction of a helpful site?
Best answer:
Answer by lkool
if your web hosting account has access to PHP you can use the sendmail function. although your web host my restrict exactly what you can do with it. You will have to contact the web host to find out if you have PHP, and if the allow send mail, and where sendmail is in the server if the do allow it here is a tutorial on a simple sendmail script:
http://www.daniweb.com/forums/post188143.html
What do you think? Answer below!













It depends on the language. Php has a mail() statement. ASP has something similar, but it’s been years since I’ve written ASP code – check on http://coveryourasp.com/ (the whole site is available as a downloadable file).
You can post data in a form to a sendmail program running on your server.
PHP is often used, but you can use a cgi-bin frommail script to handle the post data.