Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Sending emails using ASP
Old 05-01-2008, 11:37 AM Sending emails using ASP
drew22299's Avatar
Skilled Talker

Posts: 93
Trades: 0
Hi,

I have a script that sends emails to users, but the emails either get sent to the junk folder or aren't recognised.

If I include the information for referer, sever etc will it make the email more secure and ensure it is delivered?

I know what the server is, but how do I find out the referer, clientip and serverip?

Why are they needed?

PHP Code:
strReferer request.servervariables("HTTP_REFERER")
strServer Replace(request.servervariables(""),"www.","")
strClientIP request.servervariables("REMOTE_ADDR")
strServerIP request.servervariables("LOCAL_ADDR"
Thanks,
drew22299 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-01-2008, 05:51 PM Re: Sending emails using ASP
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
If I include the information for referer, sever etc will it make the email more secure and ensure it is delivered
No. ...
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-02-2008, 05:12 AM Re: Sending emails using ASP
drew22299's Avatar
Skilled Talker

Posts: 93
Trades: 0
What about including smtp information? I don't know why the emails aren't getting through / or get sent to junk folder.

Any ideas?

Thanks,
drew22299 is offline
Reply With Quote
View Public Profile
 
Old 05-03-2008, 04:24 AM Re: Sending emails using ASP
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
There is very little you can do in the email headers to ensure that your mail does not get filtered.
Things such as sending directly to the recipient rather than something like "mailinglist @wherever.com" can help.
Ensuring that the From: name is on the same host the mail is being sent out from
Having a Reply-To: header


One other thing would to see if you can set up SPF (Sender Policy Framework).

Does the IP of the webserver have a MX record associated with it?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-03-2008, 06:12 AM Re: Sending emails using ASP
drew22299's Avatar
Skilled Talker

Posts: 93
Trades: 0
Thanks for the suggestions, I managed to get it working by including the smtp host name
drew22299 is offline
Reply With Quote
View Public Profile
 
Old 05-07-2008, 02:37 AM Re: Sending emails using ASP
Experienced Talker

Posts: 33
Trades: 0
Use cdonts component on your windows server so that you can send email easily.

Let me know if you want some samples of it
__________________

Please login or register to view this content. Registration is FREE
bizcredit is offline
Reply With Quote
View Public Profile
 
Old 05-07-2008, 06:38 AM Re: Sending emails using ASP
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Might have been 5 or 6 years ago.

CDONTS has been disabled on Windows server for 5 years now
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-17-2008, 12:46 AM Re: Sending emails using ASP
Sean@WMS's Avatar
Skilled Talker

Posts: 52
Name: Sean Connors
Location: Eureka, CA USA
Trades: 0
Jumping in rather "after the fact" here, but had a couple observations I thought would still be valuable for folks who stumble upon this later.

@chrishirst is right, CDONTS is mostly out of the picture now as MS ditched it starting with Win2K3 servers (and while you could still get it installed on later servers, why bother?). Frankly, CDONTS ain't great -- though, yeah, @bizcredit, it was easy.

Frankly, CDOSYS is the way to go in my opinion and knowledge of it will be equally valuable to classic ASP programming as to ASP.NET. It's an extremely robust method.

To get back to the original question here, it's best to actually authenticate against an SMTP server before sending out the mail. This will give you a much better chance of not landing your email into a spam folder as the authentication will provide headers that will make the email look a bit less like script generated email.

What's more, any host that allows email to be simply relayed via script is not really keeping there eye on the security issues; that is, perhaps assume that your windows host has an eye on security and doesn't allow relaying and requires authentication. You can never go wrong by authenticating.

I've a nice script detailing just about anyting one might ever want to do with CDOSYS. PM me if you are interested.
__________________
Web Merchant Services

Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE
Sean@WMS is offline
Reply With Quote
View Public Profile Visit Sean@WMS's homepage!
 
Old 10-31-2008, 10:22 AM Re: Sending emails using ASP
itHighway's Avatar
Skilled Talker

Posts: 83
Name: Zeeshan Dar
Location: GUJ
Trades: 0
Try setting Priority variable to High in your email script.
__________________
Zeeshan Dar
itHighway -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
itHighway is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Sending emails using ASP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28878 seconds with 12 queries