Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET
hi, i want to send email with attachment for the users who want to send email where user don't need to give the password of their email address.Because it's too much risky.I found a lot of topics but don't understand which one should i use.Again, it is important that the user may have any type of email address like gmail or yahoo etc.So, plz help here.
Posted 18-Dec-12 7:04am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Adam R Harris at 18-Dec-12 12:27pm
This is your best solution. Krunal is absolutely right, he didn't say it but he implied it. You are going to need to use a SMTP server that is going to allow you to forward emails from another domain. You can use your own SMTP server or find a hosted solution but it is critical that the SMPT server allows Relays (i think thats what its called) and also allows you to send emails from another domain i.e. sending email from through
Krunal Rohit at 18-Dec-12 12:47pm
Thanks Adams.. Let's see how he reacts on it !! ^_^
symonsarwar at 18-Dec-12 13:29pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

I don't think it's possible to send an email without the user gives the password of his email address. Here's a link to a tip:
Sending an Email in C# with or without attachments: generic routine.[^]
If you use the code of the tip, users must give their password.
wolfcoder75 at 18-Dec-12 14:54pm
You can if you have access to the server in terms of an admin and it is a Intranet server. YOu can do the MAPI method and set the send from just like setting the variable. however if its an external smtp server, I would agree.
This might be what your saying, just adding for clarity.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

symonsarwar at 18-Dec-12 13:17pm
it gives error in
......what should i do?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 350
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 Sergey Alexandrovich Kryukov 120
4 DamithSL 95
0 OriginalGriff 6,045
1 DamithSL 4,611
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310

Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100