Forum Moderators: open

Message Too Old, No Replies

Can someone give me some theory on outgoing and incoming smtp addreses

         

midi25

12:47 am on Nov 14, 2003 (gmt 0)

10+ Year Member



Hi am in a bit of a muddle here. I can send email from my website to my root mail using my incmoming smtp mail address. This is fine for purposes like feedback forms.

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.

killroy

12:55 am on Nov 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In my case, the system is blocked against anonymous mail relay. This means I first have to log into the POP account before I can send email out.

Try logging with your username and password into your POP account as if to retrieve mail. Then simply send viy SMTP as usual.

SN

midi25

1:08 am on Nov 14, 2003 (gmt 0)

10+ Year Member



They way my mail is set up. Is that i can add pops and then assign them forwarders.

So if i set up pop admin@email.co.uk i could then have it forwarded to say my home email address. But I have to supply this in my control panel.

Now am stuck on how to send outgoing mail.

killroy

12:47 pm on Nov 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To clarify, I'm under the impression you want to send email viy your online script as a response to an action by a visitor?

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

denisdekat

1:48 pm on Nov 14, 2003 (gmt 0)

10+ Year Member



Did you set your scritp to have smtp outgoign server as "localhost" I am not sure why you are checking email to send. Unless you need to authenticate prior to bein gadded as a relayer somehow. But this is from a script right? So you should have localhost. It is hard to imagine a server that disallows localhost to relay SMTP.

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.

midi25

2:38 pm on Nov 14, 2003 (gmt 0)

10+ Year Member



I have wrote a script in asp.net.

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.