Click here to Skip to main content
16,017,638 members
Home / Discussions / Web Development
   

Web Development

 
Questionhow to disappear save as menu from browser Pin
ashu_aegis14-Sep-04 3:36
ashu_aegis14-Sep-04 3:36 
AnswerRe: how to disappear save as menu from browser Pin
Steven Campbell14-Sep-04 8:06
Steven Campbell14-Sep-04 8:06 
GeneralImage Management Pin
zumichu13-Sep-04 19:49
zumichu13-Sep-04 19:49 
GeneralRe: Image Management Pin
Steven Campbell14-Sep-04 4:27
Steven Campbell14-Sep-04 4:27 
GeneralProtect ASP application files Pin
TPN13-Sep-04 18:31
TPN13-Sep-04 18:31 
GeneralRe: Protect ASP application files Pin
Steven Campbell14-Sep-04 2:43
Steven Campbell14-Sep-04 2:43 
GeneralSPF: Sender Policy Framework Pin
osblues13-Sep-04 13:03
osblues13-Sep-04 13:03 
GeneralRe: SPF: Sender Policy Framework Pin
osblues21-Sep-04 1:57
osblues21-Sep-04 1:57 
Ok, I've worked it out myself reading loads of incorrect information all over the place!

Finally coming up with this, which is of course very simple and probably obvious to some -

Set objMail = Server.CreateObject("CDO.Message")
with objMail
.To = "foo@bar.com"
.From = "name@3rdparty.com"
.Fields("urn:schemas:mailheader:return-path").Value = "info@ourdomain.com"
.Fields.Update()
.Sender = "info@ourdomain.com"
.HTMLBody = strMailBody
.Subject = strSubject
.Send
end with
Set objMail = Nothing

Tried for ages using a cdo configuration object, but you don't actually need one.

This sets both sender and return-path to an SPF valid address and the from to the person sending the email a friend (or whatever).

I hope this is of some use to others.

Cheers

Adam
GeneralIIS/ASP/ASPX Pin
Anonymous13-Sep-04 10:12
Anonymous13-Sep-04 10:12 
GeneralRe: IIS/ASP/ASPX Pin
Mike Ellison13-Sep-04 11:28
Mike Ellison13-Sep-04 11:28 
GeneralRe: IIS/ASP/ASPX Pin
Anonymous13-Sep-04 12:12
Anonymous13-Sep-04 12:12 
GeneralBlogThis JavaScript on IE XP SP2 Pin
Rob Caldecott13-Sep-04 1:36
Rob Caldecott13-Sep-04 1:36 
QuestionHow To Send Output To Printer From Html Pin
a2zSK13-Sep-04 0:46
sussa2zSK13-Sep-04 0:46 
GeneralRe: Image/text Alignment Pin
Glenn E. Lanier II10-Sep-04 10:41
Glenn E. Lanier II10-Sep-04 10:41 
GeneralRe: Image/text Alignment Pin
Member 120813914-Sep-04 2:12
Member 120813914-Sep-04 2:12 
GeneralImage/text Alignment Pin
mtone10-Sep-04 7:09
mtone10-Sep-04 7:09 
GeneralTextbox Cursors Pin
Anonymous10-Sep-04 7:01
Anonymous10-Sep-04 7:01 
GeneralRe: Textbox Cursors Pin
alex.barylski12-Sep-04 21:56
alex.barylski12-Sep-04 21:56 
QuestionHow to create Project for JScript ? Pin
vgrigor110-Sep-04 5:00
vgrigor110-Sep-04 5:00 
GeneralServer.MapPath functionality in PHP 4.0 Pin
Hesham Amin10-Sep-04 4:27
Hesham Amin10-Sep-04 4:27 
GeneralRe: Server.MapPath functionality in PHP 4.0 Pin
alex.barylski12-Sep-04 21:44
alex.barylski12-Sep-04 21:44 
GeneralRe: Server.MapPath functionality in PHP 4.0 Pin
Hesham Amin13-Sep-04 6:29
Hesham Amin13-Sep-04 6:29 
GeneralCSS DL/DT/DT Question Pin
Glenn E. Lanier II10-Sep-04 3:57
Glenn E. Lanier II10-Sep-04 3:57 
GeneralRe: CSS DL/DT/DT Question Pin
Paul Watson10-Sep-04 4:46
sitebuilderPaul Watson10-Sep-04 4:46 
GeneralRe: CSS DL/DT/DT Question Pin
Glenn E. Lanier II10-Sep-04 5:18
Glenn E. Lanier II10-Sep-04 5:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.