Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Alias!

Reply
Thread Tools

Alias!

 
 
Arpan
Guest
Posts: n/a
 
      09-28-2005
How do I assign an alias to the mandatory "From" parameter while
sending mails using CDONTS? The "From" parameter usually takes the
following form:

<%
Dim objMail
Set objMail=Server.CreateObject("CDONTS.NEWMAIL")
objMail.From=""
objMail.To=""
........
........
........
%>

i.e. the person receiving the mail (in this case, Greg) will see the
entire e-mail address of the person who has sent the mail (in this
case, Jack) something like....

From:
.......
.......

How do I use an alias in place of the entire e-mail address? For e.g.
Greg, who is receiving the mail, should see something like

From: Jack
.......
.......

Thanks,

Arpan

 
Reply With Quote
 
 
 
 
Jeff Cochran
Guest
Posts: n/a
 
      09-28-2005
You don't. This field is a valid email address, not an alias. It's
required to meet RFC.

Jeff


On 27 Sep 2005 18:46:49 -0700, "Arpan" <> wrote:

>How do I assign an alias to the mandatory "From" parameter while
>sending mails using CDONTS? The "From" parameter usually takes the
>following form:
>
><%
> Dim objMail
> Set objMail=Server.CreateObject("CDONTS.NEWMAIL")
> objMail.From=""
> objMail.To=""
> ........
> ........
> ........
>%>
>
>i.e. the person receiving the mail (in this case, Greg) will see the
>entire e-mail address of the person who has sent the mail (in this
>case, Jack) something like....
>
>From:
>......
>......
>
>How do I use an alias in place of the entire e-mail address? For e.g.
>Greg, who is receiving the mail, should see something like
>
>From: Jack
>......
>......
>
>Thanks,
>
>Arpan


 
Reply With Quote
 
 
 
 
Arpan
Guest
Posts: n/a
 
      09-29-2005
>>You don't.........

"You don't" or "You can't", Jeff???

Thanks,

Regards,

Arpan

 
Reply With Quote
 
Jeff Cochran
Guest
Posts: n/a
 
      10-04-2005
On 29 Sep 2005 08:57:11 -0700, "Arpan" <> wrote:

>>>You don't.........

>
>"You don't" or "You can't", Jeff???


Well, technically, you can. It just doesn't work.

This must be a valid email address. You can specify the user in the
field by using a format similar to:

"User Name<>"

You cannot simply use an alias (for one thing, where do you think it
would look up the alias?).

Jeff
 
Reply With Quote
 
 
 
Reply

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

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




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57