0 votes

I am sending mail with different from address and but can't able to send successfully

for example:
from address is: abc@gmail.com
smtp.Connect(xyz@gmail.com,123456)

Now if i will use abc email address in connect method and xyz email address in from address then no issue.

But when scenario like from address is abc and xyz address for connection then getting error.

Is their any way to send mail with different from address. In my case from address will always different but connection mail address and password will always same.

Awaiting your response.

You're answer will appreciable.

Thanks,
Jatin

by (200 points)

1 Answer

0 votes

Most SMTP servers don't allow that.

Please contact your server administrator if you believe this should be allowed.

by (270k points)
...