Forum Moderators: open
But the problems lies when i want to sent email out to a client from my website. I cannot use my incoming smtp mail address for this. I presume i would have to use an outgoing smtp mail address. Only i dont have this information from myweb host.
How do you achieve this and what methods do you use
Please help thanks.
So, say ouyr website is domain.com
you have an email address info@domain.com
When a visitor presses a button you want the system to send an email from info@domain.com to abc@xyz.com (either you or the visitor for example)
Now this is via SMTP and does not require authentication.
so lets sey in whatever scripting language you execute:
sendmail('info@domain.com','abc@xyz.com','Message!')) for simplification
Now in my system, this would not work. I would FIRST have to authorize via POP as if I want to check email (which I don't) like this:
POPLOGIN('mail.domain.com','username','password')
And THE send the message via smtp. While these are two separate connections, ithe system remebers the login via pop on your ip (and probably times you out eventually).
Now I don't even know if that's your probplem, but if it is, try it ;)
Sorry if I completely misunderstood and this was no help at all...
SN
Some web servers disallow the sending of email by user nobody or apache, I would ask the web server admin if this is the case.
This is how it works.
The user enters his name in the text box.
The script then look in the database for his username and password based on his email address he submited.
The script then sends out an email to him using the email he submitted with the details.
What i am saying is that I cannot seem to get outgoing mail on my server. ASP.net has a propery where you specify who the mail goes to and who it is from and what smtpserver you are using.
So
eg
Email.To = the users email address to send to.
Email.From = mywebiste@email.com
SmtpMail.SmtpServer = "?"
I can send email to my server no problem. But I cannot get it to send out an email to someone.