sending mail from asp webpages

Posted on 2009-02-19
Last Modified: 2013-11-19
We have a linux mailserver on which sendmai is installed. I have to develop a online web-based form/pages in asp(windows 2000 and above), where in, i have to send mails to accounts residing on the linux mail server. I have tried directly giving the mailto command, but i am not able to send emails.

kindly help me in letting me know how to send mails programmaticaly to linux mail serve from intranet. The program i am developing, will be used on intranet. I am using IIS to host the webpages on my machine. The linux mail server has a public and private IP. We also have a squid proxy on linux server for internet web browsing. what information , should i have to gather from our staff, who are maintaining this linux based mail server.

thanks all for sparing their valuable time



Question by:kamal3965
    LVL 14

    Expert Comment

    Are you trying to send the mail from the ASP page?  If hosted in IIS I would assume you would use CDONTS or ASPMAIL or some component to send the mail from the asp script and set the smtp server to your sendmail server.    I have not worked with sendmail on linux but that might get you headed in the right direction.

    Author Comment

    yes we are trying to send the mail from asp page. Also the matter on the page has to be included as an attachment, and has to be sent along with the mail

    LVL 3

    Accepted Solution

    there is no difference in email sending process if the server is on Linux/windows  etc. Email sending is done via. SMTP protocol which is a standard.
    If you are using ASP .NET you can use the builtin component for sending email (refer to MSDN regarding details)
    if you are using classic ASP, than you'll have to use a component, (as above), try using Mail Bee, it's good and user-friendly.

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Touch screen experience for personal computers, improved security, and performance have made Windows 8 a great hit amongst users. If you are an Outlook user and thinking of or have upgraded to Win 8 or 8.1, then here are some guidelines that may pro…
    A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now