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

Posts: 89
Location: Wiltshire, UK
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,
__________________
www.hotlista.co.uk
drew22299 is offline
Reply With Quote
View Public Profile Visit drew22299's homepage!
 
When You Register, These Ads Go Away!
Old 05-01-2008, 04:51 PM Re: Sending emails using ASP
chrishirst's Avatar
Super Moderator

Posts: 13,658
Location: Blackpool. UK
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!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-02-2008, 04:12 AM Re: Sending emails using ASP
drew22299's Avatar
Skilled Talker

Posts: 89
Location: Wiltshire, UK
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,
__________________
www.hotlista.co.uk
drew22299 is offline
Reply With Quote
View Public Profile Visit drew22299's homepage!
 
Old 05-03-2008, 03:24 AM Re: Sending emails using ASP
chrishirst's Avatar
Super Moderator

Posts: 13,658
Location: Blackpool. UK
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!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-03-2008, 05:12 AM Re: Sending emails using ASP
drew22299's Avatar
Skilled Talker

Posts: 89
Location: Wiltshire, UK
Thanks for the suggestions, I managed to get it working by including the smtp host name
__________________
www.hotlista.co.uk
drew22299 is offline
Reply With Quote
View Public Profile Visit drew22299's homepage!
 
Old 05-07-2008, 01:37 AM Re: Sending emails using ASP
Experienced Talker

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

Let me know if you want some samples of it
__________________
Explode Business Credit E-Book
bizcredit is offline
Reply With Quote
View Public Profile
 
Old 05-07-2008, 05:38 AM Re: Sending emails using ASP
chrishirst's Avatar
Super Moderator

Posts: 13,658
Location: Blackpool. UK
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!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-03-2008, 08:35 AM Re: Sending emails using ASP
Junior Talker

Posts: 4
Name: Dominique Paris
Location: Luxembourg
Another possibiliy: I ave several apps sending emails to my registered users. To avoid troubles, I'm using an open source library: here is the referenceotNetOpenMail.
The advantages of this lib are multiple. For instance you send mulyipart emails (HTML version and Text version). It is secure and works with all version of ASP.NET. Just take a look: DotNetOpenMail.
cultureinside is offline
Reply With Quote
View Public Profile Visit cultureinside's homepage!
 
Reply     « Reply to Sending emails using ASP
 

Thread Tools

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

vB 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.13635 seconds with 12 queries